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 + } +}