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,
|
||||
Extends,
|
||||
E,
|
||||
S,
|
||||
PP & Props,
|
||||
Defaults,
|
||||
true
|
||||
true,
|
||||
{},
|
||||
S
|
||||
> &
|
||||
Props
|
||||
> &
|
||||
|
@ -82,8 +83,10 @@ export type DefineComponent<
|
|||
Extends,
|
||||
E,
|
||||
EE,
|
||||
S,
|
||||
Defaults
|
||||
Defaults,
|
||||
{},
|
||||
string,
|
||||
S
|
||||
> &
|
||||
PP
|
||||
|
||||
|
|
|
@ -106,10 +106,10 @@ export interface ComponentOptionsBase<
|
|||
Extends extends ComponentOptionsMixin,
|
||||
E extends EmitsOptions,
|
||||
EE extends string = string,
|
||||
S extends SlotsType = {},
|
||||
Defaults = {},
|
||||
I extends ComponentInjectOptions = {},
|
||||
II extends string = string
|
||||
II extends string = string,
|
||||
S extends SlotsType = {}
|
||||
> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II>,
|
||||
ComponentInternalOptions,
|
||||
ComponentCustomOptions {
|
||||
|
@ -233,10 +233,10 @@ export type ComponentOptionsWithoutProps<
|
|||
Extends,
|
||||
E,
|
||||
EE,
|
||||
S,
|
||||
{},
|
||||
I,
|
||||
II
|
||||
II,
|
||||
S
|
||||
> & {
|
||||
props?: undefined
|
||||
} & ThisType<
|
||||
|
@ -249,11 +249,11 @@ export type ComponentOptionsWithoutProps<
|
|||
Mixin,
|
||||
Extends,
|
||||
E,
|
||||
S,
|
||||
PE,
|
||||
{},
|
||||
false,
|
||||
I
|
||||
I,
|
||||
S
|
||||
>
|
||||
>
|
||||
|
||||
|
@ -281,10 +281,10 @@ export type ComponentOptionsWithArrayProps<
|
|||
Extends,
|
||||
E,
|
||||
EE,
|
||||
S,
|
||||
{},
|
||||
I,
|
||||
II
|
||||
II,
|
||||
S
|
||||
> & {
|
||||
props: PropNames[]
|
||||
} & ThisType<
|
||||
|
@ -297,11 +297,11 @@ export type ComponentOptionsWithArrayProps<
|
|||
Mixin,
|
||||
Extends,
|
||||
E,
|
||||
S,
|
||||
Props,
|
||||
{},
|
||||
false,
|
||||
I
|
||||
I,
|
||||
S
|
||||
>
|
||||
>
|
||||
|
||||
|
@ -330,10 +330,10 @@ export type ComponentOptionsWithObjectProps<
|
|||
Extends,
|
||||
E,
|
||||
EE,
|
||||
S,
|
||||
Defaults,
|
||||
I,
|
||||
II
|
||||
II,
|
||||
S
|
||||
> & {
|
||||
props: PropsOptions & ThisType<void>
|
||||
} & ThisType<
|
||||
|
@ -346,11 +346,11 @@ export type ComponentOptionsWithObjectProps<
|
|||
Mixin,
|
||||
Extends,
|
||||
E,
|
||||
S,
|
||||
Props,
|
||||
Defaults,
|
||||
false,
|
||||
I
|
||||
I,
|
||||
S
|
||||
>
|
||||
>
|
||||
|
||||
|
|
|
@ -89,8 +89,10 @@ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<
|
|||
infer Extends,
|
||||
any,
|
||||
any,
|
||||
infer Defaults,
|
||||
any,
|
||||
infer Defaults
|
||||
any,
|
||||
any
|
||||
>
|
||||
? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> &
|
||||
IntersectionMixin<Mixin> &
|
||||
|
@ -142,11 +144,11 @@ export type CreateComponentPublicInstance<
|
|||
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,
|
||||
Extends extends ComponentOptionsMixin = ComponentOptionsMixin,
|
||||
E extends EmitsOptions = {},
|
||||
S extends SlotsType = {},
|
||||
PublicProps = P,
|
||||
Defaults = {},
|
||||
MakeDefaultsOptional extends boolean = false,
|
||||
I extends ComponentInjectOptions = {},
|
||||
S extends SlotsType = {},
|
||||
PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>,
|
||||
PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>,
|
||||
PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>,
|
||||
|
@ -167,7 +169,21 @@ export type CreateComponentPublicInstance<
|
|||
PublicProps,
|
||||
PublicDefaults,
|
||||
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,
|
||||
S
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue