From 4ab24b111c85d09e5e4426e4315c7092d0c6a554 Mon Sep 17 00:00:00 2001 From: Yaikava <83710104+Yaikava@users.noreply.github.com> Date: Wed, 8 Dec 2021 15:32:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20collections=20-=20export=20?= =?UTF-8?q?interfaces=20for=20class=20extending?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/collection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/collection.ts b/src/util/collection.ts index 79af9ef80..2a98de938 100644 --- a/src/util/collection.ts +++ b/src/util/collection.ts @@ -129,12 +129,12 @@ export class Collection extends Map { } } -interface CollectionOptions { +export interface CollectionOptions { sweeper?: CollectionSweeper; maxSize?: number; } -interface CollectionSweeper { +export interface CollectionSweeper { /** 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 */