Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public canEnterStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canEnterStep2Forwards;
case MovingDirection.Backwards:
return this.canEnterStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canExitStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canExitStep2Forwards;
case MovingDirection.Backwards:
return this.canExitStep2Backwards;
case MovingDirection.Stay:
return true;
}
};