UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

7 lines (6 loc) 369 B
import type { EventSubConnection } from '../enums'; import type { GlobalEmote, ChannelEmote } from '../structures'; /** * The returned value when fetching an emote. */ export type FetchEmote<T extends EventSubConnection, K extends 'global' | 'channel'> = K extends 'global' ? GlobalEmote<T> : K extends 'channel' ? ChannelEmote<T> : GlobalEmote<T> | ChannelEmote<T>;