Class Router<T>

Type Parameters

  • T extends Record<string, Route> = Record<string, Route>

Hierarchy

  • Router

Constructors

Properties

_currentRoute?: string
_currentTag?: CTag
_history: History
_location: Location
_options: RouterOptions<T>
_rootParent: CTag
_routeMatchers: {
    key: string;
    matcher: RouteMatcher;
}[] = []

Type declaration

_routes: Record<string, CTag> = {}
_window: Window & typeof globalThis
params: Record<string, string> = {}
query: URLSearchParams = ...

Accessors

  • get currentRoute(): undefined | string
  • Returns undefined | string

Methods

  • Returns undefined | string

Generated using TypeDoc