Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptkeyof and indexed accessSingle-choice MCQ

Which is the inferred type T at call?

declare function get<T, K extends keyof T>(o: T, k: K): T[K];\nconst T = get({ name: "x" } as { name: string }, "name");