Enhance/refactor Emitter to support custom object serializers.

Issue #96 new
Ionel Cristian Mărieș
created an issue

Right now the serialising function (_any) is defined in a closure and can't be overridden in a Emitter subclass.

Ideally the Emitter would have hooks to support custom objects.

There is the emitable property/callable check for items but I find that is not flexible enough - one would have to wrap every item in the resultset which isn't ideal.

Comments (0)

  1. Log in to comment