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
/
Union and intersection types
Which statement about an object union A | B is correct under structural typing?
from Union and intersection types
TypeScript 6
intermediate
3 min
Which statement about an object union A | B is correct under structural typing?
A value may satisfy A, B, or both.
Every value must have all properties from A and B.
A runtime tag is added automatically.
All properties unique to A or B become optional.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in ImportedUser
Spot the bug
A new version is available
Reload