La referencia de la API está disponible solo en inglés por ahora.

LargeValueLimits

interface
diagnostics/warnOnLargeValues.ts:33

Limits 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

NameTypeDescription
maxPayloadBytes?number
maxPayloadNodes?number
maxSliceBytes?number
maxSliceNodes?number
warn?(message: string, detail: Readonly<Record<string, unknown>>) => voidReceives each warning. Defaults to console.warn.