UNPKG

evt

Version:

Type safe replacement for node's EventEmitter

11 lines (6 loc) 290 B
import type { StatefulReadonlyEvtfrom "./StatefulReadonlyEvt"; import type { StatefulPostable } from "./StatefulPostable"; export interface StatefulEvt<T> extends StatefulReadonlyEvt<T>, StatefulPostable<T> { /** https://docs.evt.land/api/statefulevt#state */ state: T; };