stdlib
stdlib copied to clipboard
[RFC]: improve type declarations for `@stdlib/utils/async/if-then`
Description
This RFC proposes improving the TypeScript type declarations for @stdlib/utils/async/if-then. Currently, considerable type information is lost when using this function.
Ideally, we'd improve declarations for x, y, and the done callback.
Related Issues
No.
Questions
No.
Other
No.
Checklist
- [X] I have read and understood the Code of Conduct.
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with
RFC:.