deltachat / deltachat-node

Email-based instant messaging for Node.js.
GNU General Public License v3.0
45 stars 11 forks source link

enable strict typescript #523

Closed Simon-Laux closed 2 years ago

Simon-Laux commented 2 years ago

and remove old unused imports

strict typescript enables null checks and require that we specify which variables can be null/undefined and thus make the code safer in preventing some bugs.

though this is still WIP until we find a way that we have explicit null also in our outputted declaration files: like that quoted message id can be null. that's needed for strict types in desktop. UPDATE: updateing typescript did the trick.