UNPKG

evt

Version:

Type safe replacement for node's EventEmitter

9 lines (5 loc) 354 B
import type { NonPostableEvtLike } from "../interfaces/NonPostableEvtLike"; import typeSwapEvtType } from "./SwapEvtType"; import type { UnpackEvtfrom "./UnpackEvt"; /** https://docs.evt.land/api/helpertypes#swapevttype-less-than-e-t-greater-than */ export type FactorizeEvt<E extends NonPostableEvtLike<any>> = SwapEvtType<E, UnpackEvt<E>>;