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

fix: add ability to specify runStep resolved value #870

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

KuznetsovRoman
Copy link
Member

No description provided.

*/
runStep(stepName: string, stepCb: () => Promise<unknown> | unknown): Promise<unknown>;
runStep<T = unknown>(stepName: string, stepCb: () => Promise<T> | T): Promise<T>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type does not need to be specified manually. It would be inferred from stepCb return value

@KuznetsovRoman KuznetsovRoman merged commit 88d5b59 into master Mar 12, 2024
2 checks passed
@KuznetsovRoman KuznetsovRoman deleted the fix/runstep/typings branch March 12, 2024 12:05
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.

None yet

2 participants