UNPKG

@graphteon/juricode

Version:

We are forging the future with lines of digital steel

14 lines 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAxiosErrorWithMessageField = exports.isAxiosErrorWithErrorField = void 0; const isAxiosErrorWithErrorField = (error) => typeof error.response?.data === "object" && error.response?.data !== null && "error" in error.response.data && typeof error.response?.data?.error === "string"; exports.isAxiosErrorWithErrorField = isAxiosErrorWithErrorField; const isAxiosErrorWithMessageField = (error) => typeof error.response?.data === "object" && error.response?.data !== null && "message" in error.response.data && typeof error.response?.data?.message === "string"; exports.isAxiosErrorWithMessageField = isAxiosErrorWithMessageField; //# sourceMappingURL=type-guards.js.map