UNPKG

objection

Version:
13 lines (11 loc) 299 B
export default class Validator { beforeValidate({model, json, options}) { model.$beforeValidate(null, json, options); } validate({model, json, options}) { throw new Error('not implemented'); } afterValidate({model, json, options}) { model.$afterValidate(json, options); } }