File tree Expand file tree Collapse file tree
packages/language-core/lib/codegen
test-workspace/tsc/passedFixtures/vue2/#4789 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,6 +165,11 @@ export function generateGlobalTypes({
165165 function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
166166 T extends new (...args: any) => any ? __VLS_FunctionalComponent<K>
167167 : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
168+ ${ (
169+ target === 2.7
170+ ? `: T extends import('vue').AsyncComponent ? (props: {}, ctx?: any) => any`
171+ : ``
172+ ) }
168173 : T extends (...args: any) => any ? T
169174 : __VLS_FunctionalComponent<{}>;
170175 function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
Original file line number Diff line number Diff line change 1+ <template >
2+ <HelloWorld />
3+ </template >
4+
5+ <script setup lang="ts">
6+ import { defineAsyncComponent } from ' vue' ;
7+
8+ const HelloWorld = defineAsyncComponent (() => ({} as any ));
9+ </script >
You can’t perform that action at this time.
0 commit comments