NavigationWindow interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface NavigationWindow

The parts of the page's window that the navigation installs use; tests pass a stand-in.

Properties

location

readonly location: {
    readonly hash: string;
};

No documentation.

history

readonly history: {
    readonly state: unknown;
    pushState(data: unknown, unused: string, url?: string): void;
    replaceState(data: unknown, unused: string, url?: string): void;
    back(): void;
    go(delta: number): void;
};

No documentation.

Methods

addEventListener

addEventListener(type: string, listener: (event: never) => void, options?: {
    capture?: boolean;
}): void;

No documentation.

removeEventListener

removeEventListener(type: string, listener: (event: never) => void, options?: {
    capture?: boolean;
}): void;

No documentation.