Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Typescript typings #97

Open
DimitryDushkin opened this issue May 4, 2019 · 1 comment
Open

Better Typescript typings #97

DimitryDushkin opened this issue May 4, 2019 · 1 comment

Comments

@DimitryDushkin
Copy link

DimitryDushkin commented May 4, 2019

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.

@pauldijou
Copy link
Owner

Looks good. I don't do much TypeScript myself. Would you consider doing a pull request to improve those types?

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

No branches or pull requests

2 participants