Bläddra i källkod

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

ShroXd 4 år sedan
förälder
incheckning
6f555cf98c
1 ändrade filer med 1 tillägg och 1 borttagningar
  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(
 function createInnerComp(