Files
DefinitelyTyped/types/trash/index.d.ts
Matthew James c62b1125ad trash (#22011)
* Added definition and tests

* Added author details

* Targetting es2015

* Added strictFunctionTypes to keep Travis happy

* Fixed dtslint issues
2017-12-27 12:55:28 -08:00

13 lines
386 B
TypeScript

// Type definitions for trash 4.2
// Project: https://github.com/sindresorhus/trash#readme
// Definitions by: Matthew James <https://github.com/matthew-matvei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface TrashOptions {
glob: boolean;
}
declare function trash(iterable: Iterable<string>, opts?: TrashOptions): Promise<void>;
export default trash;