generated at
2/18/2025, 11:25:37 AM
Conditional Typesで複数条件を1回で書く
tupleを使って、2回のextendsを1回で書いている例
ts
type Hoge<T, U> = [T, U] extends [string, string] ? .. : ..
参考
TypeScript の Conditional Types で複数条件をマージする