From 634d91aeb10ab308b05d5ffb918678806046af09 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 7 Jun 2024 11:21:21 +0200 Subject: [PATCH] Add missing name to tuple member (fix TS5084) (#11877) * 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 --- .api-reports/api-report-react.md | 2 +- .api-reports/api-report-react_hooks.md | 2 +- .api-reports/api-report.md | 2 +- .changeset/sharp-cats-taste.md | 5 +++++ src/react/hooks/useLoadableQuery.ts | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/sharp-cats-taste.md diff --git a/.api-reports/api-report-react.md b/.api-reports/api-report-react.md index 00a986ce9ec..dd2e4bee702 100644 --- a/.api-reports/api-report-react.md +++ b/.api-reports/api-report-react.md @@ -2145,7 +2145,7 @@ export function useLoadableQuery = [ loadQuery: LoadQueryFunction, queryRef: QueryRef | null, - { +handlers: { fetchMore: FetchMoreFunction; refetch: RefetchFunction; reset: ResetFunction; diff --git a/.api-reports/api-report-react_hooks.md b/.api-reports/api-report-react_hooks.md index d530450d98b..22d2d73624c 100644 --- a/.api-reports/api-report-react_hooks.md +++ b/.api-reports/api-report-react_hooks.md @@ -1973,7 +1973,7 @@ export function useLoadableQuery = [ loadQuery: LoadQueryFunction, queryRef: QueryRef | null, - { +handlers: { fetchMore: FetchMoreFunction; refetch: RefetchFunction; reset: ResetFunction; diff --git a/.api-reports/api-report.md b/.api-reports/api-report.md index 632f1f0976d..b3eb3f71625 100644 --- a/.api-reports/api-report.md +++ b/.api-reports/api-report.md @@ -2808,7 +2808,7 @@ export function useLoadableQuery = [ loadQuery: LoadQueryFunction, queryRef: QueryRef | null, - { +handlers: { fetchMore: FetchMoreFunction; refetch: RefetchFunction; reset: ResetFunction; diff --git a/.changeset/sharp-cats-taste.md b/.changeset/sharp-cats-taste.md new file mode 100644 index 00000000000..6d2946fe28d --- /dev/null +++ b/.changeset/sharp-cats-taste.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Add missing name to tuple member (fix TS5084) diff --git a/src/react/hooks/useLoadableQuery.ts b/src/react/hooks/useLoadableQuery.ts index 00249b08e76..01a95a630ec 100644 --- a/src/react/hooks/useLoadableQuery.ts +++ b/src/react/hooks/useLoadableQuery.ts @@ -44,7 +44,7 @@ export type UseLoadableQueryResult< > = [ loadQuery: LoadQueryFunction, queryRef: QueryRef | null, - { + handlers: { /** {@inheritDoc @apollo/client!QueryResultDocumentation#fetchMore:member} */ fetchMore: FetchMoreFunction; /** {@inheritDoc @apollo/client!QueryResultDocumentation#refetch:member} */