From 57d6d8631f9f9b37aadafd2f2624f77b5d1cd1e1 Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Sun, 27 Oct 2024 22:55:18 +0800 Subject: [PATCH] revert: #4902 --- packages/language-core/lib/codegen/globalTypes.ts | 6 +----- packages/tsc/tests/__snapshots__/dts.spec.ts.snap | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/language-core/lib/codegen/globalTypes.ts b/packages/language-core/lib/codegen/globalTypes.ts index e6b852187a..9908372d43 100644 --- a/packages/language-core/lib/codegen/globalTypes.ts +++ b/packages/language-core/lib/codegen/globalTypes.ts @@ -92,11 +92,7 @@ export function generateGlobalTypes(lib: string, target: number, strictTemplates function __VLS_getVForSourceType(source: number): [number, number, number][]; function __VLS_getVForSourceType(source: string): [string, number, number][]; function __VLS_getVForSourceType(source: T): [ - item: ${( - target >= 3 ? `import('${lib}').Reactive` : - target >= 2.7 ? `import('${lib}').UnwrapNestedRefs` : - `T[number]` - )}, + item: T[number], key: number, index: number, ][]; diff --git a/packages/tsc/tests/__snapshots__/dts.spec.ts.snap b/packages/tsc/tests/__snapshots__/dts.spec.ts.snap index 74f66ee834..e26d792a89 100644 --- a/packages/tsc/tests/__snapshots__/dts.spec.ts.snap +++ b/packages/tsc/tests/__snapshots__/dts.spec.ts.snap @@ -13,7 +13,7 @@ declare const _default: (__VLS_props: NonNullable; + row: Row; }): any; }; emit: {};