rekord icon indicating copy to clipboard operation
rekord copied to clipboard

Add decoding/encoding registries & parsers.

Open ClickerMonkey opened this issue 6 years ago • 0 comments

Rekord.addDecoder('boolean', {strict: Boolean}, function(value, params) {
  if ( params.strict ) ...
  return value;
});

var Model = Rekord({
  decodings: {
    property: 'boolean(strict:true)',
  }
});

You can also pipe one decoder/encoder to another.

ClickerMonkey avatar Apr 26 '18 18:04 ClickerMonkey