File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
packages/language-core/lib/codegen
test-workspace/tsc/passedFixtures/vue2/#4789 Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,11 @@ export function generateGlobalTypes({
165
165
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
166
166
T extends new (...args: any) => any ? __VLS_FunctionalComponent<K>
167
167
: 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
+ ) }
168
173
: T extends (...args: any) => any ? T
169
174
: __VLS_FunctionalComponent<{}>;
170
175
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