UNPKG

rvx

Version:

A signal based rendering library

27 lines 740 B
import { Query, QueryInit } from "./query.js"; import { Router } from "./router.js"; export interface MemoryRouterOptions { /** * The initial path. */ path?: string; /** * The initial query. */ query?: QueryInit; parent?: Router; } /** * A router that keeps its state in memory instead of the browser location. */ export declare class MemoryRouter implements Router { #private; constructor(options?: MemoryRouterOptions); get root(): Router; get parent(): Router | undefined; get path(): string; get query(): Query | undefined; push(path: string, query?: QueryInit): void; replace(path: string, query?: QueryInit): void; } //# sourceMappingURL=memory-router.d.ts.map