cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// TS types for elements on the Config pages
|
||||
|
||||
|
||||
// for dropdown
|
||||
export interface SocialHandleDropdownItem {
|
||||
icon: string;
|
||||
@@ -17,15 +16,15 @@ export interface UpdateArgs {
|
||||
}
|
||||
|
||||
export interface ApiPostArgs {
|
||||
apiPath: string,
|
||||
data: object,
|
||||
onSuccess?: (arg: any) => void,
|
||||
onError?: (arg: any) => void,
|
||||
apiPath: string;
|
||||
data: object;
|
||||
onSuccess?: (arg: any) => void;
|
||||
onError?: (arg: any) => void;
|
||||
}
|
||||
|
||||
export interface ConfigDirectoryFields {
|
||||
enabled: boolean;
|
||||
instanceUrl: string,
|
||||
instanceUrl: string;
|
||||
}
|
||||
|
||||
export interface ConfigInstanceDetailsFields {
|
||||
@@ -33,14 +32,13 @@ export interface ConfigInstanceDetailsFields {
|
||||
logo: string;
|
||||
name: string;
|
||||
nsfw: boolean;
|
||||
socialHandles: SocialHandle[],
|
||||
socialHandles: SocialHandle[];
|
||||
streamTitle: string;
|
||||
summary: string;
|
||||
tags: string[];
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
||||
export type CpuUsageLevel = 1 | 2 | 3 | 4 | 5;
|
||||
|
||||
// from data
|
||||
@@ -51,7 +49,7 @@ export interface SocialHandle {
|
||||
|
||||
export interface VideoVariant {
|
||||
key?: number; // unique identifier generated on client side just for ant table rendering
|
||||
cpuUsageLevel: CpuUsageLevel,
|
||||
cpuUsageLevel: CpuUsageLevel;
|
||||
framerate: number;
|
||||
|
||||
audioPassthrough: boolean;
|
||||
@@ -61,11 +59,10 @@ export interface VideoVariant {
|
||||
}
|
||||
export interface VideoSettingsFields {
|
||||
latencyLevel: number;
|
||||
videoQualityVariants: VideoVariant[],
|
||||
cpuUsageLevel: CpuUsageLevel,
|
||||
videoQualityVariants: VideoVariant[];
|
||||
cpuUsageLevel: CpuUsageLevel;
|
||||
}
|
||||
|
||||
|
||||
export interface ConfigDetails {
|
||||
ffmpegPath: string;
|
||||
instanceDetails: ConfigInstanceDetailsFields;
|
||||
|
||||
Reference in New Issue
Block a user