
Episode 25
025: elm-ts-interop
elm-ts-interop is a tool that keeps types in sync between your Elm ports and JavaScript (or TypeScript) wiring code. We talk about the new design and compare it to the original.
March 1, 20211h 14m
Audio is streamed directly from the publisher (cdn.simplecast.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
elm-ts-interop- Now-deprecated original library -
elm-typescript-interop - The Importance of Ports - Elm Conf talk by Murphy Randle
- Evan's Vision for Data Interchange document recommends against implicit serialization. The deprecated
elm-typescript-interoprelied on Elm's automatic JSON serialization flags/ports.elm-ts-interoppassesJson.Decode.Value's which is what the guide recommends. - Blog post about TypeScript's Blind Spots
- TypeScript discriminating unions are analagous to Elm custom types
- Types Without Borders Elm Conf talk
elm-ts-jsonElm pacakge- Elm ts interop npm package
What's the source of truth?
- Nexus - code-first GraphQL server
graphql-js- schema-first GraphQL- Hasura and PostGraphile - Postgres schema is the source of truth
- Elm Codecs episode
elm-ts-jsonEncode docs
Getting Started
- Get your discount code, and learn more about the Pro version, including the scaffolding tool and Pro CLI at elm-ts-interop.com.
Two articles about the redesign of elm-ts-interop (originally published in Bekk's Functional Christmas posts)