Skip to content

Commit

Permalink
fix: avoid DefineComponent unwrap by Awaited
Browse files Browse the repository at this point in the history
close #2161
  • Loading branch information
johnsoncodehk committed Dec 1, 2022
1 parent 89b82f9 commit 00563ea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -429,7 +429,7 @@ export function generate(
codeGen.push(`;\n`);
}
codeGen.push(`};\n`);
codeGen.push(`return {} as unknown as Awaited<ReturnType<typeof __VLS_setup>>;\n`);
codeGen.push(`return {} as typeof __VLS_setup extends () => Promise<infer T> ? T : never;\n`);
codeGen.push(`})`);
if (!vueCompilerOptions.experimentalRfc436) {
codeGen.push(`({} as any)`);
Expand Down

0 comments on commit 00563ea

Please sign in to comment.