How the TypeScript ReturnType Type works

1 · Johnny SImpson · May 10, 2022, 5:19 p.m.
The ReturnType utility Type in TypeScript lets us take the outputs of a function, and codify a new type based on that. Let's look at how it works....