Merge pull request #24300 from Hoishin/trash-fix-export

[trash] export = instead of export default for module.exports
This commit is contained in:
Arthur Ozga
2018-03-15 12:21:43 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
// Type definitions for trash 4.2
// Type definitions for trash 4.3
// Project: https://github.com/sindresorhus/trash#readme
// Definitions by: Matthew James <https://github.com/matthew-matvei>
// Keiichiro Amemiya <https://github.com/hoishin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface TrashOptions {
@@ -9,4 +10,4 @@ interface TrashOptions {
declare function trash(iterable: Iterable<string>, opts?: TrashOptions): Promise<void>;
export default trash;
export = trash;
+1 -1
View File
@@ -1,4 +1,4 @@
import trash from "trash";
import trash = require("trash");
async function testTrashNoArgs() {
await trash(["/path/to/item1", "/path/to/item2"]);