Skip to content

Commit a383fb4

Browse files
committed
fix: can't omit element duplicate name attributes
close #473
1 parent 19cf57c commit a383fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode-vue-languageservice/src/utils/globalDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ declare global {
7979
type __VLS_ExtractCompleteComponentProps<T> =
8080
T extends new (...args: any) => { $props?: infer P1 } ? P1 & Omit<__VLS_GlobalAttrs, keyof P1> & Record<string, unknown>
8181
: T extends FunctionalComponent<infer P2> ? P2 & JSX.IntrinsicAttributes & Record<string, unknown>
82-
: T & Omit<__VLS_GlobalAttrs, T> & Record<string, unknown>
82+
: T & Omit<__VLS_GlobalAttrs, keyof T> & Record<string, unknown>
8383
8484
type __VLS_ExtractRawComponents<T> = { [K in keyof T]: __VLS_ExtractRawComponent<T[K]> };
8585
type __VLS_ExtractRawComponent<T> = T extends { __VLS_raw: infer C } ? C : T;

0 commit comments

Comments
 (0)