New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using static typing #347
Comments
Does pnpm have programmatic API to use? |
than, typescript will not help raw-js consumers to validate their code anyway. and there is not run-time check as far as i know it |
also, a lot of people will complain about implementing it in flow instead |
I am not really familiar with flow, but I was under the impression that it has the same syntax as TypeScript but not as good tooling. It will not change anything for the raw-js users but it would make the life of pnpm maintainers easier. |
We can even look at it as a smarter eslint... For instance, like a month ago I changed a method called |
I'm all for static typing, but I'd rather go with Flow as it has more powerful type system and thus much better chances to catch an error. As a con for both TypeScript and Flow is that build process becomes necessary: you can't run code before transpiring it (well, you can with I could make a PR with such build process incorporated and some of the modules annotated with Flow to see how it feels. |
thats a good point |
I will be able to read and edit static-typed js as well, i guess. So @zkochan, @andreypopp pick a side and go ahead =) |
Well, personally I like TypeScript 2 more, but it is in beta yet and it is easier to convert an existing project to Flow. So if @andreypopp wants Flow, I don't resist. And we can switch to TypeScript later, in case it will become superior. |
I think rewriting pnpm to TypeScript would be beneficial.
The text was updated successfully, but these errors were encountered: