@vue/runtime-dom 3.2.40 → 3.2.42

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.
@@ -1,4 +1,5 @@
1
1
  import { BaseTransitionProps } from '@vue/runtime-core';
2
+ import { ComponentInjectOptions } from '@vue/runtime-core';
2
3
  import { ComponentInternalInstance } from '@vue/runtime-core';
3
4
  import { ComponentOptionsMixin } from '@vue/runtime-core';
4
5
  import { ComponentOptionsWithArrayProps } from '@vue/runtime-core';
@@ -21,6 +22,8 @@ import { SetupContext } from '@vue/runtime-core';
21
22
 
22
23
  declare const ANIMATION = "animation";
23
24
 
25
+ declare type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
26
+
24
27
  declare type AssignerFn = (value: any) => void;
25
28
 
26
29
  declare const BaseClass: {
@@ -34,17 +37,17 @@ export declare const createSSRApp: CreateAppFunction<Element>;
34
37
 
35
38
  export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
36
39
 
37
- export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
40
+ export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
38
41
  styles?: string[];
39
42
  }): VueElementConstructor<Props>;
40
43
 
41
- export declare function defineCustomElement<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
44
+ export declare function defineCustomElement<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
42
45
  styles?: string[];
43
46
  }): VueElementConstructor<{
44
47
  [K in PropNames]: any;
45
48
  }>;
46
49
 
47
- export declare function defineCustomElement<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
50
+ export declare function defineCustomElement<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II> & {
48
51
  styles?: string[];
49
52
  }): VueElementConstructor<ExtractPropTypes<PropsOptions>>;
50
53
 
@@ -83,7 +86,7 @@ export declare type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
83
86
 
84
87
  export declare interface TransitionProps extends BaseTransitionProps<Element> {
85
88
  name?: string;
86
- type?: typeof TRANSITION | typeof ANIMATION;
89
+ type?: AnimationTypes;
87
90
  css?: boolean;
88
91
  duration?: number | {
89
92
  enter: number;
@@ -1469,7 +1472,7 @@ export interface Events {
1469
1472
  }
1470
1473
 
1471
1474
  type EventHandlers<E> = {
1472
- [K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
1475
+ [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void
1473
1476
  }
1474
1477
 
1475
1478
  // use namespace import to avoid collision with generated types which use