refactor(core): Replace non-null assertion operator with property initialization#34293
refactor(core): Replace non-null assertion operator with property initialization#34293kubk wants to merge 1 commit intoangular:masterfrom kubk:master
Conversation
|
This increases bundle size for no actual benefit as far as I can see? It seems like a valid use of this TypeScript functionality. Either that, or it should be |
|
@alfaproject Changing type to After: The same applies to |
|
@kubk please rebase. |
|
@kubk I mean generated code. Check the down-levelled version in ES5 (it also uses more memory, btw) Not sure what's the problem in keeping the non-null assertion operator to keep it lean. It exists for a reason. I would just remove the TODO comments or replace them with a more descriptive comment of why it's ok to have it, but I'm not a maintainer d: |
|
Hi @kubk, thanks for rebasing your PR. It looks like the |
|
@AndrewKushnir Done. Do you know how to fix the rest of the issues? |
|
Closing in favor of #39730 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Replace non-null assertion operator with property initialization.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?