mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-10 01:37:12 +00:00
* Added definition and tests * Added author details * Targetting es2015 * Added strictFunctionTypes to keep Travis happy * Fixed dtslint issues
16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
import trash from "trash";
|
|
|
|
async function testTrashNoArgs() {
|
|
await trash(["/path/to/item1", "/path/to/item2"]);
|
|
}
|
|
|
|
async function testTrashWithArgs() {
|
|
await trash(["/path/to/item1", "/path/to/item2"], { glob: false });
|
|
}
|
|
|
|
async function testTrashPerDocumentation() {
|
|
trash(["*.png", "!rainbow.png"]).then(() => {
|
|
console.log("done");
|
|
});
|
|
}
|