@serenity-js/core 3.9.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/lib/model/CorrelationId.js +1 -1
- package/lib/model/CorrelationId.js.map +1 -1
- package/lib/screenplay/Question.d.ts +12 -4
- package/lib/screenplay/Question.d.ts.map +1 -1
- package/lib/screenplay/Question.js +16 -4
- package/lib/screenplay/Question.js.map +1 -1
- package/lib/screenplay/questions/ChainableMetaQuestion.d.ts +26 -0
- package/lib/screenplay/questions/ChainableMetaQuestion.d.ts.map +1 -0
- package/lib/screenplay/questions/ChainableMetaQuestion.js +3 -0
- package/lib/screenplay/questions/ChainableMetaQuestion.js.map +1 -0
- package/lib/screenplay/questions/List.d.ts +58 -11
- package/lib/screenplay/questions/List.d.ts.map +1 -1
- package/lib/screenplay/questions/List.js +145 -42
- package/lib/screenplay/questions/List.js.map +1 -1
- package/lib/screenplay/questions/MetaQuestion.d.ts +2 -2
- package/lib/screenplay/questions/MetaQuestion.d.ts.map +1 -1
- package/lib/screenplay/questions/index.d.ts +1 -0
- package/lib/screenplay/questions/index.d.ts.map +1 -1
- package/lib/screenplay/questions/index.js +1 -0
- package/lib/screenplay/questions/index.js.map +1 -1
- package/package.json +4 -4
- package/src/model/CorrelationId.ts +1 -1
- package/src/screenplay/Question.ts +20 -7
- package/src/screenplay/questions/ChainableMetaQuestion.ts +30 -0
- package/src/screenplay/questions/List.ts +246 -69
- package/src/screenplay/questions/MetaQuestion.ts +2 -2
- package/src/screenplay/questions/index.ts +1 -0
|
@@ -16,7 +16,7 @@ import type { Question } from '../Question';
|
|
|
16
16
|
*
|
|
17
17
|
* @group Questions
|
|
18
18
|
*/
|
|
19
|
-
export interface MetaQuestion<Supported_Context_Type,
|
|
19
|
+
export interface MetaQuestion<Supported_Context_Type, Returned_Question_Type extends Question<unknown>> {
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Answers the given `MetaQuestion` in the context of another {@apilink Answerable}.
|
|
@@ -24,7 +24,7 @@ export interface MetaQuestion<Supported_Context_Type, Answer_Type> {
|
|
|
24
24
|
* #### Learn more
|
|
25
25
|
* - {@apilink List}
|
|
26
26
|
*/
|
|
27
|
-
of(context: Answerable<Supported_Context_Type>):
|
|
27
|
+
of(context: Answerable<Supported_Context_Type>): Returned_Question_Type;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Human-readable description of this {@apilink MetaQuestion},
|