regenerate examples

This commit is contained in:
Brian Hicks 2024-04-26 06:26:22 -05:00
parent a8473d9727
commit e47f2415ae
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
4 changed files with 22 additions and 22 deletions

View File

@ -168,16 +168,16 @@ encodeNewJwt newJwt =
port logout : Value -> Cmd msg
logout_ : Logout -> Cmd msg
logout_ value =
sendLogout : Logout -> Cmd msg
sendLogout value =
logout (encodeLogout value)
port newJwt : Value -> Cmd msg
newJwt_ : NewJwt -> Cmd msg
newJwt_ value =
sendNewJwt : NewJwt -> Cmd msg
sendNewJwt value =
newJwt (encodeNewJwt value)
```

View File

@ -39,14 +39,14 @@ encodeNewJwt newJwt =
port logout : Value -> Cmd msg
logout_ : Logout -> Cmd msg
logout_ value =
sendLogout : Logout -> Cmd msg
sendLogout value =
logout (encodeLogout value)
port newJwt : Value -> Cmd msg
newJwt_ : NewJwt -> Cmd msg
newJwt_ value =
sendNewJwt : NewJwt -> Cmd msg
sendNewJwt value =
newJwt (encodeNewJwt value)

View File

@ -47,14 +47,14 @@ encodeJsToElm jsToElm =
port elmToJs : Value -> Cmd msg
elmToJs_ : ElmToJs -> Cmd msg
elmToJs_ value =
sendElmToJs : ElmToJs -> Cmd msg
sendElmToJs value =
elmToJs (encodeElmToJs value)
port jsToElm : (Value -> msg) -> Sub msg
jsToElm_ : (Result Json.Decode.Error JsToElm -> msg) -> Sub msg
jsToElm_ toMsg =
subscribeToJsToElm : (Result Json.Decode.Error JsToElm -> msg) -> Sub msg
subscribeToJsToElm toMsg =
jsToElm (/value -> toMsg (Json.Decode.decodeValue value jsToElmDecoder)

View File

@ -414,38 +414,38 @@ encodeSendNotification sendNotification =
port changeDocument : Value -> Cmd msg
changeDocument_ : ChangeDocument -> Cmd msg
changeDocument_ value =
sendChangeDocument : ChangeDocument -> Cmd msg
sendChangeDocument value =
changeDocument (encodeChangeDocument value)
port docFromAutomerge : (Value -> msg) -> Sub msg
docFromAutomerge_ : (Result Json.Decode.Error DocFromAutomerge -> msg) -> Sub msg
docFromAutomerge_ toMsg =
subscribeToDocFromAutomerge : (Result Json.Decode.Error DocFromAutomerge -> msg) -> Sub msg
subscribeToDocFromAutomerge toMsg =
docFromAutomerge (/value -> toMsg (Json.Decode.decodeValue value docFromAutomergeDecoder)
port notificationPermission : (Value -> msg) -> Sub msg
notificationPermission_ : (Result Json.Decode.Error NotificationPermission -> msg) -> Sub msg
notificationPermission_ toMsg =
subscribeToNotificationPermission : (Result Json.Decode.Error NotificationPermission -> msg) -> Sub msg
subscribeToNotificationPermission toMsg =
notificationPermission (/value -> toMsg (Json.Decode.decodeValue value notificationPermissionDecoder)
port requestNotificationPermission : Value -> Cmd msg
requestNotificationPermission_ : RequestNotificationPermission -> Cmd msg
requestNotificationPermission_ value =
sendRequestNotificationPermission : RequestNotificationPermission -> Cmd msg
sendRequestNotificationPermission value =
requestNotificationPermission (encodeRequestNotificationPermission value)
port sendNotification : Value -> Cmd msg
sendNotification_ : SendNotification -> Cmd msg
sendNotification_ value =
sendSendNotification : SendNotification -> Cmd msg
sendSendNotification value =
sendNotification (encodeSendNotification value)