UNPKG

discreetly-interfaces

Version:

Common interfaces and utilities for discreetly

13 lines (12 loc) 358 B
export type MessageType = 'TEXT' | 'PIXEL' | 'POLL' | 'DMREQUEST' | string | null; export type MessageInterfaces = string | PixelMessage | PollMessage; export type HexColor = `#${string}`; export interface PixelMessage { x: number; y: number; color: HexColor | string; } export interface PollMessage { title: string; options: string[]; }