Skip to content

Commit

Permalink
fix: cannot report TS1308 'async' missing error
Browse files Browse the repository at this point in the history
close #1753
  • Loading branch information
johnsoncodehk committed Aug 27, 2022
1 parent 6613a1c commit 8cfbc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-language-core/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ export function generate(
codeGen.addText(`let __VLS_selfComponent!: __VLS_types.SelfComponent<typeof __VLS_name, typeof __VLS_component & (new () => { ${getSlotsPropertyName(compilerOptions.target ?? 3)}: typeof __VLS_slots })>;\n`);
codeGen.addText('let __VLS_components!: typeof __VLS_otherComponents & Omit<typeof __VLS_selfComponent, keyof typeof __VLS_otherComponents>;\n');

codeGen.addText(`__VLS_components.${SearchTexts.Components};\n`);
codeGen.addText(`({} as __VLS_types.GlobalAttrs).${SearchTexts.GlobalAttrs};\n`);
codeGen.addText(`__VLS_components['${SearchTexts.Components}'];\n`);
codeGen.addText(`({} as __VLS_types.GlobalAttrs)['${SearchTexts.GlobalAttrs}'];\n`);

/* Style Scoped */
codeGen.addText('/* Style Scoped */\n');
Expand Down

0 comments on commit 8cfbc9d

Please sign in to comment.