Update docs

This commit is contained in:
github-actions
2023-10-04 17:37:09 +00:00
parent 074bd84f35
commit 645e2a6c4a
8 changed files with 135 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(', ');