trying to validate and decode api response:
const Foo = t.type({ id: t.number, date: DateFromISOString, }); type FooType = t.TypeOf