@Dai Sorry, I am probably not being very clear. It is my understanding that type-guard functions are functions that are manually created by programmers in order to narrow down the object type of an incoming variable. However, I don't want to manually create any code. Instead, if I use the popular "class-transformer" library, then I can simply feed it a class constructor, it learns the schema from that, and passes me back sound data. —
James 7 secs ago