Type alias EntryKey<Input>

EntryKey<Input>: First<Input>

Key of an Entry.

Remarks

Util type to get the key of an Entry.

Example

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

See

Type Parameters

  • Input extends Entry

    Entry type.