Massive ts error cleanup

This commit is contained in:
Rishi Ghan
2026-04-15 13:30:28 -04:00
parent 0c363dd8ae
commit 3ea9b83ed9
59 changed files with 21787 additions and 1581 deletions

View File

@@ -7,10 +7,17 @@ import { searchIssue } from "../../actions/fileops.actions";
import MetadataPanel from "../shared/MetadataPanel";
import type { GlobalSearchBarProps } from "../../types";
interface AppRootState {
fileOps: {
librarySearchResultsFormatted: Record<string, unknown>[];
};
}
export const SearchBar = (data: GlobalSearchBarProps): ReactElement => {
const dispatch = useDispatch();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const dispatch = useDispatch<any>();
const searchResults = useSelector(
(state: RootState) => state.fileOps.librarySearchResultsFormatted,
(state: AppRootState) => state.fileOps.librarySearchResultsFormatted,
);
const performSearch = useCallback(