From e65a3c2c410df91b17b69306b9c39fd528b1e18c Mon Sep 17 00:00:00 2001 From: ShroXd Date: Wed, 25 Aug 2021 22:09:39 +0800 Subject: [PATCH] refactor(runtime-core): improve the type of defineAsyncComponent --- packages/runtime-core/src/apiAsyncComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index 8cd27b84a4d..4dffee344a4 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -206,7 +206,7 @@ export function defineAsyncComponent< } } } - }) as any + }) as T } function createInnerComp(