>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
Match the descriptions to these object contracts terms: Interface, Type alias, Optional property, Readonly property. | SWE Maxx
← Question bank
TypeScript · Matching
Difficulty: Medium
Match the descriptions to these object contracts terms: Interface, Type alias, Optional property, Readonly property.
Object contracts
Concept relationships
Choose a match for every item. Use each answer once.
A type alias names an existing type expression without creating a distinct runtime value.
Choose a match
Readonly property
Optional property
Type alias
Interface
Interfaces support declaration merging and describe required object members.
Choose a match
Readonly property
Optional property
Type alias
Interface
Readonly is enforced during type checking and does not itself create runtime immutability.
Choose a match
Readonly property
Optional property
Type alias
Interface
An optional property may be missing, so access generally requires handling undefined.
Choose a match
Readonly property
Optional property
Type alias
Interface
Check answer
More in TypeScript →