You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@mgs95 Thanks for pointing this out, I'll add that into the typings file for the next release but instead of throwing an error for an unsupported platform it will just default to win32 👍
Describe the bug
TitleBar platform type is set as
"darwin" | "linux" | "win32" | undefined
but process.platform type isNodeJS.Platform
and 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:
TitleBar
component withplatform
property set asprocess.platform
.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):
The text was updated successfully, but these errors were encountered: