diff --git a/types/trash/index.d.ts b/types/trash/index.d.ts index 772b86c434..2da4838695 100644 --- a/types/trash/index.d.ts +++ b/types/trash/index.d.ts @@ -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 +// Keiichiro Amemiya // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface TrashOptions { @@ -9,4 +10,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"]);