@vue/runtime-core 3.2.26 → 3.2.27
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 +6464 -6459
- package/dist/runtime-core.cjs.prod.js +5329 -5324
- package/dist/runtime-core.d.ts +14 -24
- package/dist/runtime-core.esm-bundler.js +6603 -6598
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { camelize } from '@vue/shared';
|
|
2
2
|
import { capitalize } from '@vue/shared';
|
|
3
3
|
import { ComponentPropsOptions as ComponentPropsOptions_2 } from '@vue/runtime-core';
|
|
4
|
-
import { computed } from '@vue/reactivity';
|
|
4
|
+
import { computed as computed_2 } from '@vue/reactivity';
|
|
5
5
|
import { ComputedGetter } from '@vue/reactivity';
|
|
6
6
|
import { ComputedRef } from '@vue/reactivity';
|
|
7
7
|
import { ComputedSetter } from '@vue/reactivity';
|
|
@@ -16,10 +16,12 @@ import { EffectScheduler } from '@vue/reactivity';
|
|
|
16
16
|
import { EffectScope } from '@vue/reactivity';
|
|
17
17
|
import { effectScope } from '@vue/reactivity';
|
|
18
18
|
import { getCurrentScope } from '@vue/reactivity';
|
|
19
|
+
import { IfAny } from '@vue/shared';
|
|
19
20
|
import { isProxy } from '@vue/reactivity';
|
|
20
21
|
import { isReactive } from '@vue/reactivity';
|
|
21
22
|
import { isReadonly } from '@vue/reactivity';
|
|
22
23
|
import { isRef } from '@vue/reactivity';
|
|
24
|
+
import { LooseRequired } from '@vue/shared';
|
|
23
25
|
import { markRaw } from '@vue/reactivity';
|
|
24
26
|
import { normalizeClass } from '@vue/shared';
|
|
25
27
|
import { normalizeProps } from '@vue/shared';
|
|
@@ -53,6 +55,7 @@ import { toRefs } from '@vue/reactivity';
|
|
|
53
55
|
import { TrackOpTypes } from '@vue/reactivity';
|
|
54
56
|
import { TriggerOpTypes } from '@vue/reactivity';
|
|
55
57
|
import { triggerRef } from '@vue/reactivity';
|
|
58
|
+
import { UnionToIntersection } from '@vue/shared';
|
|
56
59
|
import { unref } from '@vue/reactivity';
|
|
57
60
|
import { UnwrapNestedRefs } from '@vue/reactivity';
|
|
58
61
|
import { UnwrapRef } from '@vue/reactivity';
|
|
@@ -499,7 +502,7 @@ declare type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
|
|
|
499
502
|
|
|
500
503
|
declare type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
|
|
501
504
|
|
|
502
|
-
export
|
|
505
|
+
export declare const computed: typeof computed_2;
|
|
503
506
|
|
|
504
507
|
export { ComputedGetter }
|
|
505
508
|
|
|
@@ -872,15 +875,10 @@ any, // Mixin
|
|
|
872
875
|
any, // Extends
|
|
873
876
|
any> ? unknown extends P ? {} : P : {};
|
|
874
877
|
|
|
875
|
-
export declare type ExtractPropTypes<O> =
|
|
876
|
-
[K in keyof O]
|
|
877
|
-
} & // This is needed to keep the relation between the option prop and the props, allowing to use ctrl+click to navigate to the prop options. see: #3656
|
|
878
|
-
{
|
|
879
|
-
[K in RequiredKeys<O>]: InferPropType<O[K]>;
|
|
878
|
+
export declare type ExtractPropTypes<O> = {
|
|
879
|
+
[K in keyof Pick<O, RequiredKeys<O>>]: InferPropType<O[K]>;
|
|
880
880
|
} & {
|
|
881
|
-
[K in OptionalKeys<O
|
|
882
|
-
} : {
|
|
883
|
-
[K in string]: any;
|
|
881
|
+
[K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>;
|
|
884
882
|
};
|
|
885
883
|
|
|
886
884
|
export declare const Fragment: {
|
|
@@ -965,8 +963,6 @@ export declare interface HydrationRenderer extends Renderer<Element | ShadowRoot
|
|
|
965
963
|
hydrate: RootHydrateFunction;
|
|
966
964
|
}
|
|
967
965
|
|
|
968
|
-
declare type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N;
|
|
969
|
-
|
|
970
966
|
declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T : (props: P) => T;
|
|
971
967
|
|
|
972
968
|
declare type InferDefaults<T> = {
|
|
@@ -1004,8 +1000,6 @@ declare type InternalSlots = {
|
|
|
1004
1000
|
|
|
1005
1001
|
declare type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType<{}, {}, {}, {}, {}> : UnionToIntersection<ExtractMixin<T>>;
|
|
1006
1002
|
|
|
1007
|
-
declare type InvalidateCbRegistrator = (cb: () => void) => void;
|
|
1008
|
-
|
|
1009
1003
|
declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
|
|
1010
1004
|
|
|
1011
1005
|
declare type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
|
|
@@ -1143,17 +1137,13 @@ declare const enum LifecycleHooks {
|
|
|
1143
1137
|
SERVER_PREFETCH = "sp"
|
|
1144
1138
|
}
|
|
1145
1139
|
|
|
1146
|
-
declare type LooseRequired<T> = {
|
|
1147
|
-
[P in string & keyof T]: T[P];
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
1140
|
declare type MapSources<T, Immediate> = {
|
|
1151
1141
|
[K in keyof T]: T[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : T[K] extends object ? Immediate extends true ? T[K] | undefined : T[K] : never;
|
|
1152
1142
|
};
|
|
1153
1143
|
|
|
1154
1144
|
export { markRaw }
|
|
1155
1145
|
|
|
1156
|
-
declare type MatchPattern = string | RegExp | string
|
|
1146
|
+
declare type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
1157
1147
|
|
|
1158
1148
|
declare type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
1159
1149
|
|
|
@@ -1263,6 +1253,8 @@ export declare const onBeforeUnmount: (hook: () => any, target?: ComponentIntern
|
|
|
1263
1253
|
|
|
1264
1254
|
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1265
1255
|
|
|
1256
|
+
declare type OnCleanup = (cleanupFn: () => void) => void;
|
|
1257
|
+
|
|
1266
1258
|
export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
1267
1259
|
|
|
1268
1260
|
export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
@@ -1463,7 +1455,7 @@ export declare interface RendererOptions<HostNode = RendererNode, HostElement =
|
|
|
1463
1455
|
querySelector?(selector: string): HostElement | null;
|
|
1464
1456
|
setScopeId?(el: HostElement, id: string): void;
|
|
1465
1457
|
cloneNode?(node: HostNode): HostNode;
|
|
1466
|
-
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean): [HostNode, HostNode];
|
|
1458
|
+
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
|
|
1467
1459
|
}
|
|
1468
1460
|
|
|
1469
1461
|
export declare type RenderFunction = () => VNodeChild;
|
|
@@ -1788,8 +1780,6 @@ export { TriggerOpTypes }
|
|
|
1788
1780
|
|
|
1789
1781
|
export { triggerRef }
|
|
1790
1782
|
|
|
1791
|
-
declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
1792
|
-
|
|
1793
1783
|
declare type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
|
|
1794
1784
|
|
|
1795
1785
|
declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
|
|
@@ -1901,9 +1891,9 @@ export declare function watch<T, Immediate extends Readonly<boolean> = false>(so
|
|
|
1901
1891
|
|
|
1902
1892
|
export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1903
1893
|
|
|
1904
|
-
export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV,
|
|
1894
|
+
export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
1905
1895
|
|
|
1906
|
-
export declare type WatchEffect = (
|
|
1896
|
+
export declare type WatchEffect = (onCleanup: OnCleanup) => void;
|
|
1907
1897
|
|
|
1908
1898
|
export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
|
|
1909
1899
|
|