Skip to content

Commit 70e0b1e

Browse files
committed
revert: undo irrelevant changes
1 parent f55d030 commit 70e0b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-core/lib/codegen/script/scriptSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function* generateScriptSetup(
5151
}
5252
yield `(${newLine}`
5353
+ ` __VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'],${newLine}`
54-
+ ` __VLS_ctx?: Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>,${newLine}` // use __VLS_Prettify for less dts code
54+
+ ` __VLS_ctx?: ${ctx.localTypes.PrettifyLocal}<Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>>,${newLine}` // use __VLS_Prettify for less dts code
5555
+ ` __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>['expose'],${newLine}`
5656
+ ` __VLS_setup = (async () => {${newLine}`;
5757
yield* generateSetupFunction(options, ctx, scriptSetup, scriptSetupRanges, undefined);

0 commit comments

Comments
 (0)