mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
25 lines
558 B
TypeScript
25 lines
558 B
TypeScript
import { ReactType } from 'react';
|
|
|
|
export as namespace LowCodeEngineRuntime;
|
|
export = LowCodeEngineRuntime;
|
|
|
|
declare module LowCodeEngineRuntime {
|
|
type HistoryMode = 'browser' | 'hash';
|
|
|
|
interface ComponentsMap {
|
|
[key: string]: ReactType;
|
|
}
|
|
|
|
interface UtilsMap {
|
|
[key: string]: any;
|
|
}
|
|
|
|
interface AppConfig {
|
|
history?: HistoryMode;
|
|
globalComponents?: ComponentsMap;
|
|
globalUtils?: UtilsMap;
|
|
containerId?: string;
|
|
}
|
|
|
|
function runApp(Component: any, config?: AppConfig | (() => AppConfig), exposeModule?: boolean): any;
|
|
} |