Type alias RunEvaluatorLike
RunEvaluatorLike: ((props, options?) => Promise<EvaluationResult>) | ((props, options?) => EvaluationResult)
Type declaration
- (props, options?): Promise<EvaluationResult>
- Parameters- Optionaloptions: {
 config?: Toolkit;
 }
 
- Returns Promise<EvaluationResult>
 
Type declaration
- (props, options?): EvaluationResult
- Parameters- Optionaloptions: {
 config?: Toolkit;
 }
 
- Returns 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.