@types/trashable
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/trashable

Summary

This package contains type definitions for trashable (https://github.com/hjylewis/trashable#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trashable.

index.d.ts

type TrashablePromise<T> = Promise<T> & { trash: () => void };

declare function makeTrashable<T>(promise: Promise<T>): TrashablePromise<T>;

export = makeTrashable;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by James Lismore.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/trashable

      Weekly Downloads

      430

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      2.87 kB

      Total Files

      5

      Last publish

      Collaborators

      • types