8000 Allow symbol as object keys · Issue #8611 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Allow symbol as object keys #8611
@sebilasse

Description

@sebilasse

TypeScript Version:
1.8.10 - editing with github's Atom / TS

Code

// A self-contained demonstration of the problem follows...
export interface Container {
  stores: { [s: symbol]: string };
}

Expected behavior:
It should be fine ...

Actual behavior:
err: An index signature parameter type must be 'string' or 'number'

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0