Skip to content

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

fix(dotnet): generate bool? correctly in generated transport channel types (#23966)

Max Schmittf7b34e31720a
diff --git a/utils/generate_dotnet_channels.js b/utils/generate_dotnet_channels.js
index dab18e5050..e684751729 100644
--- a/utils/generate_dotnet_channels.js
+++ b/utils/generate_dotnet_channels.js
@@ -74,7 +74,7 @@ function mapType(type) {
}
function nullableSuffix(inner) {
- if (['int', 'boolean'].includes(inner.ts))
+ if (['int', 'bool'].includes(inner.ts))
return inner.optional ? '?' : '';
return '';
}