diff --git a/src/browser/types.ts b/src/browser/types.ts index d8d9264b6..ae572288e 100644 --- a/src/browser/types.ts +++ b/src/browser/types.ts @@ -92,9 +92,9 @@ declare global { * * @param stepName step name * @param stepCb step callback - * @returns {Promise} value, returned by `stepCb` + * @returns {Promise} value, returned by `stepCb` */ - runStep(stepName: string, stepCb: () => Promise | unknown): Promise; + runStep(stepName: string, stepCb: () => Promise | T): Promise; // TODO: describe executionContext more precisely executionContext: (RunnerTest | RunnerHook) & {