Skip to content

allow extended string for index properties #6246

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd
export interface Keyed<k extends string, a> {
    [key: k]: a; // <-- An index signature parameter type must be 'string' or 'number'.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions