abstractList <Item_Type>
Hierarchy
Index
Methods
staticof
publicas
Maps this question to one of a different type.
Question.about('number returned as string', actor => '42') // returns: QuestionAdapter<string>
.as(Number) // returns: QuestionAdapter<number>Type parameters
- O
Parameters
mapping: (answer: Item_Type[]) => O | Promise<O>
Returns QuestionAdapter<O>
forEach
Parameters
callback: (current: CurrentItem<Item_Type>, index: number, items: Item_Type[]) => void | Promise<void>
Returns Task
abstracteachMappedTo
Type parameters
- Mapped_Item_Type
Parameters
question: MetaQuestion<Item_Type, Question<Mapped_Item_Type | Promise<Mapped_Item_Type>>>
Returns List<Mapped_Item_Type>
abstractwhere
Type parameters
- Answer_Type
Parameters
question: MetaQuestion<Item_Type, Question<Answer_Type | Promise<Answer_Type>>>
expectation: Expectation<Answer_Type>
Returns List<Item_Type>
abstractcount
Returns QuestionAdapter<number>
abstractfirst
Returns QuestionAdapter<Item_Type>
abstractlast
Returns QuestionAdapter<Item_Type>
abstractnth
Parameters
index: number
Returns QuestionAdapter<Item_Type>
answeredBy
Parameters
actor: AnswersQuestions & UsesAbilities
Returns Promise<Item_Type[]>
describedAs
Changes the description of this question’s subject.
Parameters
subject: string
Returns List<Item_Type>
toString
Returns the description of the subject of this Question.
Returns string
Constructors
constructor
Type parameters
- Item_Type
Parameters
collection: Answerable<Item_Type[]>
Returns List<Item_Type>
Serenity/JS Screenplay Pattern-style wrapper around Array and array-like structures - see PageElements.