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

Improve output for computed property names #1039

Merged
merged 3 commits into from
Dec 8, 2019

Conversation

rbuckton
Copy link
Contributor

Currently, the documentation for [Symbol.iterator](): Iterator<string> reports the property name as __@iterator, and other computed property names are reported as __computed. This improves the name generated for computed properties where possible.

@aciccarello
Copy link
Collaborator

Thanks @rbuckton! Could you add a simple test case? It can be in one of the existing files.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented May 30, 2019

It would also be great if there was a way to get the original property name from the compiler API, instead of needing to construct it ourselves, but I'm not sure if that capability exists.

@Gerrit0 Gerrit0 mentioned this pull request Dec 8, 2019
1 task
@Gerrit0 Gerrit0 merged commit 3ec2e66 into TypeStrong:master Dec 8, 2019
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 8, 2019

Thanks! I looked into getting the original name from the API, but it was more complicated than just computing the symbol name ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants