From 79f09921072effd71b3c33d3bc70c252589ceebe Mon Sep 17 00:00:00 2001 From: Huan LI Date: Wed, 30 May 2018 11:52:25 +0800 Subject: [PATCH] add the missing `key` arg for `length()` --- types/lru-cache/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lru-cache/index.d.ts b/types/lru-cache/index.d.ts index 5a6c9c9e4f..ed40619b11 100644 --- a/types/lru-cache/index.d.ts +++ b/types/lru-cache/index.d.ts @@ -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.