Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- port sendToJS : Encode.Value -> Cmd msg
- fromSendToJS : String -> Int -> Encode.Value
- fromSendToJS name age =
- Encode.object <|
- [ ( "name", Encode.string name )
- , ( "age", Encode.string age )
- ]
- -- ( Model, Cmd )
- ( model, sendToJS <| fromSendToJS "big" 22 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement