Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, types such as:
and
Result in the respective errors :
and
Instead, both scenarios should result in an empty object. This change simply adds the needed clauses to handle these types in
MappedTypeNodeParser
.Ideally, both cases are handled in a single clause, as the second example should be equal to the first (both result in a
never
key type). This is currently not the case, since resolving an empty union results inundefined
instead ofnew NeverType()
, as mentioned in #1154 (comment). However, properly propagatingNeverType
is hard as it results in regressions, e.g. see #650 (review). The second clause can probably be removed once these issues are solved.Version
Published prerelease version:
v1.1.0-next.5
Changelog
🎉 This release contains work from new contributors! 🎉
Thanks for all your work!
❤️ null@daanboer
❤️ null@filipomar
❤️ Remi Cattiau (@loopingz)
❤️ Hadrien Milano (@hmil)
🚀 Enhancement
🐛 Bug Fix
@description
#1177 (@Jason3S)🔩 Dependency Updates
Authors: 9