Skip to content

Commit

Permalink
Merge pull request #33 from fox1t/master
Browse files Browse the repository at this point in the history
Adds factory function to typings
  • Loading branch information
avoidwork committed Oct 31, 2019
2 parents 521bb55 + 8797da5 commit c3d4a46
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 c3d4a46

Please sign in to comment.