Omit
from #31115 makes all properties required
#31190
Labels
Bug
A bug in TypeScript
Domain: Conditional Types
The issue relates to conditional types
Domain: Mapped Types
The issue relates to mapped types
Fixed
A PR has been merged for this issue
Since the changes of #31115,
Omit<T, K>
makes all properties ofT
required.TypeScript Version: 3.5.0-dev.20190501, 3.4.5
Search Terms: omit optional
Code
Expected behavior:
B
is{ b?: string }
({ b?: string | undefined }
withstrictNullChecks
).Actual behavior:
B
is{ b: string }
({ b: string | undefined }
withstrictNullChecks
), with propertyb
required.Playground Link: link
pin @DanielRosenwasser
The text was updated successfully, but these errors were encountered: