react-router-chart
Version:
Static route mapping for React Router
17 lines (16 loc) • 444 B
TypeScript
import { RouteObject } from "react-router-dom";
export declare const $: unique symbol;
export declare const $$: unique symbol;
export type NamedRoute = {
[$]?: string;
[$$]?: string;
[k: string]: NamedRoute;
};
export declare class Chart {
static ROOT: string;
/**
* Create named routes from route objects
* @param {*} route the route to render
*/
static describe(...routes: RouteObject[]): NamedRoute;
}