[untildify] add typings (#18904)

This commit is contained in:
Dimitri Benin
2017-08-14 10:10:32 -07:00
committed by Mohamed Hegazy
parent 6bfa5328c8
commit 1b23bab70f
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for untildify 3.0
// Project: https://github.com/sindresorhus/untildify#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = untildify;
declare function untildify(name: string): string;
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"untildify-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+4
View File
@@ -0,0 +1,4 @@
import untildify = require('untildify');
// $ExpectType string
untildify('~/dev');