Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jesperzach
Copy link
Contributor

@jesperzach jesperzach commented Feb 21, 2018

This commit corrects the type of the all property in the mitt constructor function, such that it properly reflects a list of Handler functions rather than a single Handler function.

This makes it possible to provide an argument to the all property in TypeScript projects without casting the argument to the any type and with proper type feedback.

jesperzach and others added 2 commits February 21, 2018 14:17
This commit corrects the type of the `all` property in the `mitt` constructor function, such that it properly reflects a list of `Handler` functions rather than a single `Handler` function.

This makes it possible to provide an argument to the `all` property in TypeScript projects without casting the argument to the `any` type and with proper error feedback.
Copy link
Owner

@developit developit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@developit developit merged commit bcbe163 into developit:master Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants