Type alias EntryOf<Input>

EntryOf<Input>: Entry<KeyOf<Input>, ValueOf<Input>>

Object or array Entry.

Remarks

Get the Entry type out of an object or array.

Example

const object = {
"🟢": 1,
"🟩": 2,
};
const entries: EntryOf<typeof object> = Object.entries(object)[0];

See

Type Parameters