mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
* Added definition and tests * Added author details * Targetting es2015 * Added strictFunctionTypes to keep Travis happy * Fixed dtslint issues
13 lines
386 B
TypeScript
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;
|