feat: collections - export interfaces for class extending

This commit is contained in:
Yaikava
2021-12-08 15:32:42 +01:00
committed by GitHub
parent 6d1f682538
commit 4ab24b111c
+2 -2
View File
@@ -129,12 +129,12 @@ export class Collection<K, V> extends Map<K, V> {
}
}
interface CollectionOptions<K, V> {
export interface CollectionOptions<K, V> {
sweeper?: CollectionSweeper<K, V>;
maxSize?: number;
}
interface CollectionSweeper<K, V> {
export interface CollectionSweeper<K, V> {
/** The filter to determine whether an element should be deleted or not */
filter: (value: V, key: K, ...args: any[]) => boolean;
/** The interval in which the sweeper should run */