export interface LimitedCollectionOptions<Key, Value>
Options for defining the behavior of a LimitedCollection
Type Parameters
Key
Value
optional(value: Value, key: Key, collection: LimitedCollection<Key, Value>) => boolean keepOverLimit? :
A function, which is passed the value and key of an entry, ran to decide to keep an entry past the maximum size
optionalnumber maxSize? :
The maximum size of the Collection (default: Infinity)