In the case of a single union, we were just copying all properties across. This can overwrite a pre-existing field, in particular a more-specific description that has been specified on some including type.
This came up in a project where enabling strictNullChecks caused a bunch of descriptions to change for seemingly no reason.
Please:
[X] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
[X] Provide a test case & update the documentation in the Readme.md
In the case of a single union, we were just copying all properties across. This can overwrite a pre-existing field, in particular a more-specific description that has been specified on some including type.
This came up in a project where enabling
strictNullChecks
caused a bunch of descriptions to change for seemingly no reason.Please:
Readme.md