Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
TypeScript
/
Utility types
Why enable exactOptionalPropertyTypes for a patch type built with Partial?
from Utility types
TypeScript 6
intermediate
4 min
Why enable exactOptionalPropertyTypes for a patch type built with Partial?
It distinguishes an absent optional property from assigning undefined unless undefined is explicitly allowed.
It makes Partial recursively optional.
It rejects every empty patch object.
It validates the patch after JSON.parse.
Check
Ask AI about this kata
Report an error
next kata
A function returns an existing Account object under the type Omit<Account, "passwordHash"…
Quiz
A new version is available
Reload