chore: run prettier

This commit is contained in:
Evan You 2022-11-08 14:25:48 +08:00
parent e049772247
commit 4c3203b9b7
3 changed files with 29 additions and 15 deletions

View File

@ -138,7 +138,7 @@ export function defineComponent<
E extends EmitsOptions = {},
EE extends string = string,
I extends ComponentInjectOptions = {},
II extends string = string,
II extends string = string
>(
options: ComponentOptionsWithArrayProps<
PropNames,
@ -180,7 +180,7 @@ export function defineComponent<
E extends EmitsOptions = {},
EE extends string = string,
I extends ComponentInjectOptions = {},
II extends string = string,
II extends string = string
>(
options: ComponentOptionsWithObjectProps<
PropsOptions,

View File

@ -229,7 +229,7 @@ export type ComponentOptionsWithoutProps<
EE extends string = string,
I extends ComponentInjectOptions = {},
II extends string = string,
PE = Props & EmitsToProps<E>,
PE = Props & EmitsToProps<E>
> = ComponentOptionsBase<
PE,
RawBindings,
@ -246,7 +246,20 @@ export type ComponentOptionsWithoutProps<
> & {
props?: undefined
} & ThisType<
CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E, PE, {}, false, I>
CreateComponentPublicInstance<
PE,
RawBindings,
D,
C,
M,
Mixin,
Extends,
E,
PE,
{},
false,
I
>
>
export type ComponentOptionsWithArrayProps<
@ -307,7 +320,7 @@ export type ComponentOptionsWithObjectProps<
I extends ComponentInjectOptions = {},
II extends string = string,
Props = Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>,
Defaults = ExtractDefaultPropTypes<PropsOptions>,
Defaults = ExtractDefaultPropTypes<PropsOptions>
> = ComponentOptionsBase<
Props,
RawBindings,
@ -415,15 +428,16 @@ type ObjectInjectOptions = Record<
string | symbol | { from?: string | symbol; default?: unknown }
>
export type InjectToObject<T extends ComponentInjectOptions> = T extends string[]
? {
[K in T[number]]?: unknown
}
: T extends ObjectInjectOptions
? {
[K in keyof T]?: unknown
}
: never
export type InjectToObject<T extends ComponentInjectOptions> =
T extends string[]
? {
[K in T[number]]?: unknown
}
: T extends ObjectInjectOptions
? {
[K in keyof T]?: unknown
}
: never
interface LegacyOptions<
Props,

View File

@ -153,7 +153,7 @@ export type CreateComponentPublicInstance<
PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> &
EnsureNonVoid<M>,
PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> &
EnsureNonVoid<Defaults>,
EnsureNonVoid<Defaults>
> = ComponentPublicInstance<
PublicP,
PublicB,