Skip to content

serializeIdempotencyRecord

serializeIdempotencyRecord(record): string

Defined in: src/idempotency/record.ts:178

Serializes a record to a plain UTF-8 JSON string (base64 / transport is the caller’s concern). Bigints become decimal strings.

Parameters

record

IdempotencyRecord

Returns

string

Example

import { serializeIdempotencyRecord } from "kawasekit/idempotency";
const json = serializeIdempotencyRecord(record);