-
-
Notifications
You must be signed in to change notification settings - Fork 867
Closed
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.EnhancementIssue or pull request for enhancing existing functionality.Issue or pull request for enhancing existing functionality.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.TypeScriptIssue involves or relates to TypeScript.Issue involves or relates to TypeScript.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Description
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
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:
.
Metadata
Metadata
Assignees
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.EnhancementIssue or pull request for enhancing existing functionality.Issue or pull request for enhancing existing functionality.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.TypeScriptIssue involves or relates to TypeScript.Issue involves or relates to TypeScript.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.