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? 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
TypeScript Version: 2.3.0-dev.20170223
Code
It's very likely that this is already reported, but I couldn't find it after a quick search through the issues.
type Foo = { bar: string __typename: string } type A = Foo["bar"] // ok type B = Foo["__typename"] // Property '__typename' does not exist on type 'Foo'.
Expected behavior:
Type B should be string.
B
string
Actual behavior:
Error is thrown.
The text was updated successfully, but these errors were encountered:
I did find an older similar issue: #8614
Lo and behold:
type B = Foo["___typename"] // three underscores, ok
Sorry, something went wrong.
remove double undescore
0b9c2c7
microsoft/TypeScript#14268
This should be fixed by #16915
sandersn
No branches or pull requests
TypeScript Version: 2.3.0-dev.20170223
Code
It's very likely that this is already reported, but I couldn't find it after a quick search through the issues.
Expected behavior:
Type
B
should bestring
.Actual behavior:
Error is thrown.
The text was updated successfully, but these errors were encountered: