UNPKG

kitsu-core

Version:

Simple, lightweight & framework agnostic JSON:API (de)serialsation components

10 lines (8 loc) 167 B
function error(Error) { if (Error.response) { const e = Error.response.data; if (e?.errors) Error.errors = e.errors; } throw Error; } export { error };