TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
40.53k stars 2.73k forks source link

fix(svelte-query): fix create queries get results type #7427

Closed ap0nia closed 1 month ago

ap0nia commented 1 month ago

Fix

The typeof QueryOptions.queryFn is a union between SkipToken and QueryFunction by default. The GetResults type in react-query seems to handle this, but svelte-query currently omits this.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **query** | ⬜️ Ignored ([Inspect](https://vercel.com/tanstack/query/6iGR6j4Mbw4FRgGcSv9vzLvGPe9X)) | [Visit Preview](https://query-git-fork-ap0nia-fix-create-queries-get-results-tanstack.vercel.app) | | May 14, 2024 4:57pm |
codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

ap0nia commented 1 month ago

Accidentally included a commit from a different feature.