mirror of https://github.com/lidarr/Lidarr
42 lines
767 B
TypeScript
42 lines
767 B
TypeScript
import SettingsAppState from './SettingsAppState';
|
|
import TagsAppState from './TagsAppState';
|
|
|
|
interface FilterBuilderPropOption {
|
|
id: string;
|
|
name: string;
|
|
}
|
|
|
|
export interface FilterBuilderProp<T> {
|
|
name: string;
|
|
label: string;
|
|
type: string;
|
|
valueType?: string;
|
|
optionsSelector?: (items: T[]) => FilterBuilderPropOption[];
|
|
}
|
|
|
|
export interface PropertyFilter {
|
|
key: string;
|
|
value: boolean | string | number | string[] | number[];
|
|
type: string;
|
|
}
|
|
|
|
export interface Filter {
|
|
key: string;
|
|
label: string;
|
|
filers: PropertyFilter[];
|
|
}
|
|
|
|
export interface CustomFilter {
|
|
id: number;
|
|
type: string;
|
|
label: string;
|
|
filers: PropertyFilter[];
|
|
}
|
|
|
|
interface AppState {
|
|
settings: SettingsAppState;
|
|
tags: TagsAppState;
|
|
}
|
|
|
|
export default AppState;
|