Using syntax
Take advantage of Typescripts using syntax to automatically dispose of your query when the function is finished executing.
ts
function search(): void {
using catsQuery = await query(searchCats, ['American Shorthair'])
return catsQuery.data
}