Setup

  1. 1. What Is elm-ts-interop?
    2:57
  2. 2. Setup
    2:10
  3. 3. Flags
    2:52
  4. 4. FromElm Ports
    5:44
  5. 5. Encoding Custom Types
    9:54
  6. 6. Exhaustive Ports
    6:30
  7. 7. ToElm Ports
    11:10
  8. 8. Migrating to Pro
    9:32

Chapter Notes

Install the NPM Package#

npm install --save-dev elm-ts-interop
npx elm-ts-interop init

Generates TypeScript type bindings from our InteropDefinitions.elm file.

Choose an output filename for the generated TypeScript Declaration file from the elm-ts-interop setup instructions.

npx elm-ts-interop --output src/Main.elm.d.ts