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";