Better Typescript typings
DimitryDushkin opened this issue · comments
Dimitry commented
Seems like now it is possible to describe type definition of actions in object, see typings of use-methods — https://github.com/pelotom/use-methods/blob/master/src/index.ts — which have quite similar approach on useReduce hook.
Paul Dijou commented
Looks good. I don't do much TypeScript myself. Would you consider doing a pull request to improve those types?