Merge pull request #26135 from zixia/zixia-patch-lru-cache

add the missing `key` arg for `length()`
This commit is contained in:
Armando Aguirre
2018-06-05 18:16:54 -07:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ declare namespace LRU {
* `max` like-sized things. The item is passed as the first argument,
* and the key is passed as the second argument.
*/
length?(value: V): number;
length?(value: V, key?: K): number;
/**
* Function that is called on items when they are dropped from the cache.