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.