Skip to content

Correct TypeScript type definitions for effect functions#5395

Merged
DavertMik merged 1 commit into4.xfrom
bugfix/5205-correct-typings-for-effect-functions
Jan 18, 2026
Merged

Correct TypeScript type definitions for effect functions#5395
DavertMik merged 1 commit into4.xfrom
bugfix/5205-correct-typings-for-effect-functions

Conversation

@DenysKuchma
Copy link
Collaborator

#5205

Changes:

  • TryTo: now correctly returns Promise instead of Promise<T | false>
  • HopeThat: now correctly returns Promise instead of Promise<T | false>
  • RetryTo: now accepts (fn: (tries: number) => Promise | void, maxTries: number, pollInterval?: number) and returns Promise

@DenysKuchma DenysKuchma requested a review from DavertMik January 16, 2026 12:38
@DavertMik DavertMik merged commit d10f653 into 4.x Jan 18, 2026
10 checks passed
@DavertMik DavertMik deleted the bugfix/5205-correct-typings-for-effect-functions branch January 18, 2026 09:16
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

Successfully merging this pull request may close these issues.

2 participants