Uh oh!
There was an error while loading. Please reload this page.
Add check for delete expression must be optional - #37921
Conversation
76937c3 to
6e4b381CompareIs needed a test with an index type? Like: interfaceBar{[id: string]: string;}declareconsta: Bardeletea["a"];deletea.b; |
Good point. TypeScript Bot (@typescript-bot) pack this. |
Wenlu Wang (Kingwl)
commented
Apr 13, 2020
Hey, How are you? TypeScript Bot (@typescript-bot) TypeScript Bot (@typescript-bot) pack this. |
Heya Wenlu Wang (@Kingwl), I've started to run the tarball bundle task on this PR at 6e4b381. You can monitor the build here. |
Hey Wenlu Wang (@Kingwl), I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build. |
This reverts commit 39beb1d.
This is a breaking change that was added in post beta with no test run on it. I think we should have had more due diligence before pulling it in. I think we should back it out and add it in for 4.0. |
Simon Hanna (simhnna)
commented
Sep 17, 2020
What's the reasoning behind excluding
|
Because |
Seeing a possible bug for the following case - even though TS recognizes that key in delete p[key] can be either 'foo' or 'bar', it does not error. |
Fixes#13783