We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
in
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
This is broken in the new narrowing for the in keyword (#15256). The test inKeywordTypeguard needs to add the following test:
interface StringMap<T> { [key: string]: T } function f(options: StringMap<any>) { if ('data' in options) { return options['data']; } }
Right now there is an error on options['data'], but there shouldn't be.
options['data']
The text was updated successfully, but these errors were encountered:
Fix is up at #20543
Sorry, something went wrong.
sandersn
No branches or pull requests
This is broken in the new narrowing for the
in
keyword (#15256).The test inKeywordTypeguard needs to add the following test:
Right now there is an error on
options['data']
, but there shouldn't be.The text was updated successfully, but these errors were encountered: