Skip to content

[RFC]: improve type declarations for @stdlib/utils/async/if-then #1096

Closed
@kgryte

Description

@kgryte

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

Labels

AcceptedRFC feature request which has been accepted.EnhancementIssue or pull request for enhancing existing functionality.RFCRequest for comments. Feature requests and proposed changes.TypeScriptIssue involves or relates to TypeScript.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions