Show if event parameter is indexed in docs (#3958)

Co-authored-by: Francisco <frangio.1@gmail.com>
(cherry picked from commit 18691d1a6f)
This commit is contained in:
JulissaDantes
2023-01-16 14:04:03 -05:00
committed by Francisco Giordano
parent 0457042d93
commit 3ab2e115a2

View File

@ -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) => {