From: Evan You Date: Tue, 22 Sep 2020 14:02:19 +0000 (-0400) Subject: fix(types): avoid DefineComponent defaulting to any X-Git-Tag: v3.0.1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa2256913bfd097500aba83b78482b87107c101;p=thirdparty%2Fvuejs%2Fcore.git fix(types): avoid DefineComponent defaulting to any fix #2192 --- diff --git a/packages/runtime-core/src/apiDefineComponent.ts b/packages/runtime-core/src/apiDefineComponent.ts index 9b85638c2d..333d18a30f 100644 --- a/packages/runtime-core/src/apiDefineComponent.ts +++ b/packages/runtime-core/src/apiDefineComponent.ts @@ -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,