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
Generate TypeScript Definition Files #29
Comments
Would be nice to have, but not essential for a first release. Also, I'm not sure what to do with things like
|
Closing this as wontfix. The type system really won't help with things like rows. |
In case anyone is interested in this topic: I've written a tool to do this. See https://github.com/minoki/purescript-tsd-gen |
I think @justinwoo has also worked on some stuff around this! |
My thing is just a PureScript library in the end though https://github.com/justinwoo/purescript-ohyes |
If PureScript compiled to TypeScript and could read TypeScript definitions, it would take over the front-end world. |
That'd be nice, but TS can't (directly) express a lot of PS types and vice versa. Plus there's effects to consider. I think tools that assist with some cases is the best we'll get really. |
I think this would be really nice. It would make it much nicer to make libraries with purescript and make them usable with the typescript/javascript world. But also in integrating purescript components into existing TypeScript codebases. |
To expose a PureScript library to TypeScript, we can generate
.d.ts
files from an externs file.The text was updated successfully, but these errors were encountered: