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 eabeb51 commit 4322e74Copy full SHA for 4322e74
index.d.ts
@@ -1,14 +1,14 @@
1
declare interface Options {
2
- max?: number;
3
- maxAge?: number;
4
- stale?: boolean;
+ max?: number;
+ maxAge?: number;
+ stale?: boolean;
5
}
6
7
declare class Cache<K, V> extends Map<K, V> {
8
- constructor(options?: Options | number);
9
- get(key: K, refresh?: boolean): V | undefined;
10
- peek(key: K): V | undefined;
11
- set(key: K, value: V, maxAge?: number): this;
+ constructor(options?: Options | number);
+ get(key: K, refresh?: boolean): V | undefined;
+ peek(key: K): V | undefined;
+ set(key: K, value: V, maxAge?: number): this;
12
13
14
export = Cache;
0 commit comments