Skip to content

Commit 8aaea4b

Browse files
committed
bump
1 parent 9408876 commit 8aaea4b

File tree

7 files changed

+377
-150
lines changed

7 files changed

+377
-150
lines changed

.api-reports/api-report-core.api.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -857,27 +857,28 @@ export type RefetchQueriesInclude = RefetchQueryDescriptor[] | RefetchQueriesInc
857857
// @public (undocumented)
858858
type RefetchQueriesIncludeShorthand = "all" | "active";
859859

860-
// @public (undocumented)
860+
// @public
861861
export interface RefetchQueriesOptions<TCache extends ApolloCache, TResult> {
862-
// (undocumented)
863862
include?: RefetchQueriesInclude;
864-
// (undocumented)
865863
onQueryUpdated?: OnQueryUpdated<TResult> | null;
866-
// (undocumented)
867864
optimistic?: boolean;
868-
// (undocumented)
869865
updateCache?: (cache: TCache) => void;
870866
}
871867

872868
// @public (undocumented)
873869
export type RefetchQueriesPromiseResults<TResult> = IsAny<TResult> extends true ? any[] : TResult extends boolean ? QueryResult<any>[] : TResult extends PromiseLike<infer U> ? U[] : TResult[];
874870

871+
// @public
872+
export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>>, RefetchQueriesResult.AdditionalProperties<TResult> {
873+
}
874+
875875
// @public (undocumented)
876-
export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>> {
876+
export namespace RefetchQueriesResult {
877877
// (undocumented)
878-
queries: ObservableQuery<any>[];
879-
// (undocumented)
880-
results: InternalRefetchQueriesResult<TResult>[];
878+
export interface AdditionalProperties<TResult> {
879+
queries: ObservableQuery<any>[];
880+
results: InternalRefetchQueriesResult<TResult>[];
881+
}
881882
}
882883

883884
// @public (undocumented)

.api-reports/api-report-react.api.md

Lines changed: 342 additions & 120 deletions
Large diffs are not rendered by default.

.api-reports/api-report-react_internal.api.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,24 +251,24 @@ export function updateWrappedQueryRef<TData, TStates extends DataState<TData>["d
251251

252252
// @public (undocumented)
253253
interface WrappableHooks {
254+
// Warning: (ae-forgotten-export) The symbol "FunctionSignature" needs to be exported by the entry point index.d.ts
255+
//
254256
// (undocumented)
255-
createQueryPreloader: typeof createQueryPreloader;
257+
createQueryPreloader: FunctionSignature<typeof createQueryPreloader>;
256258
// (undocumented)
257-
useBackgroundQuery: typeof useBackgroundQuery;
259+
useBackgroundQuery: FunctionSignature<typeof useBackgroundQuery>;
258260
// (undocumented)
259-
useFragment: typeof useFragment;
260-
// Warning: (ae-forgotten-export) The symbol "FunctionSignature" needs to be exported by the entry point index.d.ts
261-
//
261+
useFragment: FunctionSignature<typeof useFragment>;
262262
// (undocumented)
263263
useQuery: FunctionSignature<typeof useQuery>;
264264
// (undocumented)
265-
useQueryRefHandlers: typeof useQueryRefHandlers;
265+
useQueryRefHandlers: FunctionSignature<typeof useQueryRefHandlers>;
266266
// (undocumented)
267-
useReadQuery: typeof useReadQuery;
267+
useReadQuery: FunctionSignature<typeof useReadQuery>;
268268
// (undocumented)
269-
useSuspenseFragment: typeof useSuspenseFragment;
269+
useSuspenseFragment: FunctionSignature<typeof useSuspenseFragment>;
270270
// (undocumented)
271-
useSuspenseQuery: typeof useSuspenseQuery;
271+
useSuspenseQuery: FunctionSignature<typeof useSuspenseQuery>;
272272
}
273273

274274
// @internal @deprecated

.api-reports/api-report-utilities_internal.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ export namespace DocumentationTypes {
164164
// (undocumented)
165165
subscribe(observer: Partial<Observer<ApolloQueryResult<MaybeMasked<TData>>>> | ((value: ApolloQueryResult<MaybeMasked<TData>>) => void)): Subscription;
166166
}
167+
// (undocumented)
168+
export interface VariableOptions<TVariables> {
169+
variables?: TVariables;
170+
}
167171
}
168172

169173
// @public (undocumented)

.api-reports/api-report.api.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2321,27 +2321,28 @@ export type RefetchQueriesInclude = RefetchQueryDescriptor[] | RefetchQueriesInc
23212321
// @public (undocumented)
23222322
type RefetchQueriesIncludeShorthand = "all" | "active";
23232323

2324-
// @public (undocumented)
2324+
// @public
23252325
export interface RefetchQueriesOptions<TCache extends ApolloCache, TResult> {
2326-
// (undocumented)
23272326
include?: RefetchQueriesInclude;
2328-
// (undocumented)
23292327
onQueryUpdated?: OnQueryUpdated<TResult> | null;
2330-
// (undocumented)
23312328
optimistic?: boolean;
2332-
// (undocumented)
23332329
updateCache?: (cache: TCache) => void;
23342330
}
23352331

23362332
// @public (undocumented)
23372333
export type RefetchQueriesPromiseResults<TResult> = IsAny<TResult> extends true ? any[] : TResult extends boolean ? QueryResult<any>[] : TResult extends PromiseLike<infer U> ? U[] : TResult[];
23382334

2335+
// @public
2336+
export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>>, RefetchQueriesResult.AdditionalProperties<TResult> {
2337+
}
2338+
23392339
// @public (undocumented)
2340-
export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>> {
2340+
export namespace RefetchQueriesResult {
23412341
// (undocumented)
2342-
queries: ObservableQuery<any>[];
2343-
// (undocumented)
2344-
results: InternalRefetchQueriesResult<TResult>[];
2342+
export interface AdditionalProperties<TResult> {
2343+
queries: ObservableQuery<any>[];
2344+
results: InternalRefetchQueriesResult<TResult>[];
2345+
}
23452346
}
23462347

23472348
// @public (undocumented)

docs/source/api/react/useReactiveVar.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ description: Apollo Client API reference
55

66
{/** @import {MDXProvidedComponents} from '../../../shared/MdxProvidedComponents.js' */}
77

8-
98
<FunctionDetails canonicalReference="@apollo/client!useReactiveVar:function(1)" headingLevel={2} />

src/core/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ export type RefetchQueriesPromiseResults<TResult> =
274274
/**
275275
* The result of client.refetchQueries is thenable/awaitable, if you just want
276276
* an array of fully resolved results, but you can also access the raw results
277-
* immediately by examining the additional { queries, results } properties of
278-
* the RefetchQueriesResult<TResult> object.
277+
* immediately by examining the additional `queries` and `results` properties of
278+
* the `RefetchQueriesResult<TResult> object`.
279279
*/
280280
export interface RefetchQueriesResult<TResult>
281281
extends Promise<RefetchQueriesPromiseResults<TResult>>,

0 commit comments

Comments
 (0)