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
{{ message }}
Repository navigation
MetricType enum not exported for use in index.js #336
That's a pair of bug in the TypeScript definitions (there is no such object to go along with the enum definition, and the type property where that enum would supposedly be used is a string). Thanks for reporting.
Activity
zbjornson commentedon Mar 12, 2020
That's a pair of bug in the TypeScript definitions (there is no such object to go along with the enum definition, and the
typeproperty where that enum would supposedly be used is a string). Thanks for reporting.sam-github commentedon Mar 13, 2020
electron has some tooling to generate type defs from docs, might be worth looking at, some discussion recently at nodejs/node#32206
LastKing commentedon Jun 18, 2020
These code just just declare in index.d.ts , not real exsist in index.js , I'm confused.
I use it in my code throw error when run app.
Can you export real enum ( just like enum,Maybe it's an object ) or delete the declare?
My Englisth is poor. thank you.
[-]MetricType enumnot exported for use in index.js[/-][+]MetricType enum not exported for use in index.js[/+]fix(types): make MetricType a string union matching runtime values
fix(types): make MetricType a string union matching runtime values