]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: fix types
authorEvan You <yyx990803@gmail.com>
Thu, 4 Oct 2018 22:06:16 +0000 (18:06 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 4 Oct 2018 22:06:16 +0000 (18:06 -0400)
packages/core/src/componentProxy.ts

index 8b92fe177a154cb92342f1ed826ff9cb96264495..e2387f8ccea0849f37abd517bcec02e88a41ed62 100644 (file)
@@ -15,7 +15,7 @@ function getBoundMethod(fn: Function, target: any, receiver: any): Function {
 }
 
 const renderProxyHandlers = {
-  get(target: MountedComponent, key: string, receiver: any) {
+  get(target: MountedComponent<any, any>, key: string, receiver: any) {
     if (key === '_self') {
       return target
     } else if (
@@ -50,7 +50,7 @@ const renderProxyHandlers = {
     }
   },
   set(
-    target: MountedComponent,
+    target: MountedComponent<any, any>,
     key: string,
     value: any,
     receiver: any