generated at
io-tsとTypeScriptの型の対応

対応表


string Unionの作り方が若干クセがある
'red' | 'yellow' | 'blue' みたいな型の場合は t.union() を使わない
こうする
ts
const Good = t.keyof({ foo: null, bar: null, baz: null // etc... })