Complete documentation

3-event
Bram 2023-12-24 11:36:34 +01:00
parent fa642b46d6
commit 4905b7341d
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"version": "2.0.0",
"exposed-modules": [
"Matrix",
"Matrix.Event",
"Matrix.Settings",
"Internal.Config.Default",
"Internal.Config.Leaks",
@ -18,6 +19,7 @@
"Internal.Tools.VersionControl",
"Internal.Values.Context",
"Internal.Values.Envelope",
"Internal.Values.Event",
"Internal.Values.Settings",
"Internal.Values.Vault",
"Types"

View File

@ -67,6 +67,8 @@ age event =
Maybe.andThen (\(UnsignedData data) -> data.age) event.unsigned
{-| Decode an Event from a JSON value.
-}
decoder : D.Decoder Event
decoder =
D.map8 Event