@vue/runtime-core 3.2.35 → 3.2.38
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 +326 -298
- package/dist/runtime-core.cjs.prod.js +265 -243
- package/dist/runtime-core.d.ts +14 -6
- package/dist/runtime-core.esm-bundler.js +330 -304
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ export declare type CompatVue = Pick<App, 'version' | 'component' | 'directive'>
|
|
|
262
262
|
declare interface CompiledSlotDescriptor {
|
|
263
263
|
name: string;
|
|
264
264
|
fn: Slot;
|
|
265
|
+
key?: string;
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
/**
|
|
@@ -431,6 +432,10 @@ declare interface ComponentInternalOptions {
|
|
|
431
432
|
* This one should be exposed so that devtools can make use of it
|
|
432
433
|
*/
|
|
433
434
|
__file?: string;
|
|
435
|
+
/**
|
|
436
|
+
* name inferred from filename
|
|
437
|
+
*/
|
|
438
|
+
__name?: string;
|
|
434
439
|
}
|
|
435
440
|
|
|
436
441
|
export declare type ComponentObjectPropsOptions<P = Data> = {
|
|
@@ -657,13 +662,13 @@ export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D
|
|
|
657
662
|
|
|
658
663
|
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>;
|
|
659
664
|
|
|
660
|
-
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions =
|
|
665
|
+
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
661
666
|
|
|
662
|
-
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions =
|
|
667
|
+
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{
|
|
663
668
|
[key in PropNames]?: any;
|
|
664
669
|
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
665
670
|
|
|
666
|
-
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions =
|
|
671
|
+
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
667
672
|
|
|
668
673
|
/**
|
|
669
674
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
@@ -976,7 +981,7 @@ export declare interface HydrationRenderer extends Renderer<Element | ShadowRoot
|
|
|
976
981
|
hydrate: RootHydrateFunction;
|
|
977
982
|
}
|
|
978
983
|
|
|
979
|
-
declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T : (props: P) => T;
|
|
984
|
+
declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T | ((props: P) => T) : (props: P) => T;
|
|
980
985
|
|
|
981
986
|
declare type InferDefaults<T> = {
|
|
982
987
|
[K in keyof T]?: InferDefault<T, NotUndefined<T[K]>>;
|
|
@@ -1544,7 +1549,9 @@ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
|
1544
1549
|
|
|
1545
1550
|
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
1546
1551
|
|
|
1547
|
-
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element | ShadowRoot)
|
|
1552
|
+
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Element | ShadowRoot) & {
|
|
1553
|
+
_vnode?: VNode;
|
|
1554
|
+
}) => void;
|
|
1548
1555
|
|
|
1549
1556
|
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void;
|
|
1550
1557
|
|
|
@@ -1560,6 +1567,7 @@ export declare interface RuntimeCompilerOptions {
|
|
|
1560
1567
|
|
|
1561
1568
|
declare interface SchedulerJob extends Function {
|
|
1562
1569
|
id?: number;
|
|
1570
|
+
pre?: boolean;
|
|
1563
1571
|
active?: boolean;
|
|
1564
1572
|
computed?: boolean;
|
|
1565
1573
|
/**
|
|
@@ -1752,7 +1760,7 @@ export { toHandlerKey }
|
|
|
1752
1760
|
* For prefixing keys in v-on="obj" with "on"
|
|
1753
1761
|
* @private
|
|
1754
1762
|
*/
|
|
1755
|
-
export declare function toHandlers(obj: Record<string, any
|
|
1763
|
+
export declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
|
|
1756
1764
|
|
|
1757
1765
|
export { toRaw }
|
|
1758
1766
|
|