foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 349 B
JavaScript
;var r=require("../extract-error-message/index.js");exports.AbortError=class extends Error{name="AbortError";code="ABORT_ERR";constructor(r="The operation was aborted",e){super(r,e)}},exports.isAbortErrorLike=function(e){return!!r.isErrorLikeObject(e)&&("AbortError"===e.name||"code"in e&&"string"==typeof e.code&&"ABORT_ERR"===e.code)};