Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(types): restore strict query inference and test mock casts

3 months ago

b6adba7
Authored
asta-nguyen8/11/2026, 4:10:56 PM
Add explicit type parameters to all queryOptions calls in queries.ts
so TanStack Query infers typed data for every route consumer. Fix the
memories route to spread queryOpts directly instead of casting the
queryKey. Change test-only fetch mocks from `as typeof fetch` to
`as unknown as typeof fetch` to satisfy strict conversion checking
without weakening production types.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parent6ed9959

3 files changed
  • apps/web/src/lib/queries.ts+27−10
  • apps/web/src/routes/memories.tsx+2−8
  • tests/local-embedding.test.ts+3−3