diff --git a/docs/templates/helpers.js b/docs/templates/helpers.js index 0d587caa8b7..65f168eba74 100644 --- a/docs/templates/helpers.js +++ b/docs/templates/helpers.js @@ -9,7 +9,7 @@ module.exports['readme-path'] = opts => { module.exports.names = params => params.map(p => p.name).join(', '); module.exports['typed-params'] = params => { - return params.map(p => `${p.type}${p.name ? ' ' + p.name : ''}`).join(', '); + return params?.map(p => `${p.type}${p.indexed ? ' indexed' : ''}${p.name ? ' ' + p.name : ''}`).join(', '); }; const slug = (module.exports.slug = str => {