Skip to content

Commit

Permalink
feat: access any type components
Browse files Browse the repository at this point in the history
close #1608
  • Loading branch information
johnsoncodehk committed Jul 23, 2022
1 parent 0d0c592 commit ce90994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-core/src/utils/localTypes.ts
Expand Up @@ -104,7 +104,7 @@ export type ConvertInvalidJsxElement<T> = IsComponent<T> extends true ? T : any;
type IsComponent<T> =
T extends (...args: any) => JSX.Element ? true
: T extends new (...args: any) => JSX.ElementClass ? true
: false;
: IsAny<T>
type ComponentKeys<T> = keyof { [K in keyof T as IsComponent<T[K]> extends true ? K : never]: any };
`;
}
Expand Down

0 comments on commit ce90994

Please sign in to comment.