소스 검색

refactor(runtime-core): improve the type of defineAsyncComponent (#4441)

ShroXd 4 년 전
부모
커밋
6f555cf98c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/runtime-core/src/apiAsyncComponent.ts

+ 1 - 1
packages/runtime-core/src/apiAsyncComponent.ts

@@ -206,7 +206,7 @@ export function defineAsyncComponent<
         }
       }
     }
-  }) as any
+  }) as T
 }
 
 function createInnerComp(