Is there a way to get to the type of a class member as string?
class A {
b: string & MinSize<5>
}
I wanted the MinSize
in a string and 5
in a number, is this possible? The idea is to use some validation of b
and find the validator for MinSize
in a map.
Other ideas appreciated.
Aucun commentaire:
Enregistrer un commentaire