UNPKG

@virtualstate/app-history

Version:

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

10 lines (9 loc) 356 B
import { Event } from "./event"; export interface RespondEvent<Name extends string | symbol = string, T = unknown> extends Event<Name> { /** * @param value * @throws InvalidStateError */ respondWith(value: T | Promise<T>): void; } export declare function isRespondEvent<T = unknown>(value: object): value is RespondEvent<string, T>;