generated at
Conditional Typesで複数条件を1回で書く

tupleを使って、2回のextendsを1回で書いている例
ts
type Hoge<T, U> = [T, U] extends [string, string] ? .. : ..


参考