Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace <internal>

Index

Type aliases

HistoryEvent: { path: string; state: State; type: HistoryEventType }

A history event. Passed to listeners

Type declaration

HistoryEventListener: (event: HistoryEvent) => void

Type declaration

HistoryEventType: "push" | "replace" | "pop"

Strings representing the different types of history events.

ListenerMap<Types>: { [ Key in Types]?: Set<HistoryEventListener> }

Type parameters

  • Types: string

UnsubscribeCallback: { unsubscribe: UnsubscribeCallback }

Type declaration

    • (): void
    • A callback used to unsubscribe from history events returned by {@link History#subscribe}.

      Returns void

  • unsubscribe: UnsubscribeCallback

Generated using TypeDoc