Evt.asPostable(evt)
Cast the passed event as portable.
Deprecated
import { Evt } from "evt";
import type {
NonPostableEvt,
+ ToPostableEvt
} from "evt";
const evtMsg: NonPostableEvt<string> = new Evt();
-Evt.toPostable(evtMsg).post("foo");
+(evtMsg as ToPostable<typeof evtMsg>).post("foo");Usecase
Last updated
Was this helpful?