Skip to content

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

chore: update generateDotNetApi (#35629)

Dmitry Gozman9b6176d70914
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 2e82f92d0a..d46cd62ffd 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -732,8 +732,6 @@ function translateType(type, parent, generateNameCallback = t => t.name, optiona
console.warn(`${type.name} should be a 'string', but was a ${type.expression}`);
return `string`;
}
- if (type.union.length === 2 && type.union[1].name === 'Array' && type.union[1].templates[0].name === type.union[0].name)
- return `IEnumerable<${type.union[0].name}>`; // an example of this is [string]|[Array]<[string]>
if (type.expression === '[float]|"raf"')
return `Polling`; // hardcoded because there's no other way to denote this