Packages › trotsky › StepWhen › (constructor)
StepWhen.(constructor)
Creates an instance of StepWhen
.
Signature:
typescript
constructor(agent: AtpAgent, parent: P, predicate: Resolvable<StepWhenPredicate>);
Parameters
Parameter | Type | Description |
---|---|---|
agent | AtpAgent | The ATP agent used for API interactions. |
parent | P | The parent step or context. |
predicate | Resolvable<StepWhenPredicate> | A boolean or a resolvable that resolves to a boolean, determining the condition for this step. |