Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function formatParameter(param, short) {
if (short) {
return param.type.type == Syntax.OptionalType ? '[' + param.name + ']' : param.name;
} else {
return param.name + ': ' + formatMarkdown.type(param.type).replace(/\n/g, '');
}
}
function formatParameter(param, short) {
if (short) {
return param.type.type == Syntax.OptionalType ? '[' + param.name + ']' : param.name;
} else {
return param.name + ': ' + formatMarkdown.type(param.type).replace(/\n/g, '');
}
}