@vue/runtime-core 3.2.33 → 3.2.35

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.
@@ -165,18 +165,18 @@ export declare interface BaseTransitionProps<HostElement = RendererElement> {
165
165
  mode?: 'in-out' | 'out-in' | 'default';
166
166
  appear?: boolean;
167
167
  persisted?: boolean;
168
- onBeforeEnter?: (el: HostElement) => void;
169
- onEnter?: (el: HostElement, done: () => void) => void;
170
- onAfterEnter?: (el: HostElement) => void;
171
- onEnterCancelled?: (el: HostElement) => void;
172
- onBeforeLeave?: (el: HostElement) => void;
173
- onLeave?: (el: HostElement, done: () => void) => void;
174
- onAfterLeave?: (el: HostElement) => void;
175
- onLeaveCancelled?: (el: HostElement) => void;
176
- onBeforeAppear?: (el: HostElement) => void;
177
- onAppear?: (el: HostElement, done: () => void) => void;
178
- onAfterAppear?: (el: HostElement) => void;
179
- onAppearCancelled?: (el: HostElement) => void;
168
+ onBeforeEnter?: Hook<(el: HostElement) => void>;
169
+ onEnter?: Hook<(el: HostElement, done: () => void) => void>;
170
+ onAfterEnter?: Hook<(el: HostElement) => void>;
171
+ onEnterCancelled?: Hook<(el: HostElement) => void>;
172
+ onBeforeLeave?: Hook<(el: HostElement) => void>;
173
+ onLeave?: Hook<(el: HostElement, done: () => void) => void>;
174
+ onAfterLeave?: Hook<(el: HostElement) => void>;
175
+ onLeaveCancelled?: Hook<(el: HostElement) => void>;
176
+ onBeforeAppear?: Hook<(el: HostElement) => void>;
177
+ onAppear?: Hook<(el: HostElement, done: () => void) => void>;
178
+ onAfterAppear?: Hook<(el: HostElement) => void>;
179
+ onAppearCancelled?: Hook<(el: HostElement) => void>;
180
180
  }
181
181
 
182
182
  declare const enum BooleanFlags {
@@ -409,6 +409,14 @@ export declare interface ComponentInternalInstance {
409
409
  /* Excluded from this release type: da */
410
410
  /* Excluded from this release type: ec */
411
411
  /* Excluded from this release type: sp */
412
+ /**
413
+ * For caching bound $forceUpdate on public proxy access
414
+ */
415
+ f?: () => void;
416
+ /**
417
+ * For caching bound $nextTick on public proxy access
418
+ */
419
+ n?: () => Promise<void>;
412
420
  }
413
421
 
414
422
  declare interface ComponentInternalOptions {
@@ -472,6 +480,8 @@ export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D
472
480
 
473
481
  export declare type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
474
482
 
483
+ export declare type ComponentProvideOptions = ObjectProvideOptions | Function;
484
+
475
485
  export declare type ComponentPublicInstance<P = {}, // props type extracted from props option
476
486
  B = {}, // raw bindings returned from setup()
477
487
  D = {}, // return from data()
@@ -860,7 +870,7 @@ declare type ExtractComputedReturns<T extends any> = {
860
870
  };
861
871
 
862
872
  export declare type ExtractDefaultPropTypes<O> = O extends object ? {
863
- [K in DefaultKeys<O>]: InferPropType<O[K]>;
873
+ [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
864
874
  } : {};
865
875
 
866
876
  declare type ExtractMixin<T> = {
@@ -956,6 +966,8 @@ export declare interface HMRRuntime {
956
966
  reload: typeof reload;
957
967
  }
958
968
 
969
+ declare type Hook<T = () => void> = T | T[];
970
+
959
971
  declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
960
972
 
961
973
  declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
@@ -1068,7 +1080,7 @@ declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends M
1068
1080
  computed?: C;
1069
1081
  methods?: M;
1070
1082
  watch?: ComponentWatchOptions;
1071
- provide?: Data | Function;
1083
+ provide?: ComponentProvideOptions;
1072
1084
  inject?: ComponentInjectOptions;
1073
1085
  filters?: Record<string, Function>;
1074
1086
  mixins?: Mixin[];
@@ -1100,8 +1112,8 @@ declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends M
1100
1112
  *
1101
1113
  * type-only, used to assist Mixin's type inference,
1102
1114
  * typescript will try to simplify the inferred `Mixin` type,
1103
- * with the `__differenciator`, typescript won't be able to combine different mixins,
1104
- * because the `__differenciator` will be different
1115
+ * with the `__differentiator`, typescript won't be able to combine different mixins,
1116
+ * because the `__differentiator` will be different
1105
1117
  */
1106
1118
  __differentiator?: keyof D | keyof C | keyof M;
1107
1119
  }
@@ -1244,6 +1256,8 @@ declare type ObjectInjectOptions = Record<string | symbol, string | symbol | {
1244
1256
  default?: unknown;
1245
1257
  }>;
1246
1258
 
1259
+ declare type ObjectProvideOptions = Record<string | symbol, unknown>;
1260
+
1247
1261
  declare type ObjectWatchOptionItem = {
1248
1262
  handler: WatchCallback | string;
1249
1263
  } & WatchOptions;
@@ -1876,7 +1890,7 @@ export declare type VNodeProps = {
1876
1890
  onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
1877
1891
  };
1878
1892
 
1879
- declare type VNodeRef = string | Ref | ((ref: object | null, refs: Record<string, any>) => void);
1893
+ export declare type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
1880
1894
 
1881
1895
  export declare type VNodeTypes = string | VNode | Component | typeof Text_2 | typeof Static | typeof Comment_2 | typeof Fragment | typeof TeleportImpl | typeof SuspenseImpl;
1882
1896