-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
TS2.7 produces illegal .d.ts files for objects with computed property names #21138
Comments
Just to clarify.. you mean illegal in previous versions of the compiler. |
You are right. The bug I was trying to pin down is rather that you cannot create a type from
|
This might be related to #13042? |
I can repro the issue with TS2.6, but indeed not typescript@next, so seems fixed already (and we'll have to work around it for the TS2.6 migration). |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: 2.7.0-dev.20180110
Code
Expected behavior:
Produce a valid .d.ts file.
Actual behavior:
Produces:
The declaration of
[SOME_STRING]: string
gives[ts] A computed property name in a type literal must directly refer to a built-in symbol.
The text was updated successfully, but these errors were encountered: