@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
10 lines (8 loc) • 326 B
text/typescript
import type { Question } from './Question';
/**
* A union type that provides a convenient way to represent any value
* that can be resolved by [`Actor.answer`](https://serenity-js.org/api/core/class/Actor/#answer).
*
* @group Questions
*/
export type Answerable<T> = Question<Promise<T>> | Question<T> | Promise<T> | T;