@types/async-cache
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,0 +0,0 @@ // Type definitions for async-cache 1.1 |
{ | ||
"name": "@types/async-cache", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "TypeScript definitions for async-cache", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache", | ||
"license": "MIT", | ||
@@ -9,16 +10,19 @@ "contributors": [ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
"url": "https://github.com/BendingBender", | ||
"githubUsername": "BendingBender" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/async-cache" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/lru-cache": "*" | ||
"@types/lru-cache": "^4" | ||
}, | ||
"typesPublisherContentHash": "c234c3ff19085028886bc68f527fb8f11034bd500a362096a86f020f02b7b9ef", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "29a3c27033b55e05383b94eb7b2e64185b44da656a226795689921aeaecf6e88", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -8,10 +8,48 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache/index.d.ts) | ||
````ts | ||
// Type definitions for async-cache 1.1 | ||
// Project: https://github.com/isaacs/async-cache#readme | ||
// Definitions by: BendingBender <https://github.com/BendingBender> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
Additional Details | ||
* Last updated: Fri, 25 Aug 2017 14:31:50 GMT | ||
* Dependencies: lru-cache | ||
import { Options as LRUOptions } from 'lru-cache'; | ||
export = AsyncCache; | ||
declare const AsyncCache: AsyncCacheFactory; | ||
interface AsyncCacheFactory { | ||
<T>(options: AsyncCache.Options<T>): AsyncCache.Cache<T>; | ||
new <T>(options: AsyncCache.Options<T>): AsyncCache.Cache<T>; | ||
} | ||
declare namespace AsyncCache { | ||
interface Cache<T> { | ||
readonly itemCount: number; | ||
get(key: string, cb: (error: any, value: T) => void): void; | ||
keys(): string[]; | ||
set(key: string, value: T, maxAge?: number): boolean; | ||
reset(): void; | ||
has(key: string): boolean; | ||
del(key: string): void; | ||
peek(key: string): T | undefined; | ||
} | ||
interface Options<T> extends LRUOptions<string, T> { | ||
load(key: string, callback: (error: any, asyncValue: T, maxAge?: number) => void): void; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 23 Feb 2022 18:31:55 GMT | ||
* Dependencies: [@types/lru-cache](https://npmjs.com/package/@types/lru-cache) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by BendingBender <https://github.com/BendingBender>. | ||
These definitions were written by [BendingBender](https://github.com/BendingBender). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4875
0
55
+ Added@types/lru-cache@4.1.3(transitive)
- Removed@types/lru-cache@7.10.10(transitive)
- Removedlru-cache@11.0.2(transitive)
Updated@types/lru-cache@^4