Type alias JSONOutputOptions

JSONOutputOptions: {
    output?: "singleFile";
    filename?: string;
} | {
    output: "segmented";
    filenamePrefix?: string;
    segmentCallback?: ((url) => void);
}

Output configuration for JSON sidecar files such as the mouse/keyboard input-event log.

  • singleFile: Write all events to a single JSON file (optionally named via filename).
  • segmented: Write events to multiple segmented JSON files; segmentCallback is invoked with the path of each segment as it is written to disk.

Type declaration

  • Optional output?: "singleFile"
  • Optional filename?: string

Type declaration

  • output: "segmented"
  • Optional filenamePrefix?: string
  • Optional segmentCallback?: ((url) => void)
      • (url): void
      • Parameters

        • url: string

        Returns void

Generated using TypeDoc