Skip to content

Documentation / @imvu/bot / SourceOf

Type Alias: SourceOf<T> ​

ts
type SourceOf<T> = Extract<MessageSource, {
  type: T;
}>;

Defined in: packages/bot/src/Bot.ts:79

The source type for a type: SourceOf<'room'> is BotRoom.

Type Parameters ​

Type Parameter
T extends SourceType

Released under the MIT License.