Skip to main content

VendorClassifier

@forge/monorepo


@forge/monorepo / backend/src / VendorClassifier

Type Alias: VendorClassifier

VendorClassifier = (failure) => Pick<PlatformError, "code" | "message" | "retryable" | "retryAfterMs"> | undefined

Defined in: backend/src/toolkit/vendor.ts:55

retryAfterMs is part of the return type, and its absence was a live bug.

The default 429 arm below has always set it — inside an object typed as Pick<…, "code"|"message"|"retryable">, where a spread makes an excess property legal and unreadable. So the field was written, typechecked, and could not be read by the one line that needed it. See the propagation note in request.

Parameters

failure

VendorFailure

Returns

Pick<PlatformError, "code" | "message" | "retryable" | "retryAfterMs"> | undefined