Check The Instance and Child
const jkt = require('jkt')
const Person = jkt`
name: String
age: Number
hobby: Array
`
const Child = Person`
toys: Array
doingHomework: Boolean
`
const Mother = Person`
singleParent: Boolean
`
const John = Child({
name: "John Doe"
})
Child.childOf(Person) // true
Mother.childOf(Person) // true
John.instanceOf(Person) // true
John.instanceOf(Child) // true
no comments