mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
// Type definitions for trashable 1.0
|
|
// Project: https://github.com/hjylewis/trashable#readme
|
|
// Definitions by: James Lismore <https://github.com/jlismore>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
type TrashablePromise<T> = Promise<T> & { trash: () => void };
|
|
|
|
declare function makeTrashable<T>(promise: Promise<T>): TrashablePromise<T>;
|
|
|
|
export = makeTrashable;
|