fix(dotnet): generate bool? correctly in generated transport channel types (#23966)
https://github.com/microsoft/playwright-dotnet/issues/2581
This commit is contained in:
parent
fef029e98e
commit
f7b34e3172
|
|
@ -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 '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue