safetwitch/src/types/Streamer.ts

30 lines
545 B
TypeScript
Raw Normal View History

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