onasty/web/src/Ports.elm (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com feat(web): add dashboard (#214)..., 8 months ago
olexsmir@gmail.com feat(web): add dashboard (#214)..., 8 months ago
| 1 | port module Ports exposing (confirmRequest, confirmResponse, sendToClipboard, sendToLocalStorage) |
| 2 | |
| 3 | import Json.Encode |
| 4 | |
| 5 | |
| 6 | port sendToLocalStorage : { key : String, value : Json.Encode.Value } -> Cmd msg |
| 7 | |
| 8 | |
| 9 | port sendToClipboard : String -> Cmd msg |
| 10 | |
| 11 | |
| 12 | port confirmRequest : String -> Cmd msg |
| 13 | |
| 14 | |
| 15 | port confirmResponse : (Bool -> msg) -> Sub msg |