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: 3.7.2
Code
type a = 'a' | 'b' | 'c' interface test { [k in a]: any; // it doesn't works b: { [k in a]: any; // it works } }
Expected behavior: in operator works under interface's root
Actual behavior: it doesn't works
Playground Link: https://www.typescriptlang.org/play/index.html?ssl=8&ssc=2&pln=1&pc=1#code/C4TwDgpgBAhlC8UDkMlQD7IEZs0gxkgFBECWAdsBAE4BmM+0VAzsFAN5FTdQDaA1lAqwAugC5Y5EAG4uPLBM49lfQcJjjJMudwC+RXUA
Related Issues:
The text was updated successfully, but these errors were encountered:
#24220
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 3.7.2
Code
Expected behavior: in operator works under interface's root
Actual behavior: it doesn't works
Playground Link: https://www.typescriptlang.org/play/index.html?ssl=8&ssc=2&pln=1&pc=1#code/C4TwDgpgBAhlC8UDkMlQD7IEZs0gxkgFBECWAdsBAE4BmM+0VAzsFAN5FTdQDaA1lAqwAugC5Y5EAG4uPLBM49lfQcJjjJMudwC+RXUA
Related Issues:
The text was updated successfully, but these errors were encountered: