mirror of https://github.com/vuejs/core.git
fix(types): more public type argument order fix
This commit is contained in:
parent
bdf557f6f2
commit
af563bf428
|
@ -65,10 +65,11 @@ export type DefineComponent<
|
||||||
Mixin,
|
Mixin,
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
S,
|
|
||||||
PP & Props,
|
PP & Props,
|
||||||
Defaults,
|
Defaults,
|
||||||
true
|
true,
|
||||||
|
{},
|
||||||
|
S
|
||||||
> &
|
> &
|
||||||
Props
|
Props
|
||||||
> &
|
> &
|
||||||
|
@ -82,8 +83,10 @@ export type DefineComponent<
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
EE,
|
EE,
|
||||||
S,
|
Defaults,
|
||||||
Defaults
|
{},
|
||||||
|
string,
|
||||||
|
S
|
||||||
> &
|
> &
|
||||||
PP
|
PP
|
||||||
|
|
||||||
|
|
|
@ -106,10 +106,10 @@ export interface ComponentOptionsBase<
|
||||||
Extends extends ComponentOptionsMixin,
|
Extends extends ComponentOptionsMixin,
|
||||||
E extends EmitsOptions,
|
E extends EmitsOptions,
|
||||||
EE extends string = string,
|
EE extends string = string,
|
||||||
S extends SlotsType = {},
|
|
||||||
Defaults = {},
|
Defaults = {},
|
||||||
I extends ComponentInjectOptions = {},
|
I extends ComponentInjectOptions = {},
|
||||||
II extends string = string
|
II extends string = string,
|
||||||
|
S extends SlotsType = {}
|
||||||
> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II>,
|
> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II>,
|
||||||
ComponentInternalOptions,
|
ComponentInternalOptions,
|
||||||
ComponentCustomOptions {
|
ComponentCustomOptions {
|
||||||
|
@ -233,10 +233,10 @@ export type ComponentOptionsWithoutProps<
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
EE,
|
EE,
|
||||||
S,
|
|
||||||
{},
|
{},
|
||||||
I,
|
I,
|
||||||
II
|
II,
|
||||||
|
S
|
||||||
> & {
|
> & {
|
||||||
props?: undefined
|
props?: undefined
|
||||||
} & ThisType<
|
} & ThisType<
|
||||||
|
@ -249,11 +249,11 @@ export type ComponentOptionsWithoutProps<
|
||||||
Mixin,
|
Mixin,
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
S,
|
|
||||||
PE,
|
PE,
|
||||||
{},
|
{},
|
||||||
false,
|
false,
|
||||||
I
|
I,
|
||||||
|
S
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
|
@ -281,10 +281,10 @@ export type ComponentOptionsWithArrayProps<
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
EE,
|
EE,
|
||||||
S,
|
|
||||||
{},
|
{},
|
||||||
I,
|
I,
|
||||||
II
|
II,
|
||||||
|
S
|
||||||
> & {
|
> & {
|
||||||
props: PropNames[]
|
props: PropNames[]
|
||||||
} & ThisType<
|
} & ThisType<
|
||||||
|
@ -297,11 +297,11 @@ export type ComponentOptionsWithArrayProps<
|
||||||
Mixin,
|
Mixin,
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
S,
|
|
||||||
Props,
|
Props,
|
||||||
{},
|
{},
|
||||||
false,
|
false,
|
||||||
I
|
I,
|
||||||
|
S
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
|
@ -330,10 +330,10 @@ export type ComponentOptionsWithObjectProps<
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
EE,
|
EE,
|
||||||
S,
|
|
||||||
Defaults,
|
Defaults,
|
||||||
I,
|
I,
|
||||||
II
|
II,
|
||||||
|
S
|
||||||
> & {
|
> & {
|
||||||
props: PropsOptions & ThisType<void>
|
props: PropsOptions & ThisType<void>
|
||||||
} & ThisType<
|
} & ThisType<
|
||||||
|
@ -346,11 +346,11 @@ export type ComponentOptionsWithObjectProps<
|
||||||
Mixin,
|
Mixin,
|
||||||
Extends,
|
Extends,
|
||||||
E,
|
E,
|
||||||
S,
|
|
||||||
Props,
|
Props,
|
||||||
Defaults,
|
Defaults,
|
||||||
false,
|
false,
|
||||||
I
|
I,
|
||||||
|
S
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,10 @@ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<
|
||||||
infer Extends,
|
infer Extends,
|
||||||
any,
|
any,
|
||||||
any,
|
any,
|
||||||
|
infer Defaults,
|
||||||
any,
|
any,
|
||||||
infer Defaults
|
any,
|
||||||
|
any
|
||||||
>
|
>
|
||||||
? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> &
|
? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> &
|
||||||
IntersectionMixin<Mixin> &
|
IntersectionMixin<Mixin> &
|
||||||
|
@ -142,11 +144,11 @@ export type CreateComponentPublicInstance<
|
||||||
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,
|
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,
|
||||||
Extends extends ComponentOptionsMixin = ComponentOptionsMixin,
|
Extends extends ComponentOptionsMixin = ComponentOptionsMixin,
|
||||||
E extends EmitsOptions = {},
|
E extends EmitsOptions = {},
|
||||||
S extends SlotsType = {},
|
|
||||||
PublicProps = P,
|
PublicProps = P,
|
||||||
Defaults = {},
|
Defaults = {},
|
||||||
MakeDefaultsOptional extends boolean = false,
|
MakeDefaultsOptional extends boolean = false,
|
||||||
I extends ComponentInjectOptions = {},
|
I extends ComponentInjectOptions = {},
|
||||||
|
S extends SlotsType = {},
|
||||||
PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>,
|
PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>,
|
||||||
PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>,
|
PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>,
|
||||||
PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>,
|
PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>,
|
||||||
|
@ -167,7 +169,21 @@ export type CreateComponentPublicInstance<
|
||||||
PublicProps,
|
PublicProps,
|
||||||
PublicDefaults,
|
PublicDefaults,
|
||||||
MakeDefaultsOptional,
|
MakeDefaultsOptional,
|
||||||
ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, S, Defaults>,
|
ComponentOptionsBase<
|
||||||
|
P,
|
||||||
|
B,
|
||||||
|
D,
|
||||||
|
C,
|
||||||
|
M,
|
||||||
|
Mixin,
|
||||||
|
Extends,
|
||||||
|
E,
|
||||||
|
string,
|
||||||
|
Defaults,
|
||||||
|
{},
|
||||||
|
string,
|
||||||
|
S
|
||||||
|
>,
|
||||||
I,
|
I,
|
||||||
S
|
S
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue