Merge pull request #31414 from BendingBender/empty-trash

[empty-trash] Add types
This commit is contained in:
Nathan Shively-Sanders
2018-12-17 09:58:08 -08:00
committed by GitHub
4 changed files with 38 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
import emptyTrash = require('empty-trash');
(async () => {
await emptyTrash();
})();
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for empty-trash 2.1
// Project: https://github.com/sindresorhus/empty-trash#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export = emptyTrash;
declare function emptyTrash(): Promise<void>;
+23
View File
@@ -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"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }