Update to Typescript 7 (#39987)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2026-08-10 12:51:10 +00:00
1 parent 6844f4009a
commit ecf9d23752
18 files changed
+397 -167

No files matched your search

@@ -89,10 +89,10 @@ export function useSearchTags({
}, []);
// Add dedicated item for adding the current query
const tags = useMemo(() => {
const tags = useMemo((): TagSearchResult[] => {
const trimmedQuery = query ? trimHashFromStart(query.trim()) : '';
if (!trimmedQuery) {
return fetchedTags as TagSearchResult[];
return fetchedTags;
}
const results: TagSearchResult[] = [...fetchedTags]; // Make array mutable