We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f708b7 commit 063fe55Copy full SHA for 063fe55
src/_internal/types.ts
@@ -518,8 +518,8 @@ export type RevalidateCallback = <K extends RevalidateEvent>(
518
519
export interface Cache<Data = any> {
520
keys(): IterableIterator<string>
521
- get(key: string): State<Data> | undefined
522
- set(key: string, value: State<Data>): void
+ get<T = Data>(key: string): State<T> | undefined
+ set<T = Data>(key: string, value: State<T>): void
523
delete(key: string): void
524
}
525
0 commit comments