Closed Znerole closed 2 years ago
Same issue here. To be blunt the typings in this project are not the greatest in general right now.
Another issue is that there's no proper way to import anything other than Titlebar
and Color
if you're targeting ECMAScript modules:
These two fail to compile:
While a direct import fails on build since it's not exported by the package:
Is there a reason the main index
file doesn't export the entirety of the package's API?
Describe the bug The current TypeScript declarations appear to be wrong to me. Importing
Titlebar
andColor
doesn't allow proper type usage:The second statement produces the following error:
Contents of
index.d.ts
are:This issue is new in 4.x.
To Reproduce Steps to reproduce the behavior:
custom-electron-titlebar
to the projectTitlebar
as shown beforeExpected behavior Types should be used "normally".
Desktop (please complete the following information):