Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScripthand-rolled utility typesSingle-choice MCQ

Using a key-remapping `as` clause, which object is assignable to `G`?

type Getters<T> = { [K in keyof T as `get${Capitalize<string & K>}`]: () => T[K]; }; type G = Getters<{ name: string; age: number }>;