tuil
ReferencePackages@mwillbanks/tuil-routerAPI

TerminalRouterOptions

interface exported by @mwillbanks/tuil-router.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-router.

export interface TerminalRouterOptions {
  readonly captureFocus?: () => FocusSnapshot | undefined;
  readonly restoreFocus?: (
    snapshot: FocusSnapshot,
    signal: AbortSignal,
  ) => void | Promise<void>;
  readonly onObserverError?: (error: unknown) => void;
}

Members

MemberTypeRequiredDescriptionRelated types
captureFocus(() => FocusSnapshot | undefined) | undefinedNoThe captureFocus member uses the (() => FocusSnapshot | undefined) | undefined contract.FocusSnapshot
restoreFocus((snapshot: FocusSnapshot, signal: AbortSignal) => void | Promise<void>) | undefinedNoThe restoreFocus member uses the ((snapshot: FocusSnapshot, signal: AbortSignal) => void | Promise<void>) | undefined contract.FocusSnapshot
onObserverError((error: unknown) => void) | undefinedNoThe onObserverError member uses the ((error: unknown) => void) | undefined 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