Skip to content

Commit 75c88df

Browse files
author
David Dios
committed
update TypeScript definition
1 parent d5ed34f commit 75c88df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tiny-lru.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ declare module "tiny-lru" {
22
class Lru<T = any> {
33
constructor(max?: number, ttl?: number);
44

5+
public max: number;
6+
public ttl: number;
7+
public size: boolean;
8+
public first: T | null;
9+
public last: T | null;
10+
511
public has(key: string): boolean;
612
public get(key: string): T | undefined;
713
public set(key: string, value: T, bypass?: boolean): this;

0 commit comments

Comments
 (0)