Migrating to Pro

  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

Purchase the elm-ts-interop Pro Edition and find the scaffolding tool at elm-ts-interop.com.

Use the equivalent generate command for our package.json generate script:

elm-ts-interop-pro --output src/Main.elm.d.ts --gen-directory gen --definitions src/InteropDefinitions.elm

Copy the .npmrc file, as indicated in the pro instructions.

We can generate our Log.Kind encoder by inputting this into the Pro scaffolding tool:

export type Kind = "error" | "warn" | "info" | "alert";