@braintree/event-emitter
Advanced tools
Changelog
2.0.0
BREAKING CHANGES
Dev Dependency Updates
Changelog
1.0.1
on
does not require an argumentChangelog
1.0.0
in Typescript, on
can specify event payload type as a Generic
type EventPayload = {
foo: string;
};
emitter.on<EventPayload>("event-name", (payload) => {
// payload is of type EventPayload
});
Breaking Changes
createChild
helper_emit
has been renamed to emit
emit
now only takes one event payload argument instead of any number of argumentsChangelog
0.3.0
off
would throw an error if no events existed for named eventhasListener
method