io-ts : use TypeOf with DateFromISOString

前端 未结 0 1883
猫巷女王i
猫巷女王i 2021-02-05 22:38

trying to validate and decode api response:

const Foo  = t.type({
    id: t.number,
    date: DateFromISOString,
  });

  type FooType = t.TypeOf

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题