peertube-plugin-livechat/shared/lib/types.ts

22 lines
408 B
TypeScript
Raw Normal View History

type ChatType = 'disabled' | 'builtin-prosody' | 'builtin-converse' | 'external-uri'
2021-06-11 23:16:57 +00:00
interface ProsodyListRoomsResultError {
ok: false
error: string
}
interface ProsodyListRoomsResultSuccess {
ok: true
rooms: Array<{
name: string
href: string
}>
}
type ProsodyListRoomsResult = ProsodyListRoomsResultError | ProsodyListRoomsResultSuccess
export {
2021-06-11 23:16:57 +00:00
ChatType,
ProsodyListRoomsResult
}