소스 검색

types: fix types

Evan You 7 년 전
부모
커밋
bb2da9633e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/core/src/componentProxy.ts

+ 2 - 2
packages/core/src/componentProxy.ts

@@ -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