Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: generator incorrectly appends <T> to name of files (#8011)

Anže Vodovnik8792955f8218
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 31204481cc..64ea81c80f 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -568,7 +568,7 @@ function renderMethod(member, parent, name, options, out) {
if (arg.name === 'options') {
if (options.mode === 'options' || options.mode === 'base') {
- const optionsType = member.clazz.name + name + 'Options';
+ const optionsType = member.clazz.name + name.replace('<T>', '') + 'Options';
optionTypes.set(optionsType, arg.type);
args.push(`${optionsType}? options = default`);
argTypeMap.set(`${optionsType}? options = default`, 'options');