Skip to content

Commit 1f0460a

Browse files
authored
Allow undefined as return value from cache.modify modifier function (#11911)
1 parent 7111de2 commit 1f0460a

17 files changed

+32
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ export type MissingTree = string | {
741741
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
742742
//
743743
// @public (undocumented)
744-
export type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
744+
export type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
745745

746746
// @public (undocumented)
747747
export type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ type MissingTree = string | {
13541354
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
13551355
//
13561356
// @public (undocumented)
1357-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
1357+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
13581358

13591359
// @public (undocumented)
13601360
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ type MissingTree = string | {
10781078
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
10791079
//
10801080
// @public (undocumented)
1081-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
1081+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
10821082

10831083
// @public (undocumented)
10841084
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ type MissingTree = string | {
938938
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
939939
//
940940
// @public (undocumented)
941-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
941+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
942942

943943
// @public (undocumented)
944944
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ type MissingTree = string | {
939939
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
940940
//
941941
// @public (undocumented)
942-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
942+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
943943

944944
// @public (undocumented)
945945
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ type MissingTree = string | {
946946
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
947947
//
948948
// @public (undocumented)
949-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
949+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
950950

951951
// @public (undocumented)
952952
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ type MissingTree = string | {
10271027
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
10281028
//
10291029
// @public (undocumented)
1030-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
1030+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
10311031

10321032
// @public (undocumented)
10331033
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ type MissingTree = string | {
10351035
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
10361036
//
10371037
// @public (undocumented)
1038-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
1038+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
10391039

10401040
// @public (undocumented)
10411041
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ type MissingTree = string | {
924924
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
925925
//
926926
// @public (undocumented)
927-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
927+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
928928

929929
// @public (undocumented)
930930
type ModifierDetails = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ export class MockSubscriptionLink extends ApolloLink {
10451045
// Warning: (ae-forgotten-export) The symbol "InvalidateModifier" needs to be exported by the entry point index.d.ts
10461046
//
10471047
// @public (undocumented)
1048-
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier;
1048+
type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
10491049

10501050
// @public (undocumented)
10511051
type ModifierDetails = {

0 commit comments

Comments
 (0)