Skip to content

allow string literals (unions of string literals?) as a type of an indexer #7656

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd
type Keyed<a> = { [key: 'this' | 'that']: a; } // expected to work, actual doesn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdNeeds More InfoThe issue still hasn't been fully clarifiedSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions