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

https://github.com/microsoft/playwright-dotnet/issues/2581
This commit is contained in:
Max Schmitt 2023-06-29 22:16:16 +02:00 committed by GitHub
parent fef029e98e
commit f7b34e3172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '';
}