triplit
triplit copied to clipboard
`moduleResolution` set to `node` causing issues with `useQuery` type inference
Reproduction:
- Create Triplit app via create-triplit-app
- Switch
"moduleResolution"from"bundler"to"node"intsconfig.json App.tsxhas ts compiler error atuseQuery
This does not impact methods on the TriplitClient, it is only the useQuery hook. It appears the schema isnt getting picked up by type inference properly
useQuery<Models<unknown>, never>(client: TriplitClient<Models<unknown>> | WorkerClient<M> ...