dillonkearns / elm-typescript-interop

Generate TypeScript declaration files for your elm ports!
BSD 3-Clause "New" or "Revised" License
165 stars 13 forks source link

Is this project dead? #36

Closed laurentpayot closed 3 years ago

laurentpayot commented 4 years ago

I was considering using elm-typescript-interop but I ran into errors like this:

Could not parse file `src/elm/Page/SignIn.elm` at position 11961. Errors:
expected end of input

Looking for similar issues I found this comment about this project maybe not being maintained any more.

This project is such a great idea as TypeScript is becoming a standard for front end dev. Is it dead yet ?

dillonkearns commented 3 years ago

Someone reached out to me a while ago with a rewrite of this project in Elm 0.19 with the latest elm/parser.

I don't plan to upgrade this specific repo to Elm 0.19 under the hood, or changing it over to stil4m/elm-syntax. This other project attempts to rewrite it using that new set of tooling, and if it can handle the same cases that this library can then I'll call it an official replacement. I'm not sure where that project stands, it may be on hold.

dillonkearns commented 3 years ago

I've published elm-ts-interop and it's now a stable project. This project (elm-typescript-interop) is now officially deprecated in favor of the new elm-ts-interop NPM package. The new package gives more flexibility to send things like custom types, and it also uses a single port pair (to and from) which has some cool features like enabling you to do an exhaustive switch in JS to make sure you handle all messages from Elm.

I wrote about the reasons I used a new approach in this post Types Without Borders Isn't Enough. We also did an Elm Radio podcast episode, and there are some additional resources on the docs site. I hope y'all enjoy the new library!