react-application-core
Version:
A react-based application core for the business applications.
59 lines (58 loc) • 2.32 kB
TypeScript
import { History } from 'history';
import { IAccessDeniedWrapper, IAfterEnterWrapper, IBeforeEnterWrapper, IComputedMatchWrapper, IDepthWrapper, IExactWrapper, IHistoryWrapper, IHomeWrapper, IKeyWrapper, ILogoutWrapper, IOnEnterWrapper, IParamsWrapper, IPathWrapper, IProfileWrapper, IRootPathWrapper, ISignInWrapper, IStateWrapper, ITypeWrapper, IUrlWrapper } from '../definitions.interface';
import { IGenericContainerCtor } from './generic-container-definition.interface';
import { IConnectorEntity } from './connector-definition.interface';
/**
* @stable [24.09.2019]
*/
export interface IRouter extends History {
}
/**
* @stable [24.09.2019]
*/
export interface IRouterWrapperEntity extends IHistoryWrapper<IRouter> {
}
/**
* @stable [26.09.2019]
*/
export interface IRoutesEntity extends IAccessDeniedWrapper<string>, IHomeWrapper<string>, ILogoutWrapper, IProfileWrapper<string>, ISignInWrapper<string> {
}
/**
* @flux-entity
* @stable [18.05.2020]
*/
export interface IFluxNavigateEntity<TPath = string, TState = {}> extends IDepthWrapper, IPathWrapper<TPath>, IStateWrapper<TState> {
}
/**
* @stable [16.11.2019]
*/
export interface IRouteComputedMatchEntity extends IParamsWrapper, IUrlWrapper, IPathWrapper {
}
/**
* @stable [16.11.2019]
*/
export declare enum ContainerVisibilityTypesEnum {
PUBLIC = 0,
PRIVATE = 1
}
/**
* @stable [16.11.2019]
*/
export interface IRouteEntity extends IAfterEnterWrapper<() => void>, IBeforeEnterWrapper<() => void>, IComputedMatchWrapper<IRouteComputedMatchEntity>, IExactWrapper, IKeyWrapper, IOnEnterWrapper<() => void>, IPathWrapper<string | (() => string)>, IRootPathWrapper, ITypeWrapper<ContainerVisibilityTypesEnum> {
}
/**
* @stable [16.11.2019]
*/
export declare type RoutePredicateT = (entity: IRouteEntity) => boolean;
/**
* @stable [12.06.2020]
*/
export declare type DynamicRoutesT = Map<IGenericContainerCtor, IConnectorEntity>;
/**
* @stable [09.10.2019]
*/
export declare const $RAC_ROUTER_NAVIGATE_ACTION_TYPE: string;
export declare const $RAC_ROUTER_NAVIGATE_BACK_ACTION_TYPE: string;
export declare const $RAC_ROUTER_RELOAD_ACTION_TYPE: string;
export declare const $RAC_ROUTER_REPLACE_ACTION_TYPE: string;
export declare const $RAC_ROUTER_REWRITE_ACTION_TYPE: string;