[temp-dir] Add types

This commit is contained in:
Dimitri Benin
2018-12-15 16:35:44 +01:00
parent 39b514a4bb
commit f24cb52002
4 changed files with 36 additions and 0 deletions

8
types/temp-dir/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for temp-dir 1.0
// Project: https://github.com/sindresorhus/temp-dir#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = tempDir;
declare const tempDir: string;

View File

@@ -0,0 +1,4 @@
import tempDir = require('temp-dir');
// $ExpectType string
tempDir;

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",
"temp-dir-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }