Skip to content

Commit 63d71aa

Browse files
committed
flow comment syntax in scripts/error-codes/invertObject.js
1 parent 2a68c2c commit 63d71aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/error-codes/invertObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* into
1717
* { 0: 'MUCH ERROR', 1: 'SUCH WRONG' }
1818
*/
19-
function invertObject(targetObj /* : ErrorMap */) /* : ErrorMap */ {
20-
const result: {[string]: string} = {};
19+
function invertObject(targetObj /*: ErrorMap */) /*: ErrorMap */ {
20+
const result /*: {[string]: string} */ = {};
2121
const mapKeys = Object.keys(targetObj);
2222

2323
// eslint-disable-next-line no-for-of-loops/no-for-of-loops

0 commit comments

Comments
 (0)