Skip to content

Commit

Permalink
Add null as valid return value from read
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 24, 2025
1 parent 659d610 commit 294f707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/inmemory/inMemoryCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {

public read<T>(
options: Cache.ReadOptions & { returnPartialData: true }
): T | DeepPartial<T>;
): T | DeepPartial<T> | null;

public read<T>(options: Cache.ReadOptions): T | null;

Expand Down

0 comments on commit 294f707

Please sign in to comment.