はじめまして。
やりたいこととしてはtypescriptの以下のような推論をやってみたい感じです。
よろしくおねがいします。
Maybe Int のような型から`Int` 型を取り出すことは可能なのかお聞きしたいです。やりたいこととしてはtypescriptの以下のような推論をやってみたい感じです。
type A<T> = { a: T }
type B<F> = { b: F }
type C = A<B<number>>
type GetT<AA extends A<any>> = AA extends A<infer T> ? T : never
type GetF<BB extends B<any>> = BB extends B<infer F> ? F : never
type D = GetF<GetT<C>> // numberよろしくおねがいします。