UNPKG

fork-ts-checker-webpack-plugin

Version:
16 lines (15 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbortError = void 0; class AbortError extends Error { constructor(message = 'Task aborted.') { super(message); this.name = 'AbortError'; } static throwIfAborted(signal) { if (signal === null || signal === void 0 ? void 0 : signal.aborted) { throw new AbortError(); } } } exports.AbortError = AbortError;