Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
index.d.ts, refs #2
Browse files Browse the repository at this point in the history
  • Loading branch information
silentroach committed Feb 12, 2019
1 parent a993cf1 commit 4d34029
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class ModernLRU<K, V> extends Map<K, V> {
/**
* Cache keys limit in current instance
*/
public readonly limit: number;

constructor(limit: number, initial?: ReadonlyArray<[K, V]> | null);
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"es6"
],
"files": [
"src/*"
"src/*",
"index.d.ts"
],
"author": "Igor Kalashnikov <igor.kalashnikov@me.com>",
"license": "MIT",
Expand Down

0 comments on commit 4d34029

Please sign in to comment.