Type fixes

This commit is contained in:
Sean Edmunds
2026-01-08 16:12:13 -06:00
parent fd160ede88
commit 3307bcefc9
10 changed files with 212 additions and 165 deletions

View File

@@ -36,12 +36,14 @@ import SearchProviderSettingsItem from './SearchProviderSettingsItem';
const SearchProviderSettings = () => {
const allIcons: any = { ...fa6, ...vsc, ...si };
const defaultProvider = {
const defaultProvider: Provider = {
id: undefined,
name: '',
url: '',
prefix: '',
default: 0,
enabled: 1,
icon: null,
};
const form = useForm({
initialValues: defaultProvider,
@@ -57,7 +59,7 @@ const SearchProviderSettings = () => {
});
const [searchValue, setSearchValue] = useState<string | number>('');
const [debouncedSearch] = useDebouncedValue(searchValue, 500);
const providers =
const providers: Provider[] =
providerData
.filter(
(a: Provider) =>