safetwitch/src/types/Streamer.ts

31 lines
500 B
TypeScript
Raw Normal View History

2023-06-18 23:19:20 -04:00
export interface Social {
2023-07-20 13:57:01 -04:00
type: string | null
name: string
2023-09-10 13:56:31 -04:00
url: string
2023-06-18 23:19:20 -04:00
}
export interface StreamData {
2023-07-20 13:57:01 -04:00
tags: string[]
title: string
topic: string
startedAt: number
viewers: number
preview: string
cursor?: string
2023-06-18 23:19:20 -04:00
}
export interface StreamerData {
2023-07-20 13:57:01 -04:00
username: string
login: string
followers: number
isLive: boolean
about: string
socials?: Social[]
pfp: string
banner: string
stream?: StreamData | null
isPartner: boolean | null
colorHex: string
id: number
}