UNPKG

@snipsonian/redux-first-router

Version:

Redux-first-router snippets

20 lines (19 loc) 740 B
import { IBaseRoute, IBaseRoutes } from './types'; export declare function registerRoutes(routes: IBaseRoutes): void; export declare function getRegisteredRoutes<Route extends IBaseRoute = IBaseRoute>(): IBaseRoutes<Route>; export declare function getRoute<Route extends IBaseRoute = IBaseRoute>({ routeKey }: { routeKey: string; }): Route; export declare function getRoutePath({ routeKey }: { routeKey: string; }): string; export declare function getRouteKeyByPath({ path }: { path: string; }): string; export declare function doesRouteBelongToGroup({ routeKey, group }: { routeKey: string; group: string; }): boolean; export declare function getRouteKeysThatBelongToGroup({ group }: { group: string; }): string[];