@tinijs/router
Version:
The router module for the TiniJS framework.
15 lines (14 loc) • 766 B
TypeScript
import type { ActivatedRoute } from './types.js';
export declare function getRouter(): import("./router.js").Router;
export declare function getActiveRoute(): ActivatedRoute | undefined;
export declare function getParams(): Record<string, any>;
export declare function getQuery(): Record<string, any>;
export declare function getFragment(): string;
export declare function requestChange(): boolean;
export declare function go(to: string, replace?: boolean): boolean;
export declare function redirect(to: string): boolean;
export declare function back(): boolean;
export declare function forward(): boolean;
export declare function getNavIndicator(): Element | null;
export declare function showNavIndicator(): void;
export declare function hideNavIndicator(): void;