File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/vscode-vue-languageservice/src/utils Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,11 @@ declare global {
80
80
: T extends FunctionDirective<infer E, infer V> ? V extends { value: infer V_2 } ? (value: V_2) => void : (value: V) => void : T;
81
81
82
82
type __VLS_TemplateSlots<T> = T extends { __VLS_slots: infer S } ? S : {};
83
- type __VLS_DefaultSlots<W, R> = W extends { __VLS_slots: infer _ }
84
- ? {} : R extends new (...args: any) => { $slots?: infer _ }
85
- ? {} : Record<string, any>;
83
+ type __VLS_HasTemplateSlotsType<T> = T extends { __VLS_slots: infer _ } ? true : false;
84
+ type __VLS_HasScriptSlotsType<T> = T extends new (...args: any) => { $slots?: infer _ } ? true : false;
85
+ type __VLS_DefaultSlots<W, R> = __VLS_HasTemplateSlotsType<W> extends true ? {}
86
+ : __VLS_HasScriptSlotsType<R> extends true ? {}
87
+ : Record<string, any>;
86
88
type __VLS_SlotsComponent<T> = T extends new (...args: any) => { $slots?: infer S } ? T : new (...args: any) => { $slots: {} };
87
89
type __VLS_ScriptSlots<T> = T extends { $slots?: infer S }
88
90
? { [K in keyof S]-?: S[K] extends ((obj: infer O) => any) | undefined ? O : S[K] }
You can’t perform that action at this time.
0 commit comments