Type definitions
I could tackle this! I'm guessing flowtype is the intended solution? Or move to Typescript?
Maybe we can use just type definitions to avoid rewriting all packages... What do you think about it?
Our packages are small pieces of code.
Rewrting them with Typescript is not a bad idea.
no problems for me :D
Cool, TS it is. ;-)
@aputhin will you rewrite all packages or we can do it one by one? Either way, I would like to help you with it.
I tried my luck with the Typescript rewrite in #33. Hope it helps!
Can someone help? Even though the whole project is written in TS, when importing a specific package (such as @brazilian-utils/is-valid-cpf), the compiler still complains about not finding a type definitions file. Do I need to do something else than just installing and importing?
Thanks for the amazing work!
I'm taking a look at it, @matheusgrieger. We're probably either not generating the definitions file or not pointing to it from package.json.
As it turns out, both :neutral_face:
I will be looking at it tomorrow and will send a PR
@matheusgrieger, see #37 and #38
@vhfmag thanks a lot for that!
@vhfmag some planning to publish new version in the npm?
Yes @ramonornela , in the next release we going to publish next version of brazilian-utils. You can check our work in #63 . Fell free to contribute and help us to migrate all missing packages to new structure.