diff --git a/.api-reports/api-report-core.md b/.api-reports/api-report-core.md index c5d9202d915..29a4f1286af 100644 --- a/.api-reports/api-report-core.md +++ b/.api-reports/api-report-core.md @@ -1316,14 +1316,12 @@ interface MutationBaseOptions; +export type MutationFetchPolicy = Extract; // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts // // @public (undocumented) export interface MutationOptions = ApolloCache> extends MutationBaseOptions { - // Warning: (ae-forgotten-export) The symbol "MutationFetchPolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) fetchPolicy?: MutationFetchPolicy; // (undocumented) @@ -1916,7 +1914,7 @@ export interface RefetchQueriesResult extends Promise Observable | null; @@ -2146,8 +2144,6 @@ export interface WatchQueryOptions, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext) => WatchQueryFetchPolicy); - // Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) refetchWritePolicy?: RefetchWritePolicy; } diff --git a/.api-reports/api-report.md b/.api-reports/api-report.md index c73cfb60ec7..231d1ada070 100644 --- a/.api-reports/api-report.md +++ b/.api-reports/api-report.md @@ -1580,7 +1580,7 @@ export interface MutationDataOptions; +export type MutationFetchPolicy = Extract; // @public (undocumented) export type MutationFunction = ApolloCache> = (options?: MutationFunctionOptions) => Promise>; @@ -1599,8 +1599,6 @@ export interface MutationHookOptions = ApolloCache> extends MutationBaseOptions { - // Warning: (ae-forgotten-export) The symbol "MutationFetchPolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) fetchPolicy?: MutationFetchPolicy; // (undocumented) @@ -2334,7 +2332,7 @@ export interface RefetchQueriesResult extends Promise, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext) => WatchQueryFetchPolicy); - // Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) refetchWritePolicy?: RefetchWritePolicy; } diff --git a/.changeset/ninety-suits-flash.md b/.changeset/ninety-suits-flash.md new file mode 100644 index 00000000000..bba930c377e --- /dev/null +++ b/.changeset/ninety-suits-flash.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Add missed reexports of MutationFetchPolicy and RefetchWritePolicy to @apollo/client/core diff --git a/src/core/index.ts b/src/core/index.ts index 72340d689d7..5757cdb2071 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -14,6 +14,8 @@ export type { SubscriptionOptions, FetchPolicy, WatchQueryFetchPolicy, + MutationFetchPolicy, + RefetchWritePolicy, ErrorPolicy, FetchMoreQueryOptions, SubscribeToMoreOptions,