Turn Message into a record type

This commit is contained in:
Sven van Heugten 2026-01-03 19:34:33 +01:00
parent ab6e123efc
commit 10e26a4866
4 changed files with 10 additions and 14 deletions

View file

@ -8,7 +8,7 @@ type Event =
| ReceivedZigbeeEvent of payload: string
| TimeChanged of DateTime
type Message = Message of Topic: string * Payload: string
type Message = { Topic: string; Payload: string }
type ParseZigbeeEventError =
| InvalidJson