Skip to content

Commit

Permalink
fix(ts): loosen default cache value
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Feb 12, 2024
1 parent 5111248 commit 7869a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type Eventually<Value> =
| undefined
| Promise<Value | null | undefined>;

export interface Cache<Value = unknown> {
export interface Cache<Value = any> {
name?: string;
get: (key: string) => Eventually<CacheEntry<Value>>;
set: (key: string, value: CacheEntry<Value>) => unknown | Promise<unknown>;
Expand Down

0 comments on commit 7869a34

Please sign in to comment.