Skip to content

Commit

Permalink
Fixed another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ktaeyln committed Mar 23, 2018
1 parent de31417 commit bb3ce0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ npm install lru-weak-cache
```

```typescript
declare interface CacheGenerator<V extends Object> {
declare interface CacheGenerator<V extends object> {
(key: string, callback: (err: Error, value?: V) => void): void;
}
declare interface CacheMultiGenerator<V extends Object> {
declare interface CacheMultiGenerator<V extends object> {
(keys: string[], callback: (err: Error, ret?: {[key: string]: V}) => void): void;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lru-weak-cache",
"version": "0.2.2",
"version": "0.2.3",
"description": "A caching Map<string, V extends object> that deletes the least-recently-used items with weak references and async generation. Inspired by [lru-cache](https://www.npmjs.com/package/lru-cache).",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// <reference types="node" />

export interface CacheGenerator<V extends Object> {
export interface CacheGenerator<V extends object> {
(key: string, callback: (err: Error, value?: V) => void): void;
}
export interface CacheMultiGenerator<V extends Object> {
export interface CacheMultiGenerator<V extends object> {
(keys: string[], callback: (err: Error, ret?: {[key: string]: V}) => void): void;
}

Expand Down

0 comments on commit bb3ce0c

Please sign in to comment.