Skip to content

Commit

Permalink
Add index signature to types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 20, 2021
1 parent 1ccd521 commit 0b24eb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function onconcat(buf) {

fs.writeFile(
'index.js',
'export var afinn165 = ' + JSON.stringify(data, null, 2) + '\n',
[
'/** @type {Record<string, number>} */',
'export var afinn165 = ' + JSON.stringify(data, null, 2),
''
].join('\n'),
bail
)
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {Record<string, number>} */
export var afinn165 = {
abandon: -2,
abandoned: -2,
Expand Down

0 comments on commit 0b24eb2

Please sign in to comment.