You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remapped generic array type Can't pass to rest parametersΒ #55932
typeReplace<Textends[...any],A,B>={[KinkeyofT]: T[K]extendsA ? B : T[K];};typeReplaceParams<Textends[...any],A,B>=(...args:Replace<[number,number],A,B>)=>any;//is oktypeReplaceParams1<ARRAYextends[...any],A,B>=(...args:Replace<ARRAY,A,B>)=>any;//failed A rest parameter must be of an array type.typeReplaceParams2<Textends(...arg:any)=>any,A,B>=(...args:Replace<Parameters<T>,A,B>)=>any;//failed A rest parameter must be of an array type.typeRemapped<Textends[...any]>={[KinkeyofT]:T[K]}typeSimpleCase<Textends[...any]>=(...args:Remapped<T>)=>any;//failed A rest parameter must be of an array type.
Activity
whzx5byb commentedon Oct 1, 2023
Duplicate of #29919
typescript-bot commentedon Oct 5, 2023
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.