UNPKG

react-solid-flow

Version:

[SolidJS](https://www.solidjs.com/docs/latest/api#control-flow)-inspired basic control-flow components and everyday async state hook library for [React](https://reactjs.org/)

12 lines (11 loc) 362 B
/* * Technically, AbortError should be a descendant of DOMException, but * DOMException was only added in node v17.0.0, so we're using Error directly. */ export class AbortError extends Error { readonly name = "AbortError" as const; readonly code = 20 as const; constructor(message = "The operation was aborted.") { super(message); } }