Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptgeneric constraintsSingle-choice MCQ3 views

`keyof` over a union of object types returns the keys common to every member. What is `Result`?

type Result = keyof ({ a: 1; b: 2 } | { b: 3; c: 4 });