Skip to content

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

chore(dotnet): float is non-nullable (#37095)

Simon Knott5b8c7d648ae0
diff --git a/utils/generate_dotnet_channels.js b/utils/generate_dotnet_channels.js
index 6ff4b8925d..00b6ea972e 100644
--- a/utils/generate_dotnet_channels.js
+++ b/utils/generate_dotnet_channels.js
@@ -145,7 +145,7 @@ function properties(properties, indent, onlyOptional, parentName, level) {
ts.push('');
ts.push(`${indent}[JsonPropertyName("${name}")]`);
let suffix = ''
- if (!['bool', 'int', 'System.Text.Json.JsonElement'].includes(inner.ts))
+ if (!['bool', 'int', 'float', 'System.Text.Json.JsonElement'].includes(inner.ts))
suffix = ' = null!;'
ts.push(`${indent}public ${inner.ts}${nullableSuffix(inner)} ${toTitleCase(name)} { get; set; }${suffix}`);
const wrapped = inner.optional ? `tOptional(${inner.scheme})` : inner.scheme;