Skip to content

Commit 7074f50

Browse files
committed
docs(changeset): Fix incorrect overload order in ServiceOperationUseQuery and ServiceOperationUseInfiniteQuery interfaces. The overloads were swapped, causing TypeScript to incorrectly infer return types. Now the first overload correctly handles cases with initialData (returns DefinedUseQueryResult), and the second handles cases without it (returns UseQueryResult).
1 parent 45dfa8f commit 7074f50

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/deep-boxes-tan.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@openapi-qraft/tanstack-query-react-types': patch
3+
'@openapi-qraft/tanstack-query-react-plugin': patch
4+
---
5+
6+
Fix incorrect overload order in `ServiceOperationUseQuery` and `ServiceOperationUseInfiniteQuery` interfaces. The overloads were swapped, causing TypeScript to incorrectly infer return types. Now the first overload correctly handles cases with `initialData` (returns `DefinedUseQueryResult`), and the second handles cases without it (returns `UseQueryResult`).

0 commit comments

Comments
 (0)