Elm-ts-types: Generate TypeScript typings for the JavaScript interface of Elm apps

Ever wished that TypeScript knew about your ports and flags? Well, wish no more because it is finally here:

Run my tool and enjoy the extra type safety. No code changes needed – unless you now have uncovered a bug in your TypeScript to fix.

Me and @kantuni talked about this on Elm Camp. It gave me an idea and inspired me to try it out on my train home – and now it exists!

19 Likes

This is great, I appreciate the note about how to integrate it into elm-watch because that was also my first question: How do I use this in my build tool. Thank you for making awesome tooling!

2 Likes

Just released 1.0.1. It fixes a crash if you run it via elm-watch hot.

3 Likes