Skip to content

Commit

Permalink
Add missing name to tuple member (fix TS5084) (#11877)
Browse files Browse the repository at this point in the history
* Add missing name to tuple member (fix TS5084)

* Update src/react/hooks/useLoadableQuery.ts

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: phryneas <[email protected]>
  • Loading branch information
phryneas and phryneas authored Jun 7, 2024
1 parent 45055d0 commit 634d91a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .api-reports/api-report-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ export function useLoadableQuery<TData = unknown, TVariables extends OperationVa
export type UseLoadableQueryResult<TData = unknown, TVariables extends OperationVariables = OperationVariables> = [
loadQuery: LoadQueryFunction<TVariables>,
queryRef: QueryRef<TData, TVariables> | null,
{
handlers: {
fetchMore: FetchMoreFunction<TData, TVariables>;
refetch: RefetchFunction<TData, TVariables>;
reset: ResetFunction;
Expand Down
2 changes: 1 addition & 1 deletion .api-reports/api-report-react_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ export function useLoadableQuery<TData = unknown, TVariables extends OperationVa
export type UseLoadableQueryResult<TData = unknown, TVariables extends OperationVariables = OperationVariables> = [
loadQuery: LoadQueryFunction<TVariables>,
queryRef: QueryRef<TData, TVariables> | null,
{
handlers: {
fetchMore: FetchMoreFunction<TData, TVariables>;
refetch: RefetchFunction<TData, TVariables>;
reset: ResetFunction;
Expand Down
2 changes: 1 addition & 1 deletion .api-reports/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@ export function useLoadableQuery<TData = unknown, TVariables extends OperationVa
export type UseLoadableQueryResult<TData = unknown, TVariables extends OperationVariables = OperationVariables> = [
loadQuery: LoadQueryFunction<TVariables>,
queryRef: QueryRef<TData, TVariables> | null,
{
handlers: {
fetchMore: FetchMoreFunction<TData, TVariables>;
refetch: RefetchFunction<TData, TVariables>;
reset: ResetFunction;
Expand Down
5 changes: 5 additions & 0 deletions .changeset/sharp-cats-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Add missing name to tuple member (fix TS5084)
2 changes: 1 addition & 1 deletion src/react/hooks/useLoadableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type UseLoadableQueryResult<
> = [
loadQuery: LoadQueryFunction<TVariables>,
queryRef: QueryRef<TData, TVariables> | null,
{
handlers: {
/** {@inheritDoc @apollo/client!QueryResultDocumentation#fetchMore:member} */
fetchMore: FetchMoreFunction<TData, TVariables>;
/** {@inheritDoc @apollo/client!QueryResultDocumentation#refetch:member} */
Expand Down

0 comments on commit 634d91a

Please sign in to comment.