@vue/runtime-core 3.3.3 → 3.3.5
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 +39 -29
- package/dist/runtime-core.cjs.prod.js +32 -24
- package/dist/runtime-core.d.ts +9 -138
- package/dist/runtime-core.esm-bundler.js +259 -244
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as computed$1, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, Ref,
|
|
1
|
+
import { computed as computed$1, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, Ref, ReactiveEffect, ComputedRef, DebuggerOptions, reactive } from '@vue/reactivity';
|
|
2
2
|
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { IfAny, Prettify,
|
|
3
|
+
import { IfAny, Prettify, Awaited, UnionToIntersection, LooseRequired } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
export declare const computed: typeof computed$1;
|
|
@@ -21,8 +21,6 @@ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>>
|
|
|
21
21
|
type RawSlots = {
|
|
22
22
|
[name: string]: unknown;
|
|
23
23
|
$stable?: boolean;
|
|
24
|
-
/* removed internal: _ctx */
|
|
25
|
-
/* removed internal: _ */
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
interface SchedulerJob extends Function {
|
|
@@ -54,7 +52,7 @@ interface SchedulerJob extends Function {
|
|
|
54
52
|
ownerInstance?: ComponentInternalInstance;
|
|
55
53
|
}
|
|
56
54
|
type SchedulerJobs = SchedulerJob | SchedulerJob[];
|
|
57
|
-
export declare function nextTick<T = void>(this: T, fn?: (this: T) =>
|
|
55
|
+
export declare function nextTick<T = void, R = void>(this: T, fn?: (this: T) => R): Promise<Awaited<R>>;
|
|
58
56
|
export declare function queuePostFlushCb(cb: SchedulerJobs): void;
|
|
59
57
|
|
|
60
58
|
export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
@@ -100,7 +98,7 @@ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, in
|
|
|
100
98
|
type ExtractMixin<T> = {
|
|
101
99
|
Mixin: MixinToOptionTypes<T>;
|
|
102
100
|
}[T extends ComponentOptionsMixin ? 'Mixin' : never];
|
|
103
|
-
type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType
|
|
101
|
+
type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType : UnionToIntersection<ExtractMixin<T>>;
|
|
104
102
|
type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
|
|
105
103
|
type EnsureNonVoid<T> = T extends void ? {} : T;
|
|
106
104
|
type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
|
|
@@ -329,8 +327,6 @@ interface PropOptions<T = any, D = T> {
|
|
|
329
327
|
required?: boolean;
|
|
330
328
|
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
331
329
|
validator?(value: unknown): boolean;
|
|
332
|
-
/* removed internal: skipCheck */
|
|
333
|
-
/* removed internal: skipFactory */
|
|
334
330
|
}
|
|
335
331
|
export type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
|
|
336
332
|
type PropConstructor<T = any> = {
|
|
@@ -408,19 +404,9 @@ export type ExtractPublicPropTypes<O> = {
|
|
|
408
404
|
} & {
|
|
409
405
|
[K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]>;
|
|
410
406
|
};
|
|
411
|
-
declare const enum BooleanFlags {
|
|
412
|
-
shouldCast = 0,
|
|
413
|
-
shouldCastTrue = 1
|
|
414
|
-
}
|
|
415
407
|
export type ExtractDefaultPropTypes<O> = O extends object ? {
|
|
416
408
|
[K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
|
|
417
409
|
} : {};
|
|
418
|
-
type NormalizedProp = null | (PropOptions & {
|
|
419
|
-
[BooleanFlags.shouldCast]?: boolean;
|
|
420
|
-
[BooleanFlags.shouldCastTrue]?: boolean;
|
|
421
|
-
});
|
|
422
|
-
type NormalizedProps = Record<string, NormalizedProp>;
|
|
423
|
-
type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
|
|
424
410
|
|
|
425
411
|
/**
|
|
426
412
|
Runtime helper for applying directives to a vnode. Example usage:
|
|
@@ -509,23 +495,10 @@ export declare const enum DeprecationTypes {
|
|
|
509
495
|
FILTERS = "FILTERS",
|
|
510
496
|
PRIVATE_APIS = "PRIVATE_APIS"
|
|
511
497
|
}
|
|
512
|
-
declare function warnDeprecation(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): void;
|
|
513
498
|
type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
|
|
514
499
|
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
|
|
515
500
|
};
|
|
516
501
|
declare function configureCompat(config: CompatConfig): void;
|
|
517
|
-
declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
|
|
518
|
-
/**
|
|
519
|
-
* Use this for features where legacy usage is still possible, but will likely
|
|
520
|
-
* lead to runtime error if compat is disabled. (warn in all cases)
|
|
521
|
-
*/
|
|
522
|
-
declare function softAssertCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
523
|
-
/**
|
|
524
|
-
* Use this for features with the same syntax but with mutually exclusive
|
|
525
|
-
* behavior in 2 vs 3. Only warn if compat is enabled.
|
|
526
|
-
* e.g. render function
|
|
527
|
-
*/
|
|
528
|
-
declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
529
502
|
|
|
530
503
|
/**
|
|
531
504
|
* Interface for declaring custom options.
|
|
@@ -559,10 +532,6 @@ export interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedO
|
|
|
559
532
|
expose?: string[];
|
|
560
533
|
serverPrefetch?(): void | Promise<any>;
|
|
561
534
|
compilerOptions?: RuntimeCompilerOptions;
|
|
562
|
-
/* removed internal: ssrRender */
|
|
563
|
-
/* removed internal: __ssrInlineRender */
|
|
564
|
-
/* removed internal: __asyncLoader */
|
|
565
|
-
/* removed internal: __asyncResolved */
|
|
566
535
|
call?: (this: unknown, ...args: unknown[]) => never;
|
|
567
536
|
__isFragment?: never;
|
|
568
537
|
__isTeleport?: never;
|
|
@@ -663,7 +632,6 @@ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOpt
|
|
|
663
632
|
__differentiator?: keyof D | keyof C | keyof M;
|
|
664
633
|
}
|
|
665
634
|
type MergedHook<T = () => void> = T | T[];
|
|
666
|
-
type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
667
635
|
type MergedComponentOptionsOverride = {
|
|
668
636
|
beforeCreate?: MergedHook;
|
|
669
637
|
created?: MergedHook;
|
|
@@ -737,7 +705,6 @@ export interface App<HostElement = any> {
|
|
|
737
705
|
*/
|
|
738
706
|
filter?(name: string): Function | undefined;
|
|
739
707
|
filter?(name: string, filter: Function): this;
|
|
740
|
-
/* removed internal: _createRoot */
|
|
741
708
|
}
|
|
742
709
|
export type OptionMergeFunction = (to: unknown, from: unknown) => any;
|
|
743
710
|
export interface AppConfig {
|
|
@@ -769,11 +736,6 @@ export interface AppContext {
|
|
|
769
736
|
components: Record<string, Component>;
|
|
770
737
|
directives: Record<string, Directive>;
|
|
771
738
|
provides: Record<string | symbol, any>;
|
|
772
|
-
/* removed internal: optionsCache */
|
|
773
|
-
/* removed internal: propsCache */
|
|
774
|
-
/* removed internal: emitsCache */
|
|
775
|
-
/* removed internal: reload */
|
|
776
|
-
/* removed internal: filters */
|
|
777
739
|
}
|
|
778
740
|
type PluginInstallFunction<Options> = Options extends unknown[] ? (app: App, ...options: Options) => any : (app: App, options: Options) => any;
|
|
779
741
|
export type Plugin<Options = any[]> = (PluginInstallFunction<Options> & {
|
|
@@ -888,7 +850,6 @@ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
|
888
850
|
* @private
|
|
889
851
|
*/
|
|
890
852
|
export declare function resolveDirective(name: string): Directive | undefined;
|
|
891
|
-
/* removed internal: resolveFilter$1 */
|
|
892
853
|
|
|
893
854
|
export declare const Fragment: {
|
|
894
855
|
new (): {
|
|
@@ -929,8 +890,6 @@ export type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | n
|
|
|
929
890
|
export interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
|
|
930
891
|
[key: string]: any;
|
|
931
892
|
}> {
|
|
932
|
-
/* removed internal: __v_isVNode */
|
|
933
|
-
|
|
934
893
|
type: VNodeTypes;
|
|
935
894
|
props: (VNodeProps & ExtraProps) | null;
|
|
936
895
|
key: string | number | symbol | null;
|
|
@@ -940,7 +899,6 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
|
|
|
940
899
|
* which is set alongside currentRenderingInstance.
|
|
941
900
|
*/
|
|
942
901
|
scopeId: string | null;
|
|
943
|
-
/* removed internal: slotScopeIds */
|
|
944
902
|
children: VNodeNormalizedChildren;
|
|
945
903
|
component: ComponentInternalInstance | null;
|
|
946
904
|
dirs: DirectiveBinding[] | null;
|
|
@@ -949,19 +907,10 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
|
|
|
949
907
|
anchor: HostNode | null;
|
|
950
908
|
target: HostElement | null;
|
|
951
909
|
targetAnchor: HostNode | null;
|
|
952
|
-
/* removed internal: staticCount */
|
|
953
910
|
suspense: SuspenseBoundary | null;
|
|
954
|
-
/* removed internal: ssContent */
|
|
955
|
-
/* removed internal: ssFallback */
|
|
956
911
|
shapeFlag: number;
|
|
957
912
|
patchFlag: number;
|
|
958
|
-
/* removed internal: dynamicProps */
|
|
959
|
-
/* removed internal: dynamicChildren */
|
|
960
913
|
appContext: AppContext | null;
|
|
961
|
-
/* removed internal: ctx */
|
|
962
|
-
/* removed internal: memo */
|
|
963
|
-
/* removed internal: isCompatRoot */
|
|
964
|
-
/* removed internal: ce */
|
|
965
914
|
}
|
|
966
915
|
/**
|
|
967
916
|
* Open a block.
|
|
@@ -1040,7 +989,6 @@ export declare function createStaticVNode(content: string, numberOfNodes: number
|
|
|
1040
989
|
* @private
|
|
1041
990
|
*/
|
|
1042
991
|
export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
|
|
1043
|
-
declare function normalizeVNode(child: VNodeChild): VNode;
|
|
1044
992
|
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
1045
993
|
|
|
1046
994
|
type Data = Record<string, unknown>;
|
|
@@ -1057,9 +1005,6 @@ export interface AllowedComponentProps {
|
|
|
1057
1005
|
style?: unknown;
|
|
1058
1006
|
}
|
|
1059
1007
|
interface ComponentInternalOptions {
|
|
1060
|
-
/* removed internal: __scopeId */
|
|
1061
|
-
/* removed internal: __cssModules */
|
|
1062
|
-
/* removed internal: __hmrId */
|
|
1063
1008
|
/**
|
|
1064
1009
|
* Compat build only, for bailing out of certain compatibility behavior
|
|
1065
1010
|
*/
|
|
@@ -1092,21 +1037,19 @@ interface ClassComponent {
|
|
|
1092
1037
|
* values, e.g. checking if its a function or not. This is mostly for internal
|
|
1093
1038
|
* implementation code.
|
|
1094
1039
|
*/
|
|
1095
|
-
export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any
|
|
1040
|
+
export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>;
|
|
1096
1041
|
/**
|
|
1097
1042
|
* A type used in public APIs where a component type is expected.
|
|
1098
1043
|
* The constructor type is an artificial type returned by defineComponent().
|
|
1099
1044
|
*/
|
|
1100
1045
|
export type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>;
|
|
1101
1046
|
|
|
1102
|
-
type LifecycleHook<TFn = Function> = TFn[] | null;
|
|
1103
1047
|
export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
|
|
1104
1048
|
attrs: Data;
|
|
1105
1049
|
slots: UnwrapSlotsType<S>;
|
|
1106
1050
|
emit: EmitFn<E>;
|
|
1107
1051
|
expose: (exposed?: Record<string, any>) => void;
|
|
1108
1052
|
} : never;
|
|
1109
|
-
/* removed internal: InternalRenderFunction */
|
|
1110
1053
|
/**
|
|
1111
1054
|
* We expose a subset of properties on the internal instance as they are
|
|
1112
1055
|
* useful for advanced external libraries and tools.
|
|
@@ -1121,7 +1064,6 @@ export interface ComponentInternalInstance {
|
|
|
1121
1064
|
* Vnode representing this component in its parent's vdom tree
|
|
1122
1065
|
*/
|
|
1123
1066
|
vnode: VNode;
|
|
1124
|
-
/* removed internal: next */
|
|
1125
1067
|
/**
|
|
1126
1068
|
* Root vnode of this component's own vdom tree
|
|
1127
1069
|
*/
|
|
@@ -1134,25 +1076,9 @@ export interface ComponentInternalInstance {
|
|
|
1134
1076
|
* Bound effect runner to be passed to schedulers
|
|
1135
1077
|
*/
|
|
1136
1078
|
update: SchedulerJob;
|
|
1137
|
-
/* removed internal: render */
|
|
1138
|
-
/* removed internal: ssrRender */
|
|
1139
|
-
/* removed internal: provides */
|
|
1140
|
-
/* removed internal: scope */
|
|
1141
|
-
/* removed internal: accessCache */
|
|
1142
|
-
/* removed internal: renderCache */
|
|
1143
|
-
/* removed internal: components */
|
|
1144
|
-
/* removed internal: directives */
|
|
1145
|
-
/* removed internal: filters */
|
|
1146
|
-
/* removed internal: propsOptions */
|
|
1147
|
-
/* removed internal: emitsOptions */
|
|
1148
|
-
/* removed internal: inheritAttrs */
|
|
1149
|
-
/* removed internal: isCE */
|
|
1150
|
-
/* removed internal: ceReload */
|
|
1151
1079
|
proxy: ComponentPublicInstance | null;
|
|
1152
1080
|
exposed: Record<string, any> | null;
|
|
1153
1081
|
exposeProxy: Record<string, any> | null;
|
|
1154
|
-
/* removed internal: withProxy */
|
|
1155
|
-
/* removed internal: ctx */
|
|
1156
1082
|
data: Data;
|
|
1157
1083
|
props: Data;
|
|
1158
1084
|
attrs: Data;
|
|
@@ -1161,39 +1087,11 @@ export interface ComponentInternalInstance {
|
|
|
1161
1087
|
emit: EmitFn;
|
|
1162
1088
|
attrsProxy: Data | null;
|
|
1163
1089
|
slotsProxy: Slots | null;
|
|
1164
|
-
/* removed internal: emitted */
|
|
1165
|
-
/* removed internal: propsDefaults */
|
|
1166
|
-
/* removed internal: setupState */
|
|
1167
|
-
/* removed internal: devtoolsRawSetupState */
|
|
1168
|
-
/* removed internal: setupContext */
|
|
1169
|
-
/* removed internal: suspense */
|
|
1170
|
-
/* removed internal: suspenseId */
|
|
1171
|
-
/* removed internal: asyncDep */
|
|
1172
|
-
/* removed internal: asyncResolved */
|
|
1173
1090
|
isMounted: boolean;
|
|
1174
1091
|
isUnmounted: boolean;
|
|
1175
1092
|
isDeactivated: boolean;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/* removed internal: f */
|
|
1191
|
-
/* removed internal: n */
|
|
1192
|
-
/* removed internal: ut */
|
|
1193
1093
|
}
|
|
1194
|
-
declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
|
|
1195
1094
|
export declare const getCurrentInstance: () => ComponentInternalInstance | null;
|
|
1196
|
-
declare function setupComponent(instance: ComponentInternalInstance, isSSR?: boolean): Promise<void> | undefined;
|
|
1197
1095
|
/**
|
|
1198
1096
|
* For runtime-dom to register the compiler.
|
|
1199
1097
|
* Note the exported method uses any to avoid d.ts relying on the compiler types.
|
|
@@ -1257,6 +1155,7 @@ export interface AsyncComponentOptions<T = any> {
|
|
|
1257
1155
|
suspensible?: boolean;
|
|
1258
1156
|
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
|
|
1259
1157
|
}
|
|
1158
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
1260
1159
|
export declare function defineAsyncComponent<T extends Component = {
|
|
1261
1160
|
new (): ComponentPublicInstance;
|
|
1262
1161
|
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
@@ -1383,7 +1282,7 @@ export declare function defineSlots<S extends Record<string, any> = Record<strin
|
|
|
1383
1282
|
* modelValue.value = "hello"
|
|
1384
1283
|
*
|
|
1385
1284
|
* // default model with options
|
|
1386
|
-
* const modelValue = defineModel<
|
|
1285
|
+
* const modelValue = defineModel<string>({ required: true })
|
|
1387
1286
|
*
|
|
1388
1287
|
* // with specified name (consumed via `v-model:count`)
|
|
1389
1288
|
* const count = defineModel<number>('count')
|
|
@@ -1423,7 +1322,7 @@ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : n
|
|
|
1423
1322
|
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = Omit<T, keyof Defaults> & {
|
|
1424
1323
|
[K in keyof Defaults]-?: K extends keyof T ? Defaults[K] extends undefined ? T[K] : NotUndefined<T[K]> : never;
|
|
1425
1324
|
} & {
|
|
1426
|
-
readonly [K in BKeys]-?: boolean;
|
|
1325
|
+
readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean;
|
|
1427
1326
|
};
|
|
1428
1327
|
/**
|
|
1429
1328
|
* Vue `<script setup>` compiler macro for providing props default values when
|
|
@@ -1451,10 +1350,6 @@ export declare function useAttrs(): SetupContext['attrs'];
|
|
|
1451
1350
|
export declare function useModel<T extends Record<string, any>, K extends keyof T>(props: T, name: K, options?: {
|
|
1452
1351
|
local?: boolean;
|
|
1453
1352
|
}): Ref<T[K]>;
|
|
1454
|
-
/* removed internal: mergeDefaults */
|
|
1455
|
-
/* removed internal: mergeModels */
|
|
1456
|
-
/* removed internal: createPropsRestProxy */
|
|
1457
|
-
/* removed internal: withAsyncContext */
|
|
1458
1353
|
|
|
1459
1354
|
type RawProps = VNodeProps & {
|
|
1460
1355
|
__v_isVNode?: never;
|
|
@@ -1493,7 +1388,6 @@ export declare const ssrContextKey: unique symbol;
|
|
|
1493
1388
|
export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
|
|
1494
1389
|
|
|
1495
1390
|
export declare function warn(msg: string, ...args: any[]): void;
|
|
1496
|
-
/* removed internal: assertNumber */
|
|
1497
1391
|
|
|
1498
1392
|
export declare const enum ErrorCodes {
|
|
1499
1393
|
SETUP_FUNCTION = 0,
|
|
@@ -1534,7 +1428,7 @@ interface DevtoolsHook {
|
|
|
1534
1428
|
appRecords: AppRecord[];
|
|
1535
1429
|
/**
|
|
1536
1430
|
* Added at https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9
|
|
1537
|
-
* Returns
|
|
1431
|
+
* Returns whether the arg was buffered or not
|
|
1538
1432
|
*/
|
|
1539
1433
|
cleanupBuffer?: (matchArg: unknown) => boolean;
|
|
1540
1434
|
}
|
|
@@ -1551,17 +1445,6 @@ declare function createRecord(id: string, initialDef: HMRComponent): boolean;
|
|
|
1551
1445
|
declare function rerender(id: string, newRender?: Function): void;
|
|
1552
1446
|
declare function reload(id: string, newComp: HMRComponent): void;
|
|
1553
1447
|
|
|
1554
|
-
/**
|
|
1555
|
-
* Note: rendering calls maybe nested. The function returns the parent rendering
|
|
1556
|
-
* instance if present, which should be restored after the render is done:
|
|
1557
|
-
*
|
|
1558
|
-
* ```js
|
|
1559
|
-
* const prev = setCurrentRenderingInstance(i)
|
|
1560
|
-
* // ...render
|
|
1561
|
-
* setCurrentRenderingInstance(prev)
|
|
1562
|
-
* ```
|
|
1563
|
-
*/
|
|
1564
|
-
declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): ComponentInternalInstance | null;
|
|
1565
1448
|
/**
|
|
1566
1449
|
* Set scope id when creating hoisted vnodes.
|
|
1567
1450
|
* @private compiler helper
|
|
@@ -1635,8 +1518,6 @@ export declare function withMemo(memo: any[], render: () => VNode<any, any>, cac
|
|
|
1635
1518
|
}>;
|
|
1636
1519
|
export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
|
|
1637
1520
|
|
|
1638
|
-
declare function renderComponentRoot(instance: ComponentInternalInstance): VNode;
|
|
1639
|
-
|
|
1640
1521
|
export type LegacyConfig = {
|
|
1641
1522
|
/**
|
|
1642
1523
|
* @deprecated `config.silent` option has been removed
|
|
@@ -1716,12 +1597,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
|
|
|
1716
1597
|
* @deprecated filters have been removed from Vue 3.
|
|
1717
1598
|
*/
|
|
1718
1599
|
filter(name: string, arg?: any): null;
|
|
1719
|
-
/* removed internal: cid */
|
|
1720
|
-
/* removed internal: options */
|
|
1721
|
-
/* removed internal: util */
|
|
1722
|
-
/* removed internal: super */
|
|
1723
1600
|
};
|
|
1724
|
-
declare function createCompatVue(createApp: CreateAppFunction<Element>, createSingletonApp: CreateAppFunction<Element>): CompatVue;
|
|
1725
1601
|
|
|
1726
1602
|
export declare const version: string;
|
|
1727
1603
|
|
|
@@ -1733,11 +1609,6 @@ declare module '@vue/reactivity' {
|
|
|
1733
1609
|
}
|
|
1734
1610
|
}
|
|
1735
1611
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
1612
|
export { createBaseVNode as createElementVNode, };
|
|
1742
1613
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1743
1614
|
// build.
|