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

use-debounced useDebounceCallback needs improvement #4542

Closed
Brianzchen opened this issue Oct 25, 2023 · 0 comments · Fixed by #4544
Closed

use-debounced useDebounceCallback needs improvement #4542

Brianzchen opened this issue Oct 25, 2023 · 0 comments · Fixed by #4544
Labels
bug libdef Related to a library definition

Comments

@Brianzchen
Copy link
Member

Library definition file name

use-debounce_9.x.x.js

Your dependent version

9.0.4

Flow Version

0.217.2

Description

The DebouncedState should be typed as

declare type DebouncedState<R, T: (...args: any) => R> = ControlFunctions & ((...args: Parameters<T>) => R | void);

Do you want to submit a pull request to fix this issue?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug libdef Related to a library definition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant