10. Parameters<T> を実装する

  - accepted / - tried

function type Tに対して、Parameters<T> は引数のタイプを抽出したtuple typeを返す。

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

type Foo = (a: string, b: number, c: boolean) => string

type A = MyParameters<Foo> // [a:string, b: number, c:boolean]
type B = A[0] // string
type C = MyParameters<{a: string}> // Error

5分間以内で解いてみて

(1)
(34)