UNPKG

@wroud/navigation

Version:

A flexible, pattern-matching navigation system for JavaScript applications with built-in routing, browser integration, and navigation state management

11 lines 498 B
import type { IRoute, IRouteOptions } from "./IRoute.js"; import type { IRouteMatcher } from "./IRouteMatcher.js"; export interface IRouter<TMatcher extends IRouteMatcher = IRouteMatcher> { readonly routesList: IRoute[]; readonly matcher: TMatcher | null; getParentRoute(routeId: string): IRoute | undefined; getRouteTree(routeId: string): IRoute[]; getRoute(routeId: string): IRoute | undefined; addRoute(route: IRouteOptions): void; } //# sourceMappingURL=IRouter.d.ts.map