From 46a69ec5c8c6dde5249832d46659f988fe16ec3f Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期一, 04 十一月 2024 12:48:45 +0800 Subject: [PATCH] test --- node_modules/.vue-global-types/vue_3.3_false.d.ts | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/node_modules/.vue-global-types/vue_3.3_false.d.ts b/node_modules/.vue-global-types/vue_3.3_false.d.ts index 53c6a94..548aa0e 100644 --- a/node_modules/.vue-global-types/vue_3.3_false.d.ts +++ b/node_modules/.vue-global-types/vue_3.3_false.d.ts @@ -65,6 +65,11 @@ > >; type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K]; } & {}; + type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny< + '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any + , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any + >>; + type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>; function __VLS_getVForSourceType(source: number): [number, number, number][]; function __VLS_getVForSourceType(source: string): [string, number, number][]; @@ -93,9 +98,11 @@ function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>; // @ts-ignore function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0]; - function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any - ? T | __VLS_unknownDirective - : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>; + function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective + ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> + : T extends (...args: any) => any + ? T + : __VLS_unknownDirective; function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K; function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] }; function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T; @@ -111,10 +118,6 @@ : (_: {} & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record<string, unknown> } }; function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void; function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : []; - function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny< - '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any - , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any - >>; function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S; function __VLS_tryAsConstant<const T>(t: T): T; } -- Gitblit v1.9.1