AsyncRoute.d.ts 549 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import { SFC } from 'react';
import { Entry } from '../state';
import { ComponentsMap } from '../hooks/useComponents';
export declare type Imports = Record<string, () => Promise<any>>;
export declare const loadRoute: (path: string, imports: Record<string, () => Promise<any>>, components: ComponentsMap) => import("@loadable/component").LoadableComponent<any>;
interface AsyncRouteProps {
    asyncComponent: any;
    components: ComponentsMap;
    path: string;
    entry: Entry;
}
export declare const AsyncRoute: SFC<AsyncRouteProps>;
export {};