fnando / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
MIT License
3.75k stars 519 forks source link

Add node typescript types #701

Open demedos opened 1 year ago

demedos commented 1 year ago

Adds missing typescript declarations, fixing the above issues:

error: Cannot find module 'fs' or its corresponding type declarations. ts(2307)
warning: Could not find a declaration file for module 'glob'. ts(7016)

This also adds type checking and intellisense support.

I also commited the yarn.lock as it's a best practice to have identical builds on different machines, as per documentation

It is highly recommended you commit the generated package lock to source control: this will allow anyone else on your team, [...] to get the exact same dependency tree that you were developing on.