type NearestKeyMatch<K,V>
Match between a reference key and the closest key in a [key, value] collection:
key
is the key closest to the reference keyvalue
is the value associated with the closest keydistance
is the distance between the closest key and the reference key; it is always a finite value
Definition
export type NearestKeyMatch<K, V> = Readonly<{
key: K;
value: V;
distance:
Distance
;
}>;