From: ShroXd Date: Wed, 1 Sep 2021 20:41:08 +0000 (+0800) Subject: refactor(runtime-core): improve the type of defineAsyncComponent (#4441) X-Git-Tag: v3.2.7~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f555cf98cde717e6ebe710dbd59721279182fb7;p=thirdparty%2Fvuejs%2Fcore.git refactor(runtime-core): improve the type of defineAsyncComponent (#4441) --- diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index 8cd27b84a4..4dffee344a 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(