UNPKG

@virtualstate/app-history

Version:

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

12 lines (11 loc) 414 B
export interface Event<Name extends string | symbol = string | symbol> { type: Name; parallel?: boolean; signal?: { aborted: boolean; }; [key: string]: unknown; [key: number]: unknown; } export declare function isEvent(value: unknown): value is Event; export declare function assertEvent<T extends string | symbol, E extends Event<T>>(value: unknown, type?: T): asserts value is E;