Minimal serializable representation of a chat message
| 43 | username?: string; |
| 44 | title?: string; |
| 45 | firstName?: string; |
| 46 | lastName?: string; |
| 47 | className?: string; |
| 48 | }; |
| 49 | const entityFields = (e: unknown): EntityFields => e as EntityFields; |
| 50 | |
| 51 | /** random delay between min and max ms */ |
| 52 | function rndDelay(min: number, max: number): Promise<void> { |
| 53 | const ms = Math.floor(Math.random() * (max - min + 1)) + min; |
nothing calls this directly
no outgoing calls
no test coverage detected