peertube-plugin-livechat/server/lib/diagnostic/utils.ts

24 lines
436 B
TypeScript

type nextValue = 'backend' | 'webchat-video' | 'webchat-type' | 'prosody' | 'converse' | 'use-uri'
export interface TestResult {
label?: string
messages: string[]
debug: Array<{
title: string
message: string
}>
next: nextValue | null
ok: boolean
test: string
}
export function newResult (test: string): TestResult {
return {
test: test,
ok: false,
messages: [],
debug: [],
next: null
}
}