@whatsaaa/types
is a package containing broadly-useful types and type guards for our demo app.
All interfaces are prefixed with I
Function | Description |
---|---|
isMessage(arg) | (BETA) Check whether a given value is an IMessage |
isTypedArray(arr, check) | Check whether a given value is an array where each member is of a specified type |
Interface | Description |
---|---|
IChannel | A chat channel, containing many chat messages |
IMessage | A chat message |
ITeam | A team, containing one or more chat channels |
IUser | A user participating in chat |