From 3d3e9a628c460735a9adbc970f5fc3e9f4518437 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sun, 16 Dec 2018 19:43:19 +0100 Subject: [PATCH] [ua-string] Add types --- types/ua-string/index.d.ts | 8 ++++++++ types/ua-string/tsconfig.json | 23 +++++++++++++++++++++++ types/ua-string/tslint.json | 1 + types/ua-string/ua-string-tests.ts | 4 ++++ 4 files changed, 36 insertions(+) create mode 100644 types/ua-string/index.d.ts create mode 100644 types/ua-string/tsconfig.json create mode 100644 types/ua-string/tslint.json create mode 100644 types/ua-string/ua-string-tests.ts diff --git a/types/ua-string/index.d.ts b/types/ua-string/index.d.ts new file mode 100644 index 0000000000..c9928a8709 --- /dev/null +++ b/types/ua-string/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for ua-string 2.0 +// Project: https://github.com/sindresorhus/ua-string#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = uaString; + +declare const uaString: string; diff --git a/types/ua-string/tsconfig.json b/types/ua-string/tsconfig.json new file mode 100644 index 0000000000..8186c1b708 --- /dev/null +++ b/types/ua-string/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", + "ua-string-tests.ts" + ] +} diff --git a/types/ua-string/tslint.json b/types/ua-string/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/ua-string/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/ua-string/ua-string-tests.ts b/types/ua-string/ua-string-tests.ts new file mode 100644 index 0000000000..3cdbf6b553 --- /dev/null +++ b/types/ua-string/ua-string-tests.ts @@ -0,0 +1,4 @@ +import uaString = require('ua-string'); + +// $ExpectType string +uaString;