Type alias RunEvaluatorLike

RunEvaluatorLike: (({ run, example, }) => Promise<EvaluationResult>) | (({ run, example }) => EvaluationResult)

Type of a function that can be coerced into a RunEvaluator function. While we have the class-based RunEvaluator, it's often more convenient to directly pass a function to the runner. This type allows us to do that.

Type declaration

    • ({ run, example, }): Promise<EvaluationResult>
    • Parameters

      • { run, example, }: {
            run: Run;
            example?: Example;
        }
        • run: Run
        • Optional example?: Example

      Returns Promise<EvaluationResult>

Type declaration

    • ({ run, example }): EvaluationResult
    • Parameters

      • { run, example }: {
            run: Run;
            example?: Example;
        }
        • run: Run
        • Optional example?: Example

      Returns EvaluationResult

Generated using TypeDoc