[APM] Replace idx usage with optional chaining #50758
Labels
Team:APM
All issues that need APM UI Team support
technical debt
Improvement of the software architecture and operational architecture
Now that we've upgraded to TypeScript 3.7, we can investigate replacing our usage of
idx
with the optional chaining operator. E.g., we can replace:with:
This might expose some issues in our code as well, because using
idx
anywhere in the chain seems to make all properties of the returned object available (withDeepRequired
).The text was updated successfully, but these errors were encountered: