How do I add functions to my custom types?

前端 未结 0 1170
花落未央
花落未央 2021-01-28 09:08

I am using io-ts to check types.

export type UserType = t.TypeOf

how do i add a function to that type so i can do stuff like

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