-
Notifications
You must be signed in to change notification settings - Fork 0
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
please support typescript definition file #2
Comments
Hi renyaoxiang, thanks for your suggestion! Although I havn't used typescript alot, it appears to me this would make futils much more accessible to users of it. In the meantime, I hope you're going to give futils a try anyway. 😄 |
I'm trying and waiting in hope it. |
Please also take a look into the examples provided, especially the "Basics" section. The concept of monads will be explained in these two:
If monads are the thing you struggle with, a (incomplete) TypeScript interface for most of them would roughly look like this:
It doesn't tell alot just by itself and instead looks more confusing, because you cannot tell what a monad does simply by looking at the signatures of it's methods. For example, the signature of Conceptually, a monad is in fact much less than the interface above says – think of it as a container which allows to sequence computations which return monads themselves (that's what Because all of this might be a bit confusing, here's a concrete example using arrays which are a monadic container given this ECMAScript proposal will be implemented on them. It uses TypeScript syntax for your convenience:
As you can see, just
Again, please take a look into the "Monads!" example. |
Thank you very much 👍 , your replay given me more info for understanding of monads. |
I am using typescript and would like to use futils,
It would be very grace to support typescript definition file
The text was updated successfully, but these errors were encountered: