Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow symbol as object keys #8611

Closed
sebilasse opened this issue May 15, 2016 · 2 comments
Closed

Allow symbol as object keys #8611

sebilasse opened this issue May 15, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@sebilasse
Copy link

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'

@malibuzios
Copy link

malibuzios commented May 15, 2016

#1863 seems to include both indexing with symbols, and using them in index signatures. I'm not sure how much of the first part has already been implemented but the issue is currently labeled as 'Accepting PRs'.

@mhegazy mhegazy added the Duplicate An existing issue was already created label May 16, 2016
@mhegazy mhegazy closed this as completed May 16, 2016
@mhegazy
Copy link
Contributor

mhegazy commented May 16, 2016

closing in favor of #1863

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants