Support for Hindley–Milner function type signatures
Hi,
Lately functional programming become quite popular in JavaScript community and along with this hype came point free programming. It would be great if Webstorm could recognize these type of documentation string and suggest autocomplete when using functions that are documented by Hindley–Milner.
Example:
// isString :: * -> Boolean
const isString = R.is(String);
// toLower :: String -> String
const toLower = flow(String, toLowerCase);
References:
- https://github.com/ramda/ramda/wiki/Type-Signatures
- https://drboolean.gitbooks.io/mostly-adequate-guide/content/ch7.html
Please sign in to leave a comment.
Please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB.
Note that you can use standard JSDoc to add static types to your JS code
Thanks, feature request filed: https://youtrack.jetbrains.com/issue/WEB-25734
On your note: I know I can use JsDoc, but Hindley–Milner is a standard for any pointfree functional language, and I can do on 1 like what I would do in JsDoc on 10 lines.