fix null undefined types

This commit is contained in:
Simon
2025-01-09 23:59:29 +07:00
parent f6b5de00df
commit bf38cdc7f0
5 changed files with 534 additions and 520 deletions

View File

@@ -2,27 +2,27 @@ import APIClient from '../../functions/APIClient';
export type AppSettingsConfigType = {
subscriptions: {
channel_size: number;
live_channel_size: number;
shorts_channel_size: number;
channel_size: number | null;
live_channel_size: number | null;
shorts_channel_size: number | null;
auto_start: boolean;
};
downloads: {
limit_speed: number | undefined;
sleep_interval: number;
autodelete_days: number;
format: string | undefined;
format_sort: string | undefined;
limit_speed: number | null;
sleep_interval: number | null;
autodelete_days: number | null;
format: string | null;
format_sort: string | null;
add_metadata: boolean;
add_thumbnail: boolean;
subtitle: string | undefined;
subtitle_source: boolean | string;
subtitle: string | null;
subtitle_source: string | null;
subtitle_index: boolean;
comment_max: string | undefined;
comment_max: string | null;
comment_sort: string;
cookie_import: boolean;
throttledratelimit: number | undefined;
extractor_lang: string | undefined;
throttledratelimit: number | null;
extractor_lang: string | null;
integrate_ryd: boolean;
integrate_sponsorblock: boolean;
};