UNPKG

class-o-mat

Version:

ALPHA VERSION ONLY: class-o-mats will help to create getter-setter functionality with validations that can be attached to a container class for easier coding. Some basic validations are included. class-o-mats also has the ability to store params as bloc

20 lines (12 loc) 431 B
import Bunyan from 'bunyan'; const log = Bunyan.createLogger({name: "FieldReducerOMat"}); import { NONE, FIELD_ACTION_O_MAT } from '../constants/types'; import _FieldMethodOMat from './_field-method-o-mat'; class FieldActionOMat extends _FieldMethodOMat { static TYPE = FIELD_ACTION_O_MAT; TYPE = FIELD_ACTION_O_MAT; $() { return this._params.parent._acceptAction(this); } } export default FieldActionOMat;