Is there a more efficient way to access the value type of a return type of a function without creating unused variables?
const f = () => ({ a: 'a', b: 0 });
let atype: ReturnType<typeof f>.a;
let btype: ReturnType<typeof f>.b;
Any cleaner solution available for this?