Skip to content

Kiln API / kiln / event

Function: event() ​

ts
function event<T>(): EventType<T>;

Defines a typed event. Events live for two runs of the phase that emitted them.

Type Parameters ​

Type ParameterDefault type
Tvoid

Returns ​

EventType<T>