Skip to content

Commit

Permalink
fix: add ability to specify runStep resolved value
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Mar 12, 2024
1 parent 97da4a9 commit e7f1130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ declare global {
*
* @param stepName step name
* @param stepCb step callback
* @returns {Promise<any>} value, returned by `stepCb`
* @returns {Promise<T>} value, returned by `stepCb`
*/
runStep(stepName: string, stepCb: () => Promise<unknown> | unknown): Promise<unknown>;
runStep<T = unknown>(stepName: string, stepCb: () => Promise<T> | T): Promise<T>;

// TODO: describe executionContext more precisely
executionContext: (RunnerTest | RunnerHook) & {
Expand Down

0 comments on commit e7f1130

Please sign in to comment.