I am using io-ts to check types.
export type UserType = t.TypeOf<typeof User>
how do i add a function to that type so i can do stuff like
const user : UserType {...} user.getName()
1.4m articles
1.4m replys
5 comments
57.0k users