UNPKG

yourrouter

Version:

A powerful router based on client-side routing.

20 lines (19 loc) 586 B
import { RouteI, RoutePath } from '../../types.js'; export declare class RouteManager { private static instance; private staticPaths; private staticRoutes; private dynamicPaths; private dynamicRoutes; private constructor(); static getInstance(): RouteManager; add(route: RouteI): void; getAllPaths(): RoutePath[]; getStaticPaths(): RoutePath[]; getDynamicPaths(): RoutePath[]; getAllRoutes(): RouteI[]; getStaticRoutes(): RouteI[]; getDynamicRoutes(): RouteI[]; find(path: RoutePath): RouteI | undefined; reset(): void; }