From 492f2dc66d6d9946b1ac513c94b851c746d43711 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 26 Apr 2018 09:13:42 -0700 Subject: [PATCH 1/3] Add html-tag-names --- types/html-tag-names/html-tag-names-tests.ts | 3 +++ types/html-tag-names/index.d.ts | 2 ++ types/html-tag-names/tsconfig.json | 23 ++++++++++++++++++++ types/html-tag-names/tslint.json | 1 + 4 files changed, 29 insertions(+) create mode 100644 types/html-tag-names/html-tag-names-tests.ts create mode 100644 types/html-tag-names/index.d.ts create mode 100644 types/html-tag-names/tsconfig.json create mode 100644 types/html-tag-names/tslint.json diff --git a/types/html-tag-names/html-tag-names-tests.ts b/types/html-tag-names/html-tag-names-tests.ts new file mode 100644 index 0000000000..96916aa58a --- /dev/null +++ b/types/html-tag-names/html-tag-names-tests.ts @@ -0,0 +1,3 @@ +import htmlTagNames = require("html-tag-names"); +htmlTagNames.length; //=> 147 +const firstNames: string[] = htmlTagNames.slice(0, 20); diff --git a/types/html-tag-names/index.d.ts b/types/html-tag-names/index.d.ts new file mode 100644 index 0000000000..bc7b39a193 --- /dev/null +++ b/types/html-tag-names/index.d.ts @@ -0,0 +1,2 @@ +declare const htmlTagNames: string[]; +export = htmlTagNames; diff --git a/types/html-tag-names/tsconfig.json b/types/html-tag-names/tsconfig.json new file mode 100644 index 0000000000..05cded79c8 --- /dev/null +++ b/types/html-tag-names/tsconfig.json @@ -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" + ] +} diff --git a/types/html-tag-names/tslint.json b/types/html-tag-names/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/html-tag-names/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 21d07f0fcfe33b45ac44efcd508af63353ce8744 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 26 Apr 2018 09:18:33 -0700 Subject: [PATCH 2/3] Add author header --- types/html-tag-names/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/html-tag-names/index.d.ts b/types/html-tag-names/index.d.ts index bc7b39a193..e48dda7733 100644 --- a/types/html-tag-names/index.d.ts +++ b/types/html-tag-names/index.d.ts @@ -1,2 +1,6 @@ +// Type definitions for html-tag-names 1.1.2 +// Project: https://github.com/wooorm/html-tag-names +// Definitions by: Nathan Shively-Sanders +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare const htmlTagNames: string[]; export = htmlTagNames; From 9e86892aed09bc22ea45b39c268cf565808bbad0 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 26 Apr 2018 09:21:48 -0700 Subject: [PATCH 3/3] Fix lint --- types/html-tag-names/html-tag-names-tests.ts | 2 +- types/html-tag-names/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/html-tag-names/html-tag-names-tests.ts b/types/html-tag-names/html-tag-names-tests.ts index 96916aa58a..b3362a6b7e 100644 --- a/types/html-tag-names/html-tag-names-tests.ts +++ b/types/html-tag-names/html-tag-names-tests.ts @@ -1,3 +1,3 @@ import htmlTagNames = require("html-tag-names"); -htmlTagNames.length; //=> 147 +htmlTagNames.length; // => 147 const firstNames: string[] = htmlTagNames.slice(0, 20); diff --git a/types/html-tag-names/index.d.ts b/types/html-tag-names/index.d.ts index e48dda7733..8c9558edb7 100644 --- a/types/html-tag-names/index.d.ts +++ b/types/html-tag-names/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for html-tag-names 1.1.2 +// Type definitions for html-tag-names 1.1 // Project: https://github.com/wooorm/html-tag-names // Definitions by: Nathan Shively-Sanders // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped