Show if event parameter is indexed in docs (#3958)
Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
2
docs/templates/helpers.js
vendored
2
docs/templates/helpers.js
vendored
@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user