MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / isApiError

Function isApiError

console/src/util.ts:185–187  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

183
184/** Narrrows unknown error type to OpenApiFetchError */
185export function isApiError(error: unknown): error is OpenApiFetchError {
186 return typeof error === "object" && error !== null && "status" in error;
187}
188
189/** RFC 4648 Base32 alphabet */
190export const BASE32_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";

Callers 2

getPaymentErrorMessageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected