How to compare class (schema) to data of any type
for example:
schema class
class Element {
name!: string
age?: number
}
type DataType = Element[]
some variable
[
{
"name": "mike"
},
{
"name": "john",
"age": 14
}
]
I want to know if the data matches the circuit description