From 1b23bab70f030a9c062e8d15ce193cdc886e9e13 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Mon, 14 Aug 2017 19:10:32 +0200 Subject: [PATCH] [untildify] add typings (#18904) --- types/untildify/index.d.ts | 8 ++++++++ types/untildify/tsconfig.json | 22 ++++++++++++++++++++++ types/untildify/tslint.json | 1 + types/untildify/untildify-tests.ts | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 types/untildify/index.d.ts create mode 100644 types/untildify/tsconfig.json create mode 100644 types/untildify/tslint.json create mode 100644 types/untildify/untildify-tests.ts diff --git a/types/untildify/index.d.ts b/types/untildify/index.d.ts new file mode 100644 index 0000000000..fbe3020cd7 --- /dev/null +++ b/types/untildify/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for untildify 3.0 +// Project: https://github.com/sindresorhus/untildify#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = untildify; + +declare function untildify(name: string): string; diff --git a/types/untildify/tsconfig.json b/types/untildify/tsconfig.json new file mode 100644 index 0000000000..b0f87787e5 --- /dev/null +++ b/types/untildify/tsconfig.json @@ -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" + ] +} diff --git a/types/untildify/tslint.json b/types/untildify/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/untildify/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/untildify/untildify-tests.ts b/types/untildify/untildify-tests.ts new file mode 100644 index 0000000000..b7658d8969 --- /dev/null +++ b/types/untildify/untildify-tests.ts @@ -0,0 +1,4 @@ +import untildify = require('untildify'); + +// $ExpectType string +untildify('~/dev');