We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
legacy-json
1 parent 580bc4d commit 00d11c4Copy full SHA for 00d11c4
src/generators/legacy-json/utils/parseSignature.mjs
@@ -5,11 +5,11 @@ import { PARAM_EXPRESSION } from '../constants.mjs';
5
const OPTIONAL_LEVEL_CHANGES = { '[': 1, ']': -1, ' ': 0 };
6
7
/**
8
- * @param {String} char
9
* @param {Number} depth
+ * @param {String} char
10
* @returns {Number}
11
*/
12
-const updateDepth = (char, depth) =>
+const updateDepth = (depth, char) =>
13
depth + (OPTIONAL_LEVEL_CHANGES[char] || 0);
14
15
0 commit comments