UNPKG

@remix-run/web-fetch

Version:

Web API compatible fetch implementation

15 lines (13 loc) 284 B
import {FetchBaseError} from './base.js'; /** * AbortError interface for cancelled requests */ export class AbortError extends FetchBaseError { /** * @param {string} message * @param {string} [type] */ constructor(message, type = 'aborted') { super(message, type); } }