LargeValueLimits
interfaceLimits for warnOnLargeValues. A value warns when it exceeds either of its limits.
Values are counted the way the codec counts them: every object, array, map or set entry and
every leaf is one. Bytes are an estimate of the serialized size: a string by its length, a
number as 8, a typed array or
ArrayBuffer by its byteLength, plus object keys.Properties
| Name | Type | Description |
|---|---|---|
maxPayloadBytes? | number | |
maxPayloadNodes? | number | |
maxSliceBytes? | number | |
maxSliceNodes? | number | |
warn? | (message: string, detail: Readonly<Record<string, unknown>>) => void | Receives each warning. Defaults to console.warn. |