Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. port sendToJS : Encode.Value -> Cmd msg
  2.  
  3. fromSendToJS : String -> Int -> Encode.Value
  4. fromSendToJS name age =
  5. Encode.object <|
  6. [ ( "name", Encode.string name )
  7. , ( "age", Encode.string age )
  8. ]
  9.  
  10.  
  11. -- ( Model, Cmd )
  12. ( model, sendToJS <| fromSendToJS "big" 22 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement