[READ-ONLY] Mirror of https://github.com/Savy011/rubble. an archive for weeekly's 🫧 messages rubble.yvas.me
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041export type MemberShortcut = ("soojin" | "monday" | "soeun" | "jiyoon" | "jaehee" | "jihan" | "zoa")[]
type MessageBase = { id: string; timestamp: number; text: string;}
type MessageWithText = { type: "text"; translation: string;} & MessageBase
type MessageWithPhoto = { type: "photo" | "sticker"; src: string; width?: number; height?: number;} & MessageBase
type MessageWithMedia = { type: "audio" | "video"; src: string;} & MessageBase
type MessageWithLive = { type: "live"; duration: number; src: string;} & MessageBase
export type Message = Prettify<MessageWithText | MessageWithPhoto | MessageWithMedia | MessageWithLive>
export type MessageType = "text" | "sticker" | "audio" | "video" | "photo" | "live"
export type MessageMediaType = "audio" | "video" | "photo"
type Prettify<T> = { [K in keyof T]: T[K];} & {};