From 57d7f0448e0e7117e13da63f2a6e10a21645424c Mon Sep 17 00:00:00 2001 From: Hoishin Date: Thu, 15 Mar 2018 12:08:10 +0900 Subject: [PATCH 1/3] export = instead of export default for module.exports --- types/trash/index.d.ts | 2 +- types/trash/trash-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/trash/index.d.ts b/types/trash/index.d.ts index 772b86c434..1290a0f2a8 100644 --- a/types/trash/index.d.ts +++ b/types/trash/index.d.ts @@ -9,4 +9,4 @@ interface TrashOptions { declare function trash(iterable: Iterable, opts?: TrashOptions): Promise; -export default trash; +export = trash; diff --git a/types/trash/trash-tests.ts b/types/trash/trash-tests.ts index 88a29c80f4..d3722539ce 100644 --- a/types/trash/trash-tests.ts +++ b/types/trash/trash-tests.ts @@ -1,4 +1,4 @@ -import trash from "trash"; +import trash = require("trash"); async function testTrashNoArgs() { await trash(["/path/to/item1", "/path/to/item2"]); From fdd4f121420c940837f2bffa09ab96f9ff9d70d3 Mon Sep 17 00:00:00 2001 From: Hoishin Date: Thu, 15 Mar 2018 12:13:11 +0900 Subject: [PATCH 2/3] Update "definition by" --- types/trash/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/trash/index.d.ts b/types/trash/index.d.ts index 1290a0f2a8..1ad9311eae 100644 --- a/types/trash/index.d.ts +++ b/types/trash/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for trash 4.2 // Project: https://github.com/sindresorhus/trash#readme // Definitions by: Matthew James +// Keiichiro Amemiya // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface TrashOptions { From 83e6f167dafe6ab6be2946c88dab462870d6b5a3 Mon Sep 17 00:00:00 2001 From: Hoishin Date: Thu, 15 Mar 2018 12:22:02 +0900 Subject: [PATCH 3/3] bump version of the module --- types/trash/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/trash/index.d.ts b/types/trash/index.d.ts index 1ad9311eae..2da4838695 100644 --- a/types/trash/index.d.ts +++ b/types/trash/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for trash 4.2 +// Type definitions for trash 4.3 // Project: https://github.com/sindresorhus/trash#readme // Definitions by: Matthew James // Keiichiro Amemiya