Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/generators/legacy-json/utils/parseSignature.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { PARAM_EXPRESSION } from '../constants.mjs';
const OPTIONAL_LEVEL_CHANGES = { '[': 1, ']': -1, ' ': 0 };

/**
* @param {String} char
* @param {Number} depth
* @param {String} char
* @returns {Number}
*/
const updateDepth = (char, depth) =>
const updateDepth = (depth, char) =>
depth + (OPTIONAL_LEVEL_CHANGES[char] || 0);

/**
Expand Down
Loading