Skip to content

Commit

Permalink
fix: change unknown prop type to any
Browse files Browse the repository at this point in the history
close #1541
  • Loading branch information
johnsoncodehk committed Jul 10, 2022
1 parent 85035e9 commit 52d6a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/utils/localTypes.ts
Expand Up @@ -48,7 +48,7 @@ export declare function makeOptional<T>(t: T): { [K in keyof T]?: T[K] };
export type ExtractComponentSlots<T> =
IsAny<T> extends true ? Record<string, any>
: T extends { ${slots}?: infer S } ? { [K in keyof S]-?: S[K] extends ((obj: infer O) => any) | undefined ? O : unknown }
: T extends { ${slots}?: infer S } ? { [K in keyof S]-?: S[K] extends ((obj: infer O) => any) | undefined ? O : any }
: Record<string, any>;
export type FillingEventArg_ParametersLength<E extends (...args: any) => any> = IsAny<Parameters<E>> extends true ? -1 : Parameters<E>['length'];
Expand Down

0 comments on commit 52d6a61

Please sign in to comment.