Class Serializer

Intentionally very simple event emitter.

Hierarchy (view full)

Constructors

Properties

Only set when serializing

projectRoot: string

Only set when serializing.

Methods

  • Starts listening to an event.

    Type Parameters

    Parameters

    • event: K

      the event to listen to.

    • listener: ((this: undefined, ...args: SerializerEvents[K]) => void)

      function to be called when an this event is emitted.

        • (this, ...args): void
        • Parameters

          Returns void

    • priority: number = 0

      optional priority to insert this hook with.

    Returns void

Events

EVENT_BEGIN = "begin"

Triggered when the Serializer begins transforming a project.

EVENT_END = "end"

Triggered when the Serializer has finished transforming a project.