Skip to content

keyof for Map #225

@fregante

Description

@fregante

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 = ????????

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions