Skip to content

Commit

Permalink
Fix - fixing typing issue for Broadcastable, now it's possible to hav…
Browse files Browse the repository at this point in the history
…e a payload with an array.
  • Loading branch information
EvanPerreau committed Jun 28, 2024
1 parent 76ba3e0 commit 79bb7bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/types/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export type Duration = number | string
/**
* A Broadcastable is a value that can be broadcasted to other clients
*/
export type Broadcastable = { [key: string]: Broadcastable } | string | number | boolean | null
export type Broadcastable =
| { [key: string]: Broadcastable }
| string
| number
| boolean
| null
| Broadcastable[]

export interface TransmitConfig {
pingInterval?: Duration | false
Expand Down

0 comments on commit 79bb7bf

Please sign in to comment.