@esfx/cancelable-dom
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@esfx/cancelable-dom

The @esfx/cancelable-dom package provides a DOM interop library for @esfx/cancelable.

Overview

Installation

npm i @esfx/cancelable-dom

Usage

import { Cancelable } from "@esfx/cancelable";
import { toAbortSignal } from "@esfx/cancelable-dom";

async function doSomeWork(cancelable: Cancelable) {
    await fetch("some/uri", { signal: toAbortSignal(cancelable) });
}

API

You can read more about the API here.

Readme

Keywords

none

Package Sidebar

Install

npm i @esfx/cancelable-dom

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

36.3 kB

Total Files

8

Last publish

Collaborators

  • rbuckton