elm-ts-json
elm-ts-json copied to clipboard
Hello @dillonkearns, could you take a look? 🙂 I added intUnion that work's the same way as stringUnion but with ints. Issue: https://github.com/dillonkearns/elm-ts-json/issues/15
Thank you @dillonkearns for creating elm-ts-interop and also this nice package. I created this PR to document a behavior that was unexpected to me: I had expected that `nullableField` returns...
Currently I use ``` TsJson.Codec.stringUnion [ ( "0", Reliable ) , ( "1", Lossy ) , ( "-1", Unrecognized ) ] ``` to encode data for a JS library. The...
I'm not sure if this functionality would be a good idea or not because there are tradeoffs involved, but I'm creating this PR as a starting point for the discussion...
Currently this library allow one to define typescript type and elm type and encoder & decoder from combinator (source code) written in elm. Is there another way. That allow one...
@neurodynamic thanks again for the feedback on the API. To follow up on [the Discourse discussion](https://discourse.elm-lang.org/t/elm-radio-episode-25-elm-ts-interop/7029/5), I think it would make sense to use an opaque type like the [UnionEncodeValue...