ts-monorepo

Home > @whatsaaaa/types

types package

Why does this library exist?

@whatsaaa/types is a package containing broadly-useful types and type guards for our demo app.

Remarks

All interfaces are prefixed with I

Functions

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

Interfaces

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