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
Constructs a tuple type from the types used in the parameters of a function type Type.
declarefunctionf1(arg: {a: number;b: string}): void;typeT0=Parameters<()=>string>;// type T0 = []typeT1=Parameters<(s: string)=>void>;// type T1 = [s: string]typeT2=Parameters<<T>(arg: T)=>T>;// type T2 = [arg: unknown]typeT3=Parameters<typeoff1>// type T3 = [arg: {// a: number;// b: string;// }]typeT4=Parameters<any>;// type T4 = unknown[]typeT5=Parameters<never>;// type T5 = nevertypeT6=Parameters<string>;// Type 'string' does not satisfy the constraint '(...args: any) => any'. // type T6 = nevertypeT7=Parameters<Function>;// Type 'Function' does not satisfy the constraint '(...args: any) => any'.// Type 'Function' provides no match for the signature '(...args: any): any'.// type T7 = never
The text was updated successfully, but these errors were encountered:
Constructs a tuple type from the types used in the parameters of a function type Type.
The text was updated successfully, but these errors were encountered: