-
-
Notifications
You must be signed in to change notification settings - Fork 1
Function
Alan Berdinelli edited this page Oct 8, 2020
·
1 revision
Function validates the value is a function
const Schemy = require('schemy');
const Example = new Schemy({
callback: {
type: Function
}
});
// This should validate true
Example.validate({
callback: function() {
console.log('Callback');
}
});Developed with ♥ by Alan Berdinelli.