Ensure constant getters show in docs (#4649)

This commit is contained in:
Francisco
2023-10-04 12:54:49 -03:00
committed by GitHub
parent 2c6b859dd0
commit 39400b78ba
5 changed files with 23 additions and 8 deletions

View File

@ -6,7 +6,7 @@ module.exports['readme-path'] = opts => {
return 'contracts/' + opts.data.root.id.replace(/\.adoc$/, '') + '/README.adoc';
};
module.exports.names = params => params.map(p => p.name).join(', ');
module.exports.names = params => params?.map(p => p.name).join(', ');
module.exports['typed-params'] = params => {
return params?.map(p => `${p.type}${p.indexed ? ' indexed' : ''}${p.name ? ' ' + p.name : ''}`).join(', ');