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
export type DefineComponent<
PropsOrPropOptions = any,
RawBindings = any,
D = any,
PropsOrPropOptions = {},
RawBindings = {},
D = {},
C extends ComputedOptions = ComputedOptions,
M extends MethodOptions = MethodOptions,
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,