From 0e67d68fdd4e0f62dfd5679abf880713c6fdc39e Mon Sep 17 00:00:00 2001 From: Fabio Spampinato Date: Mon, 1 Jun 2020 08:45:07 +0100 Subject: [PATCH] Ensure TypeScript generics are propagated to options (#21) --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 800da98..fa58889 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ declare namespace QuickLRU { - interface Options { + interface Options { /** The maximum number of items before evicting the least recently used items. */ @@ -10,7 +10,7 @@ declare namespace QuickLRU { Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`). */ - onEviction?: (key: KeyType, value: ValueType) => void; + onEviction?: (key: KeyType, value: ValueType) => void; } } @@ -41,7 +41,7 @@ declare class QuickLRU //=> '🌈' ``` */ - constructor(options: QuickLRU.Options); + constructor(options: QuickLRU.Options); [Symbol.iterator](): IterableIterator<[KeyType, ValueType]>;