Skip to content

Add decoding/encoding registries & parsers.  #390

@ClickerMonkey

Description

@ClickerMonkey
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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions