all repos

onasty @ main

a one-time notes service

onasty/web/src/Ports.elm(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
port module Ports exposing (confirmRequest, confirmResponse, sendToClipboard, sendToLocalStorage)

import Json.Encode


port sendToLocalStorage : { key : String, value : Json.Encode.Value } -> Cmd msg


port sendToClipboard : String -> Cmd msg


port confirmRequest : String -> Cmd msg


port confirmResponse : (Bool -> msg) -> Sub msg