evt
Version:
Type safe replacement for node's EventEmitter
9 lines (5 loc) • 354 B
text/typescript
import type { NonPostableEvtLike } from "../interfaces/NonPostableEvtLike";
import type { SwapEvtType } from "./SwapEvtType";
import type { UnpackEvt } from "./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>>;