@riogz/router
Version:
A simple, lightweight, powerful, view-agnostic, modular and extensible router
6 lines (5 loc) • 503 B
TypeScript
import { BuildOptions, MatchResponse, RouteNode, RouteNodeState, RouteNodeStateMeta } from './RouteNode';
export declare const getMetaFromSegments: (segments: RouteNode[]) => RouteNodeStateMeta;
export declare const buildStateFromMatch: (match: MatchResponse) => RouteNodeState | null;
export declare const buildPathFromSegments: (segments: RouteNode[], params?: Record<string, any>, options?: BuildOptions) => string;
export declare const getPathFromSegments: (segments: RouteNode[]) => string | null;