Gr3q / types-cjs

Typescript declarations for CJS - Cinnamon JavaScript
MIT License
5 stars 2 forks source link

update global.d.ts #12

Closed jonath92 closed 2 years ago

jonath92 commented 2 years ago

just a minor update for global.d.ts. Most important is that I change class Lang and class Signals to interfaces. The reason therefore is that previously typescript allowed to write the following:

const Lang = imports.Lang

but this throws the following error: No JS module 'Lang' found in search path (even though there is no export keyword before the classes).