@@ -6,16 +6,20 @@ export function generateGlobalTypes(vueCompilerOptions: VueCompilerOptions) {
6
6
return `export const __VLS_globalTypesStart = {};
7
7
declare global {
8
8
// @ts-ignore
9
- type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue /jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<globalThis.JSX.IntrinsicElements, Record<string, any>>>;
9
+ type __VLS_IntrinsicElements = __VLS_PickNotAny<import('${ vueCompilerOptions . lib } /jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<globalThis.JSX.IntrinsicElements, Record<string, any>>>;
10
10
// @ts-ignore
11
- type __VLS_Element = __VLS_PickNotAny<import('vue /jsx-runtime').JSX.Element, globalThis.JSX.Element>;
11
+ type __VLS_Element = __VLS_PickNotAny<import('${ vueCompilerOptions . lib } /jsx-runtime').JSX.Element, globalThis.JSX.Element>;
12
12
// @ts-ignore
13
13
type __VLS_GlobalComponents = ${ [
14
- `__VLS_PickNotAny<import('vue ').GlobalComponents, {}>` ,
14
+ `__VLS_PickNotAny<import('${ vueCompilerOptions . lib } ').GlobalComponents, {}>` ,
15
15
`__VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}>` ,
16
16
`__VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}>` ,
17
17
`Pick<typeof import('${ vueCompilerOptions . lib } '), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>`
18
18
] . join ( ' & ' ) } ;
19
+ type __VLS_BuiltInPublicProps =
20
+ __VLS_PickNotAny<import('${ vueCompilerOptions . lib } ').VNodeProps, {}>
21
+ & __VLS_PickNotAny<import('${ vueCompilerOptions . lib } ').AllowedComponentProps, {}>
22
+ & __VLS_PickNotAny<import('${ vueCompilerOptions . lib } ').ComponentCustomProps, {}>;
19
23
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
20
24
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
21
25
0 commit comments