fix(types): avoid DefineComponent defaulting to any

fix #2192
This commit is contained in:
Evan You 2020-09-22 10:02:19 -04:00
parent 448358e900
commit 6aa2256913

View File

@ -31,9 +31,9 @@ export type PublicProps = VNodeProps &
ComponentCustomProps ComponentCustomProps
export type DefineComponent< export type DefineComponent<
PropsOrPropOptions = any, PropsOrPropOptions = {},
RawBindings = any, RawBindings = {},
D = any, D = {},
C extends ComputedOptions = ComputedOptions, C extends ComputedOptions = ComputedOptions,
M extends MethodOptions = MethodOptions, M extends MethodOptions = MethodOptions,
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,