Skip to content

SerializeMode

SerializeMode = "json" | "structured-clone"

Defined in: packages/app-report/src/util/serialize-event.ts:21

"json" (default) round-trips through @ac-kit/core’s jsonSerializeSafe. "structured-clone" preserves Uint8Array/BigInt/Map/etc. and only applies the error hook — for transports (e.g. postMessage) that already clone structurally and would otherwise lose those types to JSON coercion.