UNPKG

@virtualstate/app-history

Version:

Native JavaScript [app-history](https://github.com/WICG/app-history) implementation

10 lines (9 loc) 824 B
import { Event } from "./event"; import { FetchEvent } from "../tests/examples/fetch"; import { EventTargetAddListenerOptions } from "./event-target-options"; import { EventCallback } from "./callback"; export declare function dispatchEvent(event: Event): Promise<void>; export declare function addEventListener(type: "fetch", callback: EventCallback<FetchEvent>, options?: EventTargetAddListenerOptions): void; export declare function addEventListener(type: string | symbol, callback: EventCallback, options?: EventTargetAddListenerOptions): void; export declare function removeEventListener(type: string | symbol, callback: EventCallback, options?: EventTargetAddListenerOptions): void; export declare function removeEventListener(type: string | symbol, callback: Function, options?: EventTargetAddListenerOptions): void;