Type Alias TreeMapEntryCallback<K, V, R, SELF>

TreeMapEntryCallback<K, V, R, SELF>: ((value: V | undefined, key: K, index: number, map: SELF) => R)

Callback used by TreeMap entry-wise utilities.

SELF is intentionally generic to avoid type-layer circular imports. Implementations (e.g. TreeMap<K, V>) should bind SELF at use sites.

Type Parameters

  • K
  • V
  • R
  • SELF