Skip to content

Commit

Permalink
chore(types): spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Sep 8, 2020
1 parent eabeb51 commit 4322e74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
declare interface Options {
max?: number;
maxAge?: number;
stale?: boolean;
max?: number;
maxAge?: number;
stale?: boolean;
}

declare class Cache<K, V> extends Map<K, V> {
constructor(options?: Options | number);
get(key: K, refresh?: boolean): V | undefined;
peek(key: K): V | undefined;
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;
}

export = Cache;

0 comments on commit 4322e74

Please sign in to comment.