Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 17, 2019
1 parent 9541b58 commit a063e21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ List of standard HTML tags.
import htmlTags = require('html-tags');
console.log(htmlTags);
//=> ['a', 'abbr', 'acronym', ...]
//=> ['a', 'abbr', 'acronym', ]
```
*/
declare const htmlTags: readonly string[];
Expand Down
8 changes: 4 additions & 4 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import htmlTagsJson = require('./html-tags.json');
import voidHtmlTagsJson = require('./html-tags-void.json');

expectType<readonly string[]>(htmlTags);
expectError(htmlTags.push(""));
expectError(htmlTags.push(''));
expectType<readonly string[]>(voidHtmlTags);
expectError(voidHtmlTags.push(""));
expectError(voidHtmlTags.push(''));
expectType<readonly string[]>(htmlTagsJson);
expectError(htmlTagsJson.push(""));
expectError(htmlTagsJson.push(''));
expectType<readonly string[]>(voidHtmlTagsJson);
expectError(voidHtmlTagsJson.push(""));
expectError(voidHtmlTagsJson.push(''));
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install html-tags
const htmlTags = require('html-tags');

console.log(htmlTags);
//=> ['a', 'abbr', 'acronym', ...]
//=> ['a', 'abbr', 'acronym', ]
```

And void (self-closing) tags:
Expand All @@ -29,7 +29,7 @@ And void (self-closing) tags:
const voidHtmlTags = require('html-tags/void');

console.log(voidHtmlTags);
//=> ['area', 'base', 'br', ...]
//=> ['area', 'base', 'br', ]
```


Expand Down
2 changes: 1 addition & 1 deletion void.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ List of void (self-closing) HTML tags.
import voidHtmlTags = require('html-tags/void');
console.log(voidHtmlTags);
//=> ['area', 'base', 'br', ...]
//=> ['area', 'base', 'br', ]
```
*/
declare const voidHtmlTags: readonly string[];
Expand Down

0 comments on commit a063e21

Please sign in to comment.