From 9d5535358fca3d705712f53da4fcd80f01600822 Mon Sep 17 00:00:00 2001 From: Ajay Shrestha Date: Tue, 13 Mar 2018 19:59:23 +0545 Subject: [PATCH] Initial Commit for tlds types --- types/tlds/index.d.ts | 4 ++++ types/tlds/tlds-tests.ts | 4 ++++ types/tlds/tsconfig.json | 23 +++++++++++++++++++++++ types/tlds/tslint.json | 8 ++++++++ 4 files changed, 39 insertions(+) create mode 100644 types/tlds/index.d.ts create mode 100644 types/tlds/tlds-tests.ts create mode 100644 types/tlds/tsconfig.json create mode 100644 types/tlds/tslint.json diff --git a/types/tlds/index.d.ts b/types/tlds/index.d.ts new file mode 100644 index 0000000000..615ce3f0eb --- /dev/null +++ b/types/tlds/index.d.ts @@ -0,0 +1,4 @@ +declare module "tlds" { + const c:Array; + export default c; +} diff --git a/types/tlds/tlds-tests.ts b/types/tlds/tlds-tests.ts new file mode 100644 index 0000000000..8ed622828d --- /dev/null +++ b/types/tlds/tlds-tests.ts @@ -0,0 +1,4 @@ +import * as tlds from 'tlds'; + +tlds; // all list of tlds +'[object Array]' == {}.toString.call(tlds); // tlds is an array \ No newline at end of file diff --git a/types/tlds/tsconfig.json b/types/tlds/tsconfig.json new file mode 100644 index 0000000000..fcb5c747c0 --- /dev/null +++ b/types/tlds/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "tlds-tests.ts" + ] +} \ No newline at end of file diff --git a/types/tlds/tslint.json b/types/tlds/tslint.json new file mode 100644 index 0000000000..d335520e13 --- /dev/null +++ b/types/tlds/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-empty-interface": false, + "no-unnecessary-class": false, + "no-unnecessary-generics": false + } +}