Merge pull request #25335 from DefinitelyTyped/add-html-tag-names

Add html-tag-names
This commit is contained in:
Nathan Shively-Sanders
2018-04-26 09:51:28 -07:00
committed by GitHub
4 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import htmlTagNames = require("html-tag-names");
htmlTagNames.length; // => 147
const firstNames: string[] = htmlTagNames.slice(0, 20);

6
types/html-tag-names/index.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
// Type definitions for html-tag-names 1.1
// Project: https://github.com/wooorm/html-tag-names
// Definitions by: Nathan Shively-Sanders <https://github.com/sandersn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const htmlTagNames: string[];
export = htmlTagNames;

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",
"html-tag-names-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }