export interface YRouterProps { config: { useGetModuleDataByName: any } } export type Target = '_blank' | '_self'; export interface YLinkProps { goto?:string; to?: string; target?: Target; } export interface Route { [path: string]: YLocation; } export interface YLocation { parentPath?: string; parentTitle?: string; grandPath?: string; path: string; url: string; title?: string; moduleId?: string; moduleName?: string; menu?: string; search?: string; children?: Route; default?: string; isDefault?: boolean; subTotal?: number; categoryId?: string; } export interface YRouteProps { parentPath?: string; grandPath?: string; path: string; title?: string; children?: any; key?: string; moduleId?: string; moduleName?: string; menu?: string; search?: string; isDefault?: boolean; isCurrent?: boolean; currentPath?: string; isStatic?: boolean; categoryId?: string; } export interface HistoryState { params: { moduleId?: string; moduleName?: string; menu?: string; }; search?: string; title?: string; url: string; path: string; parentPath?: string; } export interface RouterProviderProps {} export interface RouterProviderState { store: any; } export interface RouterContextProps { store: any; useGetModuleDataByName: any; } export interface PushConfigProps { target: Target }