@apollo/client
Version:
A fully-featured caching GraphQL client.
14 lines • 408 B
JavaScript
export function isBranded(error, name) {
return (typeof error === "object" &&
error !== null &&
error[Symbol.for("apollo.error")] === name);
}
export function brand(error) {
Object.defineProperty(error, Symbol.for("apollo.error"), {
value: error.name,
enumerable: false,
writable: false,
configurable: false,
});
}
//# sourceMappingURL=utils.js.map