>_
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 generics terms: Type parameter, Generic constraint, Default type argument, Keyof. | SWE Maxx
← Question bank
TypeScript · Matching
Difficulty: Medium
Match the descriptions to these generics terms: Type parameter, Generic constraint, Default type argument, Keyof.
Generics
Concept relationships
Choose a match for every item. Use each answer once.
A default fills an unspecified type parameter while remaining subject to its constraint.
Choose a match
Keyof
Generic constraint
Default type argument
Type parameter
Keyof derives key types from the object contract instead of duplicating property names.
Choose a match
Keyof
Generic constraint
Default type argument
Type parameter
A constraint lets generic code safely use the members guaranteed by that requirement.
Choose a match
Keyof
Generic constraint
Default type argument
Type parameter
A type parameter represents a caller-selected type rather than erasing its information.
Choose a match
Keyof
Generic constraint
Default type argument
Type parameter
Check answer
More in TypeScript →