diff --git a/utils/doclint/linkUtils.js b/utils/doclint/linkUtils.js index 9099c50ed93fe..a6e5433e0d3e6 100644 --- a/utils/doclint/linkUtils.js +++ b/utils/doclint/linkUtils.js @@ -62,8 +62,10 @@ function docsLinkRendererForLanguage(language, outputType) { if (!member || !member.clazz) throw new Error('Internal error'); const className = member.clazz.varName === 'playwrightAssertions' ? '' : member.clazz.varName + '.'; - if (member.kind === 'method') - return createMarkdownLink(languagePath, member, `${formatClassName(className, language)}${member.alias}()`); + if (member.kind === 'method') { + const args = outputType === 'ReleaseNotesMd' ? '' : renderJSSignature(member.argsArray); + return createMarkdownLink(languagePath, member, `${formatClassName(className, language)}${member.alias}(${args})`); + } if (member.kind === 'event') return createMarkdownLink(languagePath, member, `${className}on('${member.alias.toLowerCase()}')`); if (member.kind === 'property')