UNPKG

rvx

Version:

A signal based rendering library

26 lines (25 loc) 684 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; } /** * A router that keeps it's state in memory instead of the actual 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; }