mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import AppSectionState, {
|
|
AppSectionDeleteState,
|
|
AppSectionItemState,
|
|
AppSectionSaveState,
|
|
} from 'App/State/AppSectionState';
|
|
import DownloadClient from 'typings/DownloadClient';
|
|
import ImportList from 'typings/ImportList';
|
|
import Indexer from 'typings/Indexer';
|
|
import IndexerFlag from 'typings/IndexerFlag';
|
|
import Notification from 'typings/Notification';
|
|
import General from 'typings/Settings/General';
|
|
import UiSettings from 'typings/Settings/UiSettings';
|
|
|
|
export interface DownloadClientAppState
|
|
extends AppSectionState<DownloadClient>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {}
|
|
|
|
export type GeneralAppState = AppSectionItemState<General>;
|
|
|
|
export interface ImportListAppState
|
|
extends AppSectionState<ImportList>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {}
|
|
|
|
export interface IndexerAppState
|
|
extends AppSectionState<Indexer>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {}
|
|
|
|
export interface NotificationAppState
|
|
extends AppSectionState<Notification>,
|
|
AppSectionDeleteState {}
|
|
|
|
export type IndexerFlagSettingsAppState = AppSectionState<IndexerFlag>;
|
|
export type UiSettingsAppState = AppSectionState<UiSettings>;
|
|
|
|
interface SettingsAppState {
|
|
downloadClients: DownloadClientAppState;
|
|
general: GeneralAppState;
|
|
importLists: ImportListAppState;
|
|
indexerFlags: IndexerFlagSettingsAppState;
|
|
indexers: IndexerAppState;
|
|
notifications: NotificationAppState;
|
|
ui: UiSettingsAppState;
|
|
}
|
|
|
|
export default SettingsAppState;
|