Skip to content

Commit

Permalink
Show if event parameter is indexed in docs (#3958)
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco <frangio.1@gmail.com>
(cherry picked from commit 18691d1)
  • Loading branch information
JulissaDantes authored and frangio committed Jan 16, 2023
1 parent 0457042 commit 3ab2e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/templates/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3ab2e11

Please sign in to comment.