type EventType = "click" | "submit" | "custom"; export type BeaconPayload = { e: EventType; // event type t: number; // timestamp d?: Record; // data }; declare global { interface Window { upstartQueue: BeaconPayload[]; } }