mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #26367 from ajshres/master
Updated tsjson as per last comment.
This commit is contained in:
Vendored
+10
@@ -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;
|
||||
@@ -0,0 +1,4 @@
|
||||
import * as tlds from 'tlds';
|
||||
|
||||
tlds; // all list of tlds
|
||||
'[object Array]' === {}.toString.call(tlds); // tlds is an array
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user