From f7b34e31720af810ffa2b0585a3d400fb55093aa Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 29 Jun 2023 22:16:16 +0200 Subject: [PATCH] fix(dotnet): generate bool? correctly in generated transport channel types (#23966) https://github.com/microsoft/playwright-dotnet/issues/2581 --- utils/generate_dotnet_channels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; }