@types/lru-cache
Advanced tools
Comparing version 7.4.0 to 7.5.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for lru-cache 7.4 | ||
// Type definitions for lru-cache 7.5 | ||
// Project: https://github.com/isaacs/node-lru-cache | ||
@@ -9,3 +9,3 @@ // Definitions by: Bart van der Schoor <https://github.com/Bartvds> | ||
declare class LRUCache<K, V> implements Iterable<[K, V]> { | ||
constructor(options?: LRUCache.Options<K, V>); | ||
constructor(options: LRUCache.Options<K, V>); | ||
@@ -104,3 +104,4 @@ /** | ||
/** | ||
* Return a generator yielding the keys in the cache. | ||
* Return a generator yielding the keys in the cache, | ||
* in order from most recently used to least recently used. | ||
*/ | ||
@@ -110,11 +111,31 @@ keys(): Generator<K>; | ||
/** | ||
* Return a generator yielding [key, value] pairs. | ||
* Return a generator yielding the keys in the cache, | ||
* in order from least recently used to most recently used. | ||
*/ | ||
rkeys(): Generator<K>; | ||
/** | ||
* Return a generator yielding the values in the cache, | ||
* in order from most recently used to least recently used. | ||
*/ | ||
values(): Generator<V>; | ||
/** | ||
* Return an array of the entries in the cache. | ||
* Return a generator yielding the values in the cache, | ||
* in order from least recently used to most recently used. | ||
*/ | ||
rvalues(): Generator<V>; | ||
/** | ||
* Return a generator yielding `[key, value]` pairs, | ||
* in order from most recently used to least recently used. | ||
*/ | ||
entries(): Generator<[K, V]>; | ||
/** | ||
* Return a generator yielding `[key, value]` pairs, | ||
* in order from least recently used to most recently used. | ||
*/ | ||
rentries(): Generator<[K, V]>; | ||
[Symbol.iterator](): Iterator<[K, V]>; | ||
@@ -121,0 +142,0 @@ |
{ | ||
"name": "@types/lru-cache", | ||
"version": "7.4.0", | ||
"version": "7.5.0", | ||
"description": "TypeScript definitions for lru-cache", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lru-cache", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "8d213ce8de5a5b4ef35693ff4826d605e1cd328af7fc776964a345d3c5898edc", | ||
"typeScriptVersion": "3.8" | ||
"typesPublisherContentHash": "fa37136c1ffa5c8ed262e0ddd15faf5f262606e7d3b1f9a7920d32f9c0ba15e9", | ||
"typeScriptVersion": "3.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 23 Feb 2022 18:31:55 GMT | ||
* Last updated: Thu, 17 Mar 2022 20:31:47 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15741
328
0