From 3ab2e115a29628f15785f6a3a483a1a21ad32d31 Mon Sep 17 00:00:00 2001 From: JulissaDantes Date: Mon, 16 Jan 2023 14:04:03 -0500 Subject: [PATCH] Show if event parameter is indexed in docs (#3958) Co-authored-by: Francisco (cherry picked from commit 18691d1a6f56dd906c175072a97dc5ed93ab968c) --- docs/templates/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates/helpers.js b/docs/templates/helpers.js index 8c94d757c6a..4b3c58cc2cc 100644 --- a/docs/templates/helpers.js +++ b/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) => {