Types accepting purely object-based format
brettz9 opened this issue · comments
Especially if we end up supporting even more encapsulator/reviver types (async, etc.), I think we should support a type syntax which allows for an object as opposed to an array of functions for a less ambiguous labeling of each component, e.g.:
{
detector: function () {},
encapsulator: function () {},
reviver: function () {},
encapsulatorAsync: function () {}
reviverAsync: function () {}
}
Apologies, meant to add this on Typeson repo instead.