[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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
ctx | EmitContext<ProtobufEmitterOptions> | Program, output directory, and options supplied by the compiler. |
Returns
Section titled “Returns”Promise<void>