mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 01:47:21 +08:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import trash = require("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");
|
|
});
|
|
}
|