Skip to content

@jsvision/core / RedactedEvent

Type Alias: RedactedEvent

RedactedEvent = { alt: boolean; ctrl: boolean; key?: string; printable?: true; shift: boolean; type: "key"; } | { button: number; kind: string; type: "mouse"; x: number; y: number; } | { dir: string; type: "wheel"; x: number; y: number; } | { length: number; truncated: boolean; type: "paste"; } | { focused: boolean; type: "focus"; }

Defined in: safety/redact.ts:14

A redacted, log-safe view of an input event — carries modifiers and coordinates, never raw content.