1
0
Fork 0
tooty/src/Ports.elm

42 lines
682 B
Elm
Raw Normal View History

port module Ports
exposing
( saveRegistration
, deleteRegistration
, scrollIntoView
, saveClients
, setStatus
2017-05-11 08:55:15 +00:00
, uploadMedia
, uploadSuccess
, uploadError
)
2017-05-11 08:55:15 +00:00
-- Outgoing ports
port saveRegistration : String -> Cmd msg
port deleteRegistration : String -> Cmd msg
port saveClients : String -> Cmd msg
port setStatus : { id : String, status : String } -> Cmd msg
port scrollIntoView : String -> Cmd msg
2017-05-11 08:55:15 +00:00
port uploadMedia : { id : String, url : String, token : String } -> Cmd msg
-- Incoming ports
port uploadError : (String -> msg) -> Sub msg
port uploadSuccess : (String -> msg) -> Sub msg