const jkt = require('jkt')
const Mother = jkt`
name: String
birthday: Date
haveChild: ${true}
`
const angela = Mother({
name: "Angela",
Birthday: "1990-06-06"
})
const christy = Mother({
name: "Angela",
Birthday: "1990-06-06",
haveChild: false
})
const Person = jkt`
name: String
sayTheWords: ${(words) => `Hi, ${words}`},
someOptions: ${{some: "options"}}
`
const aditya = Person({
name: "Aditya"
})
console.log('Angela', angela.haveChild) // true
console.log('Christy', christy.haveChild) // false
console.log('Aditya', aditya.sayTheWords('How are you')) // "Hi, How are you"
console.log('Aditya in JSON', aditya.j()) // { name: "Aditya", someOptions: { some: "options" } }