tiny-emitter
tiny-emitter copied to clipboard
A tiny (less than 1k) event emitter library
This PR aims to provide a backward-compatible change on `index.d.ts`, allowing generic event types. Please refer to this [TS playground](https://www.typescriptlang.org/play?#code/KYDwDg9gTgLgBAE2AYwDYEMrDm9BnPOAFQEsA7ATwFEBbEmGYKOAbwFgAoOOCMgCmAA3YGRgAuOHhhRyAcwA0OdKlQAjdMgDWEgGIBXMshgleioyAD8E9JQCUEmAAsSeANyduvZMAHDREqRkyBSUVdS1dAyMTMjMYS2s7B2c3DzhgOhhfEXFJaTlFADpizFk8RIoAbQBdezgnF3cuHgAzFuz-PKCQ5GU1DU0rOH1DY146htSOAF9OThgKMGwAQShZPRocvAAeIgA+OABeOEqiavSQRjIEQkq+YsLS8rhyFqY4AFVbI4ObCnOLJ84BJTudQFcbidBBASAgASdziCzk1OKBILBECgMFgcBgCMRFsAEKRKLR6IwoLsLhDCH8jnA-gd2M1eNsqNSRJDNMAKBAWsQ9h1clQzH1wtpiJUqNU4gkGUl6ikmp5DMA2RzroRubz+fshRIRaF+hFJdLZUM-hMlWkMvR1eDOVqeXyBfq4IaHk8JKt1ptRDsiFLqnsrY00nyWvbLo64NqXXqhDkDaKwgMhoHpaGprMOJxyBSWhpsFQ-DBCMzuC0IBAJHx1FAAvlgt9DgdobC0uoAF61gCOehAEjIG1UTBbbZhCE4ObmHGQvCk6UyFPpZGAAHdiORqMumHxbE152RFwslggyQx3sc15uiITiduLxS2aW8IKD5wjyf70+mAB1ehHAgPQYAAcREJgSGQVcNwJM8SR3ck9w-XMOFtS8oEKXg+AAcm7HDFF7H44F7QoYAgABlJtZH3WxUV3TD0Nw-DFAARjo1DTyJX9MOwvD0C7AiSOI0jyKo7paPmH8GMKJj+MEtiOKks8eIApxgLAiCZGQLD+HkoSiNbEiyMo6jJI4LjzwYtSgJA8C1202TMmYgShPYoA) for more info.
Using ==== React-native 0.57 Issue ==== 1. I want to listen to all the events without knowing the name of the event, is it possible? 2. I want to cancel...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
After thinking about the implementation details and the API surface area I'd like to make the following proposal for changing this package and making another package based of this package:...
Currently I'm developing several webcomponents using Polymer 3 and LitElement. Both of them rely on ES6 imports and leverage on the browser ES6 modules import capabilities. For one of my...
 Can I got all event name like below? const allEvent=emitter.off(); // emit(); console.log(allEvent.e)
https://github.com/scottcorgan/tiny-emitter/blob/4e6b2eb5869fb4ba862accaef7d16a7051349f4f/index.js#L58C6-L58C16 Doesn't this ternary statement mean that if the callback isn't found in the list of associated callbacks, then it'll remove all associated callbacks?
I'm a starter and I hope you beg my pardon cuz maybe I'm looking a little stupid for you, but, I can't solve that problem. I created a util called...
First, thank you for creating this Event Bus. It was easy to setup. Much appreciated. # Problem If I send an event prior the `on` handler is setup, that event...
I ran into a problem where I got an error message like `TypeError: Cannot read properties of undefined (reading 'apply')` in `E.emit`. This was due to a code change where...