@virtualstate/navigation
Version:
Native JavaScript [navigation](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) implementation
13 lines (12 loc) • 419 B
TypeScript
export interface Event<Name extends string | symbol = string | symbol> {
type: Name;
parallel?: boolean;
signal?: {
aborted: boolean;
};
[key: string]: unknown;
[key: number]: unknown;
originalEvent?: Event;
}
export declare function isEvent(value: unknown): value is Event;
export declare function assertEvent<E extends Event>(value: unknown, type?: E["type"]): asserts value is E;