Skip to content

Commit

Permalink
chore: avoid internal type error for functionalComponentArgsRest
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 23, 2023
1 parent 6b13f8f commit 50b0c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-core/src/utils/localTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export declare function asFunctionalComponent<T, K = T extends new (...args: any
: T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
: T extends (...args: any) => any ? T
: (_: T & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: unknown, expose?: unknown, slots?: unknown, emit?: unknown }, __props?: T & Record<string, unknown> }; // IntrinsicElement
declare function functionalComponentArgsRest<T>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
declare function functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
export declare function pickEvent<Emit, K, E>(emit: Emit, emitKey: K, event: E): FillingEventArg<
PickNotAny<
AsFunctionOrAny<NonNullable<E>>,
Expand Down

0 comments on commit 50b0c66

Please sign in to comment.