tuil
ReferencePackages@mwillbanks/tuil-routerAPI

RouterState

interface exported by @mwillbanks/tuil-router.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-router.

export interface RouterState {
  readonly location?: NavigationEntry;
  readonly history: readonly NavigationEntry[];
  readonly index: number;
  readonly pending?: NavigationTarget;
  readonly error?: unknown;
}

Members

MemberTypeRequiredDescriptionRelated types
locationNavigationEntry | undefinedNoThe location member uses the NavigationEntry | undefined contract.NavigationEntry
historyreadonly NavigationEntry[]YesThe history member uses the readonly NavigationEntry[] contract.NavigationEntry
indexnumberYesThe index member uses the number contract.
pendingNavigationTarget<string, unknown> | undefinedNoThe pending member uses the NavigationTarget<string, unknown> | undefined contract.NavigationTarget
errorunknownNoThe error member uses the unknown contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-router

On this page