Merge pull request #26367 from ajshres/master

Updated tsjson as per last comment.
This commit is contained in:
Nathan Shively-Sanders
2018-06-20 08:09:54 -07:00
committed by GitHub
4 changed files with 40 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for tlds 1.199
// Project: https://github.com/stephenmathieson/node-tlds
// Definitions by: Ajay Gopal Shrestha <https://github.com/ajshres>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
/*
Declaring const tlds and exporting it
*/
declare const tlds: string[];
export = tlds;
+4
View File
@@ -0,0 +1,4 @@
import * as tlds from 'tlds';
tlds; // all list of tlds
'[object Array]' === {}.toString.call(tlds); // tlds is an array
+23
View File
@@ -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",
"tlds-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}