-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Suppose i had this:
const Todo = Typesafe.defineClass({
properties: {
done: Boolean,
author: {
properties: {
name: {
properties: {
first: String,
last: String
}
},
age: Number
},
functions: {
getFullName: function() {
return this.name.first + ' ' + this.name.last;
}
}
}
},
functions: {
isDone: function() {
return this.done === true;
}
}
});
let instance = new Todo();
I should be able to do something like this:
const Notes = Typesafe.defineClass({
properties: {
todo: Todo,
notes: Array
}
})