UNPKG

evt

Version:

Type safe replacement for node's EventEmitter

6 lines (5 loc) 193 B
import type { CtxLike } from "./CtxLike"; export interface NonPostableEvtLike<T> { attach(ctx: CtxLike, callback: (data: T) => void): void; attach(callback: (data: T) => void): void; }