UNPKG

@virtualstate/navigation

Version:

Native JavaScript [navigation](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) 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>;