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): generate byte[] for binary properties in generator (#11539)

campersau066b6734d00c
diff --git a/utils/generate_dotnet_channels.js b/utils/generate_dotnet_channels.js
index ef0e9e1771..64ffc248a4 100644
--- a/utils/generate_dotnet_channels.js
+++ b/utils/generate_dotnet_channels.js
@@ -62,7 +62,7 @@ function inlineType(type, indent = '', wrapEnums = false) {
if (optional)
type = type.substring(0, type.length - 1);
if (type === 'binary')
- return { ts: 'string', scheme: 'tString', optional };
+ return { ts: 'byte[]', scheme: 'tArray(tByte)', optional };
if (type === 'json')
return { ts: 'any', scheme: 'tAny', optional };
if (['string', 'boolean', 'number', 'undefined'].includes(type)) {