Skip to content

Commit 28e9785

Browse files
committed
fix(volar): Prettify<T> breaks generics inference
copy from vuejs/language-tools#5424
1 parent 09e66dc commit 28e9785

File tree

1 file changed

+1
-1
lines changed
  • packages/volar/src/jsx-directive

1 file changed

+1
-1
lines changed

packages/volar/src/jsx-directive/v-on.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<
4545
}
4646
>
4747
>;
48-
type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K]; } & {};\n`)
48+
type __VLS_PrettifyGlobal<T> = { [K in keyof T as K]: T[K]; } & {};\n`)
4949
}
5050

5151
export function transformOnWithModifiers(

0 commit comments

Comments
 (0)