mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #24300 from Hoishin/trash-fix-export
[trash] export = instead of export default for module.exports
This commit is contained in:
Vendored
+3
-2
@@ -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,4 +1,4 @@
|
||||
import trash from "trash";
|
||||
import trash = require("trash");
|
||||
|
||||
async function testTrashNoArgs() {
|
||||
await trash(["/path/to/item1", "/path/to/item2"]);
|
||||
|
||||
Reference in New Issue
Block a user