diff --git a/types/empty-trash/empty-trash-tests.ts b/types/empty-trash/empty-trash-tests.ts new file mode 100644 index 0000000000..296ec63745 --- /dev/null +++ b/types/empty-trash/empty-trash-tests.ts @@ -0,0 +1,5 @@ +import emptyTrash = require('empty-trash'); + +(async () => { + await emptyTrash(); +})(); diff --git a/types/empty-trash/index.d.ts b/types/empty-trash/index.d.ts new file mode 100644 index 0000000000..ef3fca3040 --- /dev/null +++ b/types/empty-trash/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for empty-trash 2.1 +// Project: https://github.com/sindresorhus/empty-trash#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +export = emptyTrash; + +declare function emptyTrash(): Promise; diff --git a/types/empty-trash/tsconfig.json b/types/empty-trash/tsconfig.json new file mode 100644 index 0000000000..172bf7299a --- /dev/null +++ b/types/empty-trash/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "empty-trash-tests.ts" + ] +} diff --git a/types/empty-trash/tslint.json b/types/empty-trash/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/empty-trash/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }