Open fregante opened 3 years ago
Context: https://stackoverflow.com/q/60737502
const obj = {first: 'First Name', last: 'Last Name'}; type Keys = keyof typeof obj; // first | last
const map = new Map([ [first, 'First Name'], [last: 'Last Name'] ]); type Keys = ????????
👍
I think this exists as MapKey, but is not exported.
MapKey
Context: https://stackoverflow.com/q/60737502
Upvote & Fund