Turn Message into a record type
This commit is contained in:
parent
ab6e123efc
commit
10e26a4866
4 changed files with 10 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue