Skip to content

Commit f75a39d

Browse files
fix: fixed a type for AsyncComponentFactory component
Close #10252
1 parent a99c667 commit f75a39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/options.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type AsyncComponentPromise<Data=DefaultData<never>, Methods=DefaultMethod
2626
) => Promise<Component | EsModuleComponent> | void;
2727

2828
export type AsyncComponentFactory<Data=DefaultData<never>, Methods=DefaultMethods<never>, Computed=DefaultComputed, Props=DefaultProps> = () => {
29-
component: AsyncComponentPromise<Data, Methods, Computed, Props>;
29+
component: Promise<Component | EsModuleComponent>;
3030
loading?: Component | EsModuleComponent;
3131
error?: Component | EsModuleComponent;
3232
delay?: number;

0 commit comments

Comments
 (0)