12. ReturnType<T> を実装する

  - accepted / - tried

Parameters<T>が引数に対して、 ReturnType<T>はfunction type Tのreturn typeを返す。

MyReturnType<T>を実装してみてください。

type Foo = () => {a: string}

type A = MyReturnType<Foo> // {a: string}

5分間以内で解いてみて

(1)
(30)