Skip to content

Commit

Permalink
Adds factory function to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
fox1t committed Oct 31, 2019
1 parent 521bb55 commit 8797da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiny-lru.d.ts
@@ -1,5 +1,5 @@
declare module "tiny-lru" {
export class Lru<T = any> {
class Lru<T = any> {
constructor(max?: number, ttl?: number);

public has(key: string): boolean;
Expand All @@ -10,5 +10,5 @@ declare module "tiny-lru" {
public evict(): this;
public keys(): string[];
}
export default Lru;
export default function factory<T = any>(max?: number, ttl?: number): Lru<T>;
}

0 comments on commit 8797da5

Please sign in to comment.