UNPKG

@virtualstate/app-history

Version:

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

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