We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? # to your account
computed property symbol declaration emit
https://www.typescriptlang.org/play/?ts=3.7.5#code/MYGwhgzhAEAq0G8BQ1XQgFzBglsaATgKZgAmA9gHYgCe0A2gEQA6GjAugFzQCulOARx5F0NALYAjciADcSAL5IQRDNAAe0ALyIUaerCasOXaAEYFMoA
class T { static readonly ["\t"]: unique symbol; } let x = { [T["\t"]]: 1 };
The type of x is emitted as { [T["\t"]]: number; } in declaration files, making the file invalid since the property does not exist on T
x
{ [T["\t"]]: number; }
T
The escape should be preserved in the property name.
Was introduced by 8bb7230
The text was updated successfully, but these errors were encountered:
No branches or pull requests
π Search Terms
computed property symbol declaration emit
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=3.7.5#code/MYGwhgzhAEAq0G8BQ1XQgFzBglsaATgKZgAmA9gHYgCe0A2gEQA6GjAugFzQCulOARx5F0NALYAjciADcSAL5IQRDNAAe0ALyIUaerCasOXaAEYFMoA
π» Code
π Actual behavior
The type of
x
is emitted as{ [T["\t"]]: number; }
in declaration files, making the file invalid since the property does not exist onT
π Expected behavior
The escape should be preserved in the property name.
Additional information about the issue
Was introduced by 8bb7230
The text was updated successfully, but these errors were encountered: