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
What runtime effect does declaring type Combined = A & B have?
from Union and intersection types
TypeScript 6
beginner
3 min
What runtime effect does declaring type Combined = A & B have?
None; code must still construct a value with the fields required by both types.
It calls Object.assign(A, B) during module loading.
It copies B properties onto every A instance.
It installs a runtime validator for both types.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload