interface CollectorEventTypes

export interface CollectorEventTypes<Key, Value, Extras extends unknown[] = []>

Type Parameters

Key

Value

optional
Extras? extends unknown[] = []

collect : [Value, ...Extras]

dispose : [Value, ...Extras]

end : [collected: Collection<Key, Value>, reason: string]

ignore : [Value, ...Extras]