fix(types): incorrect type inference of array (#4578)
This commit is contained in:
@@ -41,7 +41,11 @@ export type DefineComponent<
|
||||
E extends EmitsOptions = {},
|
||||
EE extends string = string,
|
||||
PP = PublicProps,
|
||||
Props = Readonly<ExtractPropTypes<PropsOrPropOptions>> &
|
||||
Props = Readonly<
|
||||
PropsOrPropOptions extends ComponentPropsOptions
|
||||
? ExtractPropTypes<PropsOrPropOptions>
|
||||
: PropsOrPropOptions
|
||||
> &
|
||||
({} extends E ? {} : EmitsToProps<E>),
|
||||
Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>
|
||||
> = ComponentPublicInstanceConstructor<
|
||||
|
||||
Reference in New Issue
Block a user