Stops listening to an event.
the event to stop listening to.
the function to remove from the listener array.
Rest
...args: SerializerEvents[K]Starts listening to an event.
the event to listen to.
function to be called when an this event is emitted.
Rest
...args: SerializerEvents[K]optional priority to insert this hook with.
Same as toObject but emits Serializer.EVENT_BEGIN and Serializer.EVENT_END events.
Emits an event to all currently subscribed listeners.
the event to emit.
Rest
...args: SerializerEvents[K]any arguments required for the event.
Static
Readonly
EVENT_Triggered when the Serializer begins transforming a project.
Static
Readonly
EVENT_Triggered when the Serializer has finished transforming a project.
Intentionally very simple event emitter.