Merge pull request #32099 from BendingBender/html-tags

[html-tags] Add types
This commit is contained in:
Daniel Rosenwasser
2019-01-14 14:24:00 -08:00
committed by GitHub
7 changed files with 53 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import htmlTags = require('html-tags');
import voidHtmlTags = require('html-tags/void');
import htmlTagsJson = require('html-tags/html-tags.json');
import voidHtmlTagsJson = require('html-tags/html-tags-void.json');
htmlTags; // $ExpectType string[]
voidHtmlTags; // $ExpectType string[]
htmlTagsJson; // $ExpectType string[]
voidHtmlTagsJson; // $ExpectType string[]
+3
View File
@@ -0,0 +1,3 @@
export = voidHtmlTags;
declare const voidHtmlTags: string[];
+3
View File
@@ -0,0 +1,3 @@
export = htmlTags;
declare const htmlTags: string[];
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for html-tags 2.0
// Project: https://github.com/sindresorhus/html-tags#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = htmlTags;
declare const htmlTags: string[];
+26
View File
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"void.d.ts",
"html-tags.json.d.ts",
"html-tags-void.json.d.ts",
"html-tags-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+3
View File
@@ -0,0 +1,3 @@
export = voidHtmlTags;
declare const voidHtmlTags: string[];