safetwitch/src/types/Streamer.ts

28 lines
508 B
TypeScript
Raw Normal View History

2023-06-18 23:19:20 -04:00
export interface Social {
type: string | null
text: string,
link: string
}
export interface StreamData {
tags: string[]
title: string
topic: string
startedAt: number
viewers: number
preview: string
cursor?: string
}
export interface StreamerData {
username: string
followers: number
isLive: boolean
about: string
socials?: Social[]
pfp: string
stream?: StreamData | null
isPartner: boolean | null
colorHex: string
id: number
}