Type Alias Disposer<K, V>

Disposer<K, V>: ((value: V, key: K, reason: DisposeReason) => void)

A method called upon item removal, passed as the OptionsBase.dispose and/or OptionsBase.disposeAfter options.

Type Parameters

  • K
  • V