UNPKG

@intuitionrobotics/thunderstorm

Version:
26 lines (25 loc) 1.06 kB
import * as React from "react"; export type RouteParams = { [key: string]: string | number | (() => string | number); }; export declare class RoutePath { readonly key: string; readonly path: string; readonly component: React.ComponentType<any> | string; exact: boolean; logMessage?: string; label?: string; visible: () => boolean; enabled?: () => boolean; constructor(key: string, route: string, component: React.ComponentType<any> | string); setLogMessage(logMessage: string): this; setLabel(label: string): this; setVisible(visible: () => boolean): this; setEnabled(enabled: () => boolean): this; setExact(exact: boolean): this; compose(params?: RouteParams): string; static composeStringQuery(params?: RouteParams): string; } export declare const defaultNavLinkNode: (route: RoutePath) => React.ReactElement; export declare const defaultLinkNode: (route: RoutePath, node?: React.ReactNode) => React.ReactElement; export declare const defaultRouteNode: (route: RoutePath) => React.ReactElement;