·
2 commits
to main
since this release
Patch Changes
-
#5230
86e6b58dd18337202df8e319a42f85523d5d0d30
Thanks @davidkpiano! - The types for emitting events with no payload have been fixed so that the following code works:const store = createStore({ emits: { incremented: () => {} }, on: { inc: (ctx, ev, enq) => { // No payload is expected enq.emit.incremented(); } } });
Previously, this would have been an error because the
incremented
event was expected to have a payload.