Skip to content

[T] EmitterFunc

type EmitterFunc = (context) => Promise<void> | void;

Implementation of a library’s $onEmit hook, invoked during emission after checking, validation, and linting. The compiler awaits a returned promise before continuing. Report issues through the context’s program rather than returning diagnostics.

ParameterType
contextEmitContext

Promise<void> | void