]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(runtime-core): improve the type of defineAsyncComponent (#4441)
authorShroXd <ShroXdF@gmail.com>
Wed, 1 Sep 2021 20:41:08 +0000 (04:41 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Sep 2021 20:41:08 +0000 (16:41 -0400)
packages/runtime-core/src/apiAsyncComponent.ts

index 8cd27b84a4d43215f11253b8c100d433aa241d45..4dffee344a42ab0223388641b6351c51684d5fdb 100644 (file)
@@ -206,7 +206,7 @@ export function defineAsyncComponent<
         }
       }
     }
-  }) as any
+  }) as T
 }
 
 function createInnerComp(