1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

Improve typings in FormInputGroup

This commit is contained in:
Mark McDowall
2025-01-03 09:47:17 -08:00
parent b218461678
commit 6838f068bc
44 changed files with 321 additions and 281 deletions
@@ -12,20 +12,20 @@ interface LanguageSelectInputOnChangeProps {
value: number | string | Language;
}
interface LanguageSelectInputProps {
export interface LanguageSelectInputProps {
name: string;
value: number | string | Language;
includeNoChange: boolean;
includeNoChange?: boolean;
includeNoChangeDisabled?: boolean;
includeMixed: boolean;
includeMixed?: boolean;
onChange: (payload: LanguageSelectInputOnChangeProps) => void;
}
export default function LanguageSelectInput({
value,
includeNoChange,
includeNoChange = false,
includeNoChangeDisabled,
includeMixed,
includeMixed = false,
onChange,
...otherProps
}: LanguageSelectInputProps) {