Skip to content

Commit

Permalink
flow comment syntax in scripts/error-codes/invertObject.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Jan 9, 2023
1 parent 2a68c2c commit 63d71aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/error-codes/invertObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* into
* { 0: 'MUCH ERROR', 1: 'SUCH WRONG' }
*/
function invertObject(targetObj /* : ErrorMap */) /* : ErrorMap */ {
const result: {[string]: string} = {};
function invertObject(targetObj /*: ErrorMap */) /*: ErrorMap */ {
const result /*: {[string]: string} */ = {};
const mapKeys = Object.keys(targetObj);

// eslint-disable-next-line no-for-of-loops/no-for-of-loops
Expand Down

0 comments on commit 63d71aa

Please sign in to comment.