import { IValidator } from '@materia/interfaces' ; import { Field } from './field' ; export class Validator { constructor ( private field , public name , public value ) { console . log ( 'validator' , this . field , this . name ) ; } toJson ( ) { return { name : this . name , value : this . value } ; } }