aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
AgeCommit message (Collapse)Author
8 daysMerge tag '3.0.1' from mittHEADmasterMarin Ivanov
2023-07-04apply prettier formatting to all filesJason Miller
2022-01-31Clarify what `off('*')` doesJason Miller
Fixes #150
2021-06-22Add support for mitt.off("type"), which removes all handlers of a given typeJason Miller
2021-06-22Merge branch 'master' into patch_123Jason Miller
2021-06-22Merge branch 'cheaper' of https://github.com/sealice/mitt into sealice-cheaperJason Miller
2021-06-22Stronger typing (#114)iyegoroff
* improved typing * upd readme * upd readme * upd test & readme * removed magic 1 * removed ts-toolbelt dependency
2021-01-21compression codesealice
2021-01-11Fix the format and update the off APIsealice
2021-01-04Add new features of emitter.off. Fixes #123sealice
If emitter.off provides only the event, remove all listeners for that event.
2020-07-15Merge branch 'expose-all' of https://github.com/jaylinski/mittJason Miller
2020-07-15Add generic types and update tests (#107)Jack Franklin
* Add generic types and update tests * Add generic types to `on`, `off` and `emit` to enable some nicer TS usage if you specify what type you're expecting from the `EventData`. * Move the tests to be TypeScript source. This will help catch errors in the tests if there are any type errors. * Create a new test to test the generic types and make sure they pass and error when expected. * Upgrade to Mocha 8. * Did some tidying up of the package.json scripts. * Tweak TS setup to validate tests * Fix d.ts generation and tests Co-authored-by: Jason Miller <[email protected]>
2020-07-13Merge branch 'master' into expose-allJason Miller
2020-07-09Add missing space (#103)Jay Linski
Co-authored-by: Jason Miller <[email protected]>
2020-06-03Expose `all` propertyJakob Linskeseder
Relates to #70 #72 #102
2020-05-27Export Mitt types for TS consumers (#101)Jack Franklin
* Export Mitt types for TS consumers * Add rudimentary tests for exported TS types * Run tests against the generated output instead of src
2020-05-27Use eslint-config-developitJason Miller
2020-05-27cache map.get() for size wins (#100)Jason Miller
* cache map.get() for size wins * Further reduce size of on()
2020-05-26Migrate to TypeScript and use Map (#99)Jack Franklin
Migrate to TypeScript & Microbundle, move to Map for event handler storage
2019-04-27Fix TypeScript warning and add caveats to ToCMarin Ivanov
2019-04-26Bump verstion to 1.0.1Marin Ivanov
Add acknowledgments to the readme
2019-04-26Rename {mitt => nitt}Marin Ivanov