mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 20:27:19 +00:00
20 lines
403 B
TypeScript
20 lines
403 B
TypeScript
import { ReactType } from 'react';
|
|
type HistoryMode = 'browser' | 'hash';
|
|
|
|
interface ComponentsMap {
|
|
[key: string]: ReactType;
|
|
}
|
|
|
|
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;
|