Skip to content

[F] $onEmit

function $onEmit(ctx): Promise<void>;

Compiler emitter hook that converts annotated packages to Protobuf files in the emitter output directory. Conversion still validates the program when noEmit or the compiler’s dry-run mode suppresses file writes.

ParameterTypeDescription
ctxEmitContext<ProtobufEmitterOptions>Program, output directory, and options supplied by the compiler.

Promise<void>