mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
Improve typings in FormInputGroup
(cherry picked from commit 6838f068bcd04b770cd9c53873f160be97ea745f)
This commit is contained in:
@@ -5,7 +5,7 @@ import EnhancedSelectInput, {
|
||||
EnhancedSelectInputValue,
|
||||
} from './EnhancedSelectInput';
|
||||
|
||||
interface AvailabilitySelectInputProps
|
||||
export interface AvailabilitySelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<EnhancedSelectInputValue<string>, string>,
|
||||
'values'
|
||||
|
||||
@@ -51,7 +51,7 @@ function createDownloadClientsSelector(
|
||||
);
|
||||
}
|
||||
|
||||
interface DownloadClientSelectInputProps
|
||||
export interface DownloadClientSelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<EnhancedSelectInputValue<number>, number>,
|
||||
'values'
|
||||
|
||||
@@ -30,7 +30,7 @@ const selectIndexerFlagsValues = (selectedFlags: number) =>
|
||||
}
|
||||
);
|
||||
|
||||
interface IndexerFlagsSelectInputProps {
|
||||
export interface IndexerFlagsSelectInputProps {
|
||||
name: string;
|
||||
indexerFlags: number;
|
||||
onChange(payload: EnhancedSelectInputChanged<number>): void;
|
||||
|
||||
@@ -38,7 +38,7 @@ function createIndexersSelector(includeAny: boolean) {
|
||||
);
|
||||
}
|
||||
|
||||
interface IndexerSelectInputProps {
|
||||
export interface IndexerSelectInputProps {
|
||||
name: string;
|
||||
value: number;
|
||||
includeAny?: boolean;
|
||||
|
||||
@@ -4,7 +4,7 @@ import EnhancedSelectInput, {
|
||||
EnhancedSelectInputValue,
|
||||
} from './EnhancedSelectInput';
|
||||
|
||||
interface LanguageSelectInputProps {
|
||||
export interface LanguageSelectInputProps {
|
||||
name: string;
|
||||
value: number;
|
||||
values: EnhancedSelectInputValue<number>[];
|
||||
|
||||
@@ -6,7 +6,7 @@ import EnhancedSelectInput, {
|
||||
EnhancedSelectInputValue,
|
||||
} from './EnhancedSelectInput';
|
||||
|
||||
interface MonitorMoviesSelectInputProps
|
||||
export interface MonitorMoviesSelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<EnhancedSelectInputValue<string>, string>,
|
||||
'values'
|
||||
|
||||
@@ -69,7 +69,7 @@ function createProviderOptionsSelector(
|
||||
);
|
||||
}
|
||||
|
||||
interface ProviderOptionSelectInputProps
|
||||
export interface ProviderOptionSelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<EnhancedSelectInputValue<unknown>, unknown>,
|
||||
'values'
|
||||
|
||||
@@ -56,7 +56,7 @@ function createQualityProfilesSelector(
|
||||
);
|
||||
}
|
||||
|
||||
interface QualityProfileSelectInputProps
|
||||
export interface QualityProfileSelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<
|
||||
EnhancedSelectInputValue<number | string>,
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface RootFolderSelectInputValue
|
||||
isMissing?: boolean;
|
||||
}
|
||||
|
||||
interface RootFolderSelectInputProps
|
||||
export interface RootFolderSelectInputProps
|
||||
extends Omit<
|
||||
EnhancedSelectInputProps<EnhancedSelectInputValue<string>, string>,
|
||||
'value' | 'values'
|
||||
|
||||
@@ -66,7 +66,7 @@ function formatPermissions(permissions: number) {
|
||||
return result;
|
||||
}
|
||||
|
||||
interface UMaskInputProps {
|
||||
export interface UMaskInputProps {
|
||||
name: string;
|
||||
value: string;
|
||||
hasError?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user