1
1
diff --git a/dist/runtime-core.d.ts b/dist/runtime-core.d.ts
2
- index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a6853ac491e 100644
2
+ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..e26f82d85eb272844bcffd67cd05dd8e8666db95 100644
3
3
--- a/dist/runtime-core.d.ts
4
4
+++ b/dist/runtime-core.d.ts
5
5
@@ -1,7 +1,7 @@
@@ -64,6 +64,15 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a68
64
64
export type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
65
65
type DefaultFactory<T> = (props: Data) => T | null | undefined;
66
66
interface PropOptions<T = any, D = T> {
67
+ @@ -467,7 +483,7 @@ export type ExtractPublicPropTypes<O> = {
68
+ } & {
69
+ [K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]>;
70
+ };
71
+ - export type ExtractDefaultPropTypes<O> = O extends object ? {
72
+ + export type ExtractDefaultPropTypes<O> = [O] extends [object] ? {
73
+ [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
74
+ } : {};
75
+
67
76
@@ -514,6 +530,15 @@ export type DirectiveArguments = Array<[Directive | undefined] | [Directive | un
68
77
*/
69
78
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
@@ -124,6 +133,15 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a68
124
133
__isTeleport: boolean;
125
134
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
126
135
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
136
+ @@ -822,7 +848,7 @@ declare const TeleportImpl: {
137
+ };
138
+ declare const enum TeleportMoveTypes {
139
+ TARGET_CHANGE = 0,
140
+ - TOGGLE = 1,
141
+ + TOGGLE = 1,// enable / disable
142
+ REORDER = 2
143
+ }
144
+ declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
127
145
@@ -883,7 +909,7 @@ export type VNodeProps = {
128
146
onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
129
147
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
@@ -225,7 +243,7 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a68
225
243
226
244
export declare const ssrContextKey: unique symbol;
227
245
export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
228
- @@ -1437,6 +1476,62 @@ interface DevtoolsHook {
246
+ @@ -1437,6 +1476,70 @@ interface DevtoolsHook {
229
247
export declare let devtools: DevtoolsHook;
230
248
export declare function setDevtoolsHook(hook: DevtoolsHook, target: any): void;
231
249
@@ -268,27 +286,35 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a68
268
286
+ type ResolveMixin<T> = [T] extends [
269
287
+ Readonly<ComponentOptionsBase<any, any, any, any, any, infer M, infer E, any, any, any, any, any, any>>
270
288
+ ] ? IntersectionMixin<M> & IntersectionMixin<E> : {};
271
- + export type ComponentPropsWithDefaultOptional<T> = ExtractDefaultPropTypes<ExtractComponentProp<T>> extends infer Defaults ? Partial<Defaults> & Omit<ComponentProps<T>, keyof Defaults> : {};
289
+ + export type ComponentPropsWithDefaultOptional<T> = ((T extends {
290
+ + props: infer P;
291
+ + } ? [P] extends [Array<infer PA>] ? [PA] extends [string] ? {
292
+ + [key in PA]?: any;
293
+ + } : never : P : T) extends infer Props ? ExtractDefaultPropTypes<T> extends infer Defaults ? Partial<Defaults> & Omit<ExtractPropTypes<Props>, keyof Defaults> : {} : {}) & (T extends {
294
+ + props: any;
295
+ + } ? ResolveMixinProps<Omit<T, 'props'>> : ResolveMixinProps<T>);
272
296
+ type ResolveMixinProps<T> = UnwrapMixinsType<ResolveMixin<T>, 'P'>;
273
297
+ export type ComponentProps<T, excludeEmits extends boolean = false> = (excludeEmits extends false ? ExtractComponentEmits<T> extends infer E ? E extends EmitsOptions ? EmitsToProps<E> : unknown : unknown : {}) & (T extends {
274
298
+ $props: infer P;
275
299
+ } ? P : (ExtractComponentProp<T> extends infer P ? P extends Readonly<Array<infer V>> ? [V] extends [string] ? Readonly<{
276
300
+ [key in V]?: any;
277
301
+ }> : {} : P extends ComponentPropsOptions ? ExtractPropTypes<P> : P : {}) & (T extends {
278
302
+ props: any;
279
- + } ? ResolveMixinProps<Omit<T, 'props'>> : {} ));
303
+ + } ? ResolveMixinProps<Omit<T, 'props'>> : ResolveMixinProps<T> ));
280
304
+ export type ComponentSlots<T> = ExtractComponentSlots<T> extends infer S ? {
281
305
+ [K in keyof S]: S[K] extends Slot<infer V> ? (arg: V) => VNode : never;
282
306
+ } : {};
283
307
+ export type ComponentEmits<T> = ExtractComponentEmits<T> extends infer E ? {} extends E ? () => void : EmitFn<E> : () => void;
284
308
+ export type ComponentInstance<T> = T extends {
285
309
+ new (): ComponentPublicInstance;
286
- + } ? InstanceType<T> : T extends FunctionalComponent<infer Props, infer Emits> ? ComponentPublicInstance<Props, {}, {}, {}, {}, Emits> : T extends ComponentPublicInstanceConstructor ? InstanceType<T> : T extends Component<infer Props, infer RawBindings, infer D, infer C, infer M> ? ComponentPublicInstance<unknown extends Props ? {} : Props, unknown extends RawBindings ? {} : RawBindings, unknown extends D ? {} : D, C, M> : never;
310
+ + } ? InstanceType<T> : T extends FunctionalComponent<infer Props, infer Emits> ? ComponentPublicInstance<Props, {}, {}, {}, {}, Emits> : T extends ComponentPublicInstanceConstructor ? InstanceType<T> : T extends ComponentDefineOptions<infer Props, infer RawBindings, infer D, infer C, infer M, infer Mixin, infer Extends, infer E, infer EE, infer I, infer II, infer S, infer Options> ? InstanceType<ReturnType<typeof defineComponent<Options extends {
311
+ + props: infer P;
312
+ + } ? P extends Array<infer PA> ? PA : P : Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S, Options>>> : T extends Component<infer Props, infer RawBindings, infer D, infer C, infer M> ? ComponentPublicInstance<unknown extends Props ? {} : Props, unknown extends RawBindings ? {} : RawBindings, unknown extends D ? {} : D, C, M> : never;
287
313
+
288
314
type HMRComponent = ComponentOptions | ClassComponent;
289
315
export interface HMRRuntime {
290
316
createRecord: typeof createRecord;
291
- @@ -1568,12 +1663 ,12 @@ interface LegacyPublicProperties {
317
+ @@ -1568,12 +1671 ,12 @@ interface LegacyPublicProperties {
292
318
*/
293
319
export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
294
320
configureCompat: typeof configureCompat;
@@ -303,7 +329,7 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..93ad7c6ac81064255901ac6319a31a68
303
329
component(name: string): Component | undefined;
304
330
component(name: string, component: Component): CompatVue;
305
331
directive(name: string): Directive | undefined;
306
- @@ -1582,7 +1677 ,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
332
+ @@ -1582,7 +1685 ,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
307
333
/**
308
334
* @deprecated Vue 3 no longer supports extending constructors.
309
335
*/
0 commit comments