Describe the bug
TitleBar platform type is set as "darwin" | "linux" | "win32" | undefined but process.platform type is NodeJS.Platform and both are not compatible so casting is required:
Does not work:
<TitleBar
platform={process.platform}
> </TitleBar>
Work:
<TitleBar
platform={process.platform as "darwin" | "linux" | "win32" | undefined}
> </TitleBar>
I think that the type should be accepted and an error should occur if the platform is not supported.
To Reproduce
Steps to reproduce the behavior:
- Use typescript
- Use
TitleBar component with platform property set as process.platform.
- See typescript error
Expected behavior
process.platform type accepted by the property.
Screenshots
If applicable, add screenshots to help explain your problem.


Desktop (please complete the following information):
- OS: ubuntu
- Version: v2.1.4
Describe the bug
TitleBar platform type is set as
"darwin" | "linux" | "win32" | undefinedbut process.platform type isNodeJS.Platformand both are not compatible so casting is required:Does not work:
Work:
I think that the type should be accepted and an error should occur if the platform is not supported.
To Reproduce
Steps to reproduce the behavior:
TitleBarcomponent withplatformproperty set asprocess.platform.Expected behavior
process.platformtype accepted by the property.Screenshots


If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):