Skip to content

Commit 5d380a0

Browse files
authored
fix(legacy-json): fix parameter ordering (#325)
* fix(`legacy-json`): fix parameter ordering * Remove redudant `' '`
1 parent 385f0c3 commit 5d380a0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/generators/legacy-json/utils/parseSignature.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
import { PARAM_EXPRESSION } from '../constants.mjs';
44

5-
const OPTIONAL_LEVEL_CHANGES = { '[': 1, ']': -1, ' ': 0 };
5+
const OPTIONAL_LEVEL_CHANGES = { '[': 1, ']': -1 };
66

77
/**
8-
* @param {String} char
98
* @param {Number} depth
9+
* @param {String} char
1010
* @returns {Number}
1111
*/
12-
const updateDepth = (char, depth) =>
12+
const updateDepth = (depth, char) =>
1313
depth + (OPTIONAL_LEVEL_CHANGES[char] || 0);
1414

1515
/**

0 commit comments

Comments
 (0)