Loading problem…
Select the best answer.
function read<K extends keyof User>(u: User, key: K) { return u[key]; }