@virtualstate/navigation
Version:
Native JavaScript [navigation](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) implementation
11 lines (8 loc) • 298 B
text/typescript
import { Event, isEvent } from "./event";
export interface ParallelEvent<Name extends string | symbol = string>
extends Event<Name> {
parallel: true | undefined;
}
export function isParallelEvent(value: object): value is ParallelEvent {
return isEvent(value) && value.parallel !== false;
}