import type { StatefulReadonlyEvtLike, NonPostableEvtLike, NonPostableEvt, StatefulReadonlyEvt } from "../interfaces"; type ToNonPostableEvtBase> = E extends StatefulReadonlyEvtLike ? StatefulReadonlyEvt : E extends NonPostableEvtLike ? NonPostableEvt : never ; type ToNonPostableEvtRecord = { [P in keyof R]: R[P] extends NonPostableEvt ? ToNonPostableEvtBase : R[P]; }; /** https://docs.evt.land/api/helpertypes#tononpostableevt-less-than-e-greater-than */ export type ToNonPostableEvt)> = E extends NonPostableEvt ? ToNonPostableEvtBase : ToNonPostableEvtRecord ;