Skip to content

Commit

Permalink
Update to IChoiceTransitionOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Sep 5, 2023
1 parent 7165b37 commit d28c139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Construct } from 'constructs';
import { StateType } from './private/state-type';
import { ChoiceTransitionOptions, State } from './state';
import { IChoiceTransitionOptions, State } from './state';
import { Chain } from '../chain';
import { Condition } from '../condition';
import { IChainable, INextable } from '../types';
Expand Down Expand Up @@ -53,7 +53,7 @@ export class Choice extends State {
/**
* If the given condition matches, continue execution with the given state
*/
public when(condition: Condition, next: IChainable, options: ChoiceTransitionOptions = {}): Choice {
public when(condition: Condition, next: IChainable, options: IChoiceTransitionOptions = {}): Choice {
super.addChoice(condition, next.startState, options);
return this;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-stepfunctions/lib/states/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export abstract class State extends Construct implements IChainable {
/**
* Add a choice branch to this state
*/
protected addChoice(condition: Condition, next: State, options: ChoiceTransitionOptions) {
protected addChoice(condition: Condition, next: State, options: IChoiceTransitionOptions) {
this.choices.push({ condition, next, ...options });
next.startState.addIncoming(this);
if (this.containingGraph) {
Expand Down Expand Up @@ -479,7 +479,7 @@ export interface FindStateOptions {
/**
* A Choice Transition
*/
interface ChoiceTransition extends ChoiceTransitionOptions {
interface ChoiceTransition extends IChoiceTransitionOptions {
/**
* State to transition to
*/
Expand All @@ -494,7 +494,7 @@ interface ChoiceTransition extends ChoiceTransitionOptions {
/**
* Options for Choice Transition
*/
export interface ChoiceTransitionOptions {
export interface IChoiceTransitionOptions {
/**
* An optional description for the choice transition
*
Expand Down

0 comments on commit d28c139

Please sign in to comment.