@vue/runtime-core 3.5.24 → 3.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-core.cjs.js +2518 -2497
- package/dist/runtime-core.cjs.prod.js +2030 -2015
- package/dist/runtime-core.d.ts +5 -5
- package/dist/runtime-core.esm-bundler.js +2281 -2260
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -196,7 +196,7 @@ export declare function defineProps<TypeProps>(): DefineProps<LooseRequired<Type
|
|
|
196
196
|
export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & {
|
|
197
197
|
readonly [K in BKeys]-?: boolean;
|
|
198
198
|
};
|
|
199
|
-
type BooleanKey<T, K extends keyof T = keyof T> = K extends any ?
|
|
199
|
+
type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? T[K] extends boolean | undefined ? T[K] extends never | undefined ? never : K : never : never;
|
|
200
200
|
/**
|
|
201
201
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
202
202
|
* events. The expected argument is the same as the component `emits` option.
|
|
@@ -420,7 +420,7 @@ export interface ObjectDirective<HostElement = any, Value = any, Modifiers exten
|
|
|
420
420
|
}
|
|
421
421
|
export type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg = any> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
|
|
422
422
|
export type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
|
|
423
|
-
type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
|
|
423
|
+
export type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
|
|
424
424
|
export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, any] | [Directive | undefined, any, any, DirectiveModifiers]>;
|
|
425
425
|
/**
|
|
426
426
|
* Adds directives to a VNode.
|
|
@@ -949,7 +949,7 @@ export type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C
|
|
|
949
949
|
* @private for language-tools use only
|
|
950
950
|
*/
|
|
951
951
|
__typeEmits?: TE;
|
|
952
|
-
} & ThisType<CreateComponentPublicInstanceWithMixins<PE, RawBindings, D, C, M, Mixin, Extends, ResolvedEmits, EE, {}, false, I, S, LC, Directives,
|
|
952
|
+
} & ThisType<CreateComponentPublicInstanceWithMixins<PE, RawBindings, D, C, M, Mixin, Extends, ResolvedEmits, EE, {}, false, I, S, LC, Directives, string>>;
|
|
953
953
|
/**
|
|
954
954
|
* @deprecated
|
|
955
955
|
*/
|
|
@@ -957,7 +957,7 @@ export type ComponentOptionsWithArrayProps<PropNames extends string = string, Ra
|
|
|
957
957
|
[key in PropNames]?: any;
|
|
958
958
|
} & EmitsToProps<E>>>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
|
|
959
959
|
props: PropNames[];
|
|
960
|
-
} & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, {}, false, I, S, LC, Directives,
|
|
960
|
+
} & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, {}, false, I, S, LC, Directives, string>>;
|
|
961
961
|
/**
|
|
962
962
|
* @deprecated
|
|
963
963
|
*/
|
|
@@ -1015,7 +1015,7 @@ export declare function defineComponent<TypeProps, RuntimePropsOptions extends C
|
|
|
1015
1015
|
*/
|
|
1016
1016
|
__typeEl?: TypeEl;
|
|
1017
1017
|
} & ComponentOptionsBase<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, RuntimeEmitsKeys, {}, // Defaults
|
|
1018
|
-
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, {}, {}, false, InjectOptions, Slots, LocalComponents, Directives,
|
|
1018
|
+
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, {}, {}, false, InjectOptions, Slots, LocalComponents, Directives, string>>): DefineComponent<InferredProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, RuntimeEmitsKeys, PublicProps, ToResolvedProps<InferredProps, ResolvedEmits>, ExtractDefaultPropTypes<RuntimePropsOptions>, Slots, LocalComponents, Directives, Exposed, Provide, unknown extends TypeProps ? true : false, TypeRefs, TypeEl>;
|
|
1019
1019
|
|
|
1020
1020
|
export interface App<HostElement = any> {
|
|
1021
1021
|
version: string;
|