With v5, neutralino.d.ts file contains exports, which makes it a declaration for a global-modifying module, when neutralino.js file is not (it is a global library). This makes it impossible to use in TypeScript projects.
Steps to reproduce:
neu create test && cd ./test
Open in VSCode or any other editor that supports TypeScript
With v5,
neutralino.d.ts
file contains exports, which makes it a declaration for a global-modifying module, whenneutralino.js
file is not (it is a global library). This makes it impossible to use in TypeScript projects.Steps to reproduce:
neu create test && cd ./test
console.log(Neutralino)
— get an error.Removing all
export
s resolves the issue.