17 lines
625 B
TypeScript
17 lines
625 B
TypeScript
|
|
// @ts-nocheck
|
||
|
|
// This file is generated by Umi automatically
|
||
|
|
// DO NOT CHANGE IT MANUALLY!
|
||
|
|
interface IDefaultRuntimeConfig {
|
||
|
|
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
|
||
|
|
patchRoutes?: (props: { routes: any }) => void;
|
||
|
|
patchClientRoutes?: (props: { routes: any }) => void;
|
||
|
|
render?: (oldRender: () => void) => void;
|
||
|
|
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
|
||
|
|
[key: string]: any;
|
||
|
|
}
|
||
|
|
export type RuntimeConfig = IDefaultRuntimeConfig
|
||
|
|
|
||
|
|
export function defineApp(config: RuntimeConfig): RuntimeConfig {
|
||
|
|
return config;
|
||
|
|
}
|