UNPKG

rvx

Version:

A signal based rendering library

24 lines (23 loc) 814 B
import { Expression } from "../core/signals.js"; import { Query, QueryInit } from "./query.js"; import { Router } from "./router.js"; /** * A router that is located at a specific path and navigates within that path. */ export declare class ChildRouter implements Router { #private; /** * Create a new child router. * * @param parent The parent router. * @param mountPath The path this router is mounted at. * @param path An expression to get the normalized rest path. */ constructor(parent: Router, mountPath: string, path: Expression<string>); 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; }