소스 검색

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

Co-authored-by: Francisco <frangio.1@gmail.com>
(cherry picked from commit 18691d1a6f56dd906c175072a97dc5ed93ab968c)
JulissaDantes 2 년 전
부모
커밋
3ab2e115a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/templates/helpers.js

+ 1 - 1
docs/templates/helpers.js

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