Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Change type of the all property in the constructor #73
Conversation
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.
|
Great, thanks! |
bcbe163
into
developit:master
This commit corrects the type of the
allproperty in themittconstructor function, such that it properly reflects a list ofHandlerfunctions rather than a singleHandlerfunction.This makes it possible to provide an argument to the
allproperty in TypeScript projects without casting the argument to theanytype and with proper type feedback.