]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): avoid DefineComponent defaulting to any
authorEvan You <yyx990803@gmail.com>
Tue, 22 Sep 2020 14:02:19 +0000 (10:02 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 22 Sep 2020 14:02:19 +0000 (10:02 -0400)
fix #2192

packages/runtime-core/src/apiDefineComponent.ts

index 9b85638c2dda4c77d78db024805191ab2b5a8a70..333d18a30f304f185df28798599d19f815dd5628 100644 (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,