forked from colinhacks/zod
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix addQuestionsMarks so it resolves correctly in more cases
Fixes this issue: colinhacks#1121 Specifically, `{ property: (T | undefined) & T }` does not seem to flatten to `{ property: T }` in the case that T is a complex string literal.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters