2020-05-19 21:03:13 +08:00

19 lines
362 B
TypeScript

type HistoryMode = 'browser' | 'hash';
interface ComponentsMap {
[key: string]: any;
}
interface UtilsMap {
[key: string]: any;
}
export interface AppConfig {
history?: HistoryMode;
globalComponents?: ComponentsMap;
globalUtils?: UtilsMap;
containerId?: string;
}
export function run(Component: any, config?: AppConfig | (() => AppConfig)): any;