Get Return Type medium #infer #built-in

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어 Português (BR)

Implement the built-in `ReturnType` generic without using it. For example ```ts const fn = (v: boolean) => { if (v) return 1 else return 2 } type a = MyReturnType // should be "1 | 2" ```
Back Share your Solutions Check out Solutions