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:
committed by
Francisco Giordano
parent
0457042d93
commit
3ab2e115a2
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