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: ReadonlyCollection<Key, Value>, reason: string]

ignore : [Value, ...Extras]