]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix type
authorEvan You <yyx990803@gmail.com>
Tue, 3 Sep 2019 22:24:32 +0000 (18:24 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 3 Sep 2019 22:24:32 +0000 (18:24 -0400)
packages/runtime-core/src/component.ts

index 8ff7326225e92807e4588a91c91e51d55284903a..8d26f4f03d476ce00091d5fd8d5b8043c727f923 100644 (file)
@@ -107,7 +107,7 @@ interface SetupContext {
   emit: ((event: string, ...args: unknown[]) => void)
 }
 
-export type ComponentInstance<P = {}, S = {}> = {
+export type ComponentInstance<P = Data, S = Data> = {
   type: FunctionalComponent | ComponentOptions
   parent: ComponentInstance | null
   appContext: AppContext