You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstmain=asl.deploy.asStateMachine(async(input: Input)=>{if(typeofinput.delayInSeconds!=="number"){thrownewValidationError("delayInSeconds must be a number");}awaitasl.wait({seconds: input.delayInSeconds});});interfaceInput{delayInSeconds: number|undefined;}classValidationErrorextendsError{constructor(message: string){super(message);}}
exportconstmain=asl.deploy.asStateMachine(async(input: Input)=>{if(typeofinput.delayInSeconds!=="number"){input.delayInSeconds=5;}if(input.delayInSeconds>10||input.delayInSeconds<1){thrownewValidationError("delay in seconds must be numeric value no greater than 10 and no smaller than 1");}awaitasl.wait({seconds: input.delayInSeconds});returninput.delayInSeconds;});interfaceInput{delayInSeconds: number|undefined;}classValidationErrorextendsError{constructor(message: string){super(message);}}