UNPKG

@tinijs/router

Version:

The router module for the TiniJS framework.

18 lines (17 loc) 817 B
import { Router } from './router.js'; export declare const PACKAGE_NAME = "@tinijs/router"; export declare const GLOBAL_TINI: { clientApp?: (import("@tinijs/core").TiniComponent & { options?: import("@tinijs/core").AppOptions | undefined; config?: Record<string, unknown> | undefined; } & { router?: Router | undefined; }) | undefined; }; export declare const ROUTE_CHANGE_EVENT = "tini:route-change"; export declare const ROUTER_OUTLET_TAG_NAME = "router-outlet"; export declare const NAV_INDICATOR_ID = "nav-indicator"; export declare const NAV_INDICATOR = "app-nav-indicator"; export declare const CLASS_ACTIVE = "active"; export declare const NO_ROUTER_ERROR = "Router is not initialized."; export declare const NO_ROUTER_FOR_OUTLET_ERROR = "Router instance is not provided.";