Skip to content

isTooLargeError

function isTooLargeError(error?: unknown): boolean;

Whether an error from these helpers was a size-cap rejection — the one failure worth treating as permanent (skip the document) rather than transient (retry next run).

ParameterTypeDescription
error?unknownWhatever was thrown; anything else answers false.

boolean

True for the permanent “too large” condition.