Type alias Entry<Key, Value>

Entry<Key, Value>: readonly [key: Key, value: Value]

Entry couple [key, value].


It is a tuple of two elements, the first one being the key and the second one being the value of an object's property.


const entry: Entry<string, number> = ["🟢", 1];

Type Parameters

  • Key = PropertyKey

    Object's properties type.

  • Value = unknown

    Object's values type.