Skip to content

Commit

Permalink
revert: #4902
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Oct 27, 2024
1 parent 4400e8e commit 57d6d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/language-core/lib/codegen/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends any[]>(source: T): [
item: ${(
target >= 3 ? `import('${lib}').Reactive<T[number]>` :
target >= 2.7 ? `import('${lib}').UnwrapNestedRefs<T[number]>` :
`T[number]`
)},
item: T[number],
key: number,
index: number,
][];
Expand Down
2 changes: 1 addition & 1 deletion packages/tsc/tests/__snapshots__/dts.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare const _default: <Row extends BaseRow>(__VLS_props: NonNullable<Awaited<t
attrs: any;
slots: {
default?(_: {
row: import("vue").Reactive<Row>;
row: Row;
}): any;
};
emit: {};
Expand Down

0 comments on commit 57d6d86

Please sign in to comment.