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
A function returns an existing Account object under the type Omit<Account, "passwordHash"…
from Utility types
TypeScript 6
intermediate
3 min
A function returns an existing Account object under the type Omit<Account, "passwordHash">. Which claim is correct?
The runtime object can still contain passwordHash.
TypeScript deletes passwordHash during emission.
The assignment always fails because extra properties are forbidden.
Omit replaces passwordHash with undefined.
Check
Ask AI about this kata
Report an error
previous kata
Why enable exactOptionalPropertyTypes for a patch type built with Partial?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload