@@ -581,14 +581,14 @@ const resAsync = parseUserInput(userInput)
581581 .asyncAndThen (insertUser )
582582
583583// Note no LogError shows up in the Result type
584- resAsync .then ((res : Result <void , ParseError | InsertError >) => {e
584+ resAsync .then ((res : Result <void , ParseError | InsertError >) => {
585585 if (res .isErr ()){
586586 console .log (" Oops, at least one step failed" , res .error )
587587 }
588588 else {
589589 console .log (" User input has been parsed and inserted successfully." )
590590 }
591- }))
591+ })
592592```
593593
594594[ ⬆️ Back to top] ( #toc )
@@ -628,14 +628,14 @@ const resAsync = parseUserInput(userInput)
628628 .asyncAndThen (insertUser )
629629
630630// Note no LogError shows up in the Result type
631- resAsync .then ((res : Result <void , ParseError | InsertError >) => {e
631+ resAsync .then ((res : Result <void , ParseError | InsertError >) => {
632632 if (res .isErr ()){
633633 console .log (" Oops, at least one step failed" , res .error )
634634 }
635635 else {
636636 console .log (" User input has been parsed and inserted successfully." )
637637 }
638- }))
638+ })
639639```
640640
641641[ ⬆️ Back to top] ( #toc )
@@ -675,14 +675,14 @@ const resAsync = parseUserInput(userInput)
675675 .andThrough (validateUser )
676676 .asyncAndThen (insertUser )
677677
678- resAsync .then ((res : Result <void , ParseErro | ValidateError | InsertError >) => {e
678+ resAsync .then ((res : Result <void , ParseErro | ValidateError | InsertError >) => {
679679 if (res .isErr ()){
680680 console .log (" Oops, at least one step failed" , res .error )
681681 }
682682 else {
683683 console .log (" User input has been parsed, validated, inserted successfully." )
684684 }
685- }))
685+ })
686686```
687687
688688[ ⬆️ Back to top] ( #toc )
@@ -712,14 +712,14 @@ const resAsync = parseUserInput(userInput)
712712 .asyncAndThrough (insertUser )
713713 .andThen (sendNotification )
714714
715- resAsync .then ((res : Result <void , ParseError | InsertError | NotificationError >) => {e
715+ resAsync .then ((res : Result <void , ParseError | InsertError | NotificationError >) => {
716716 if (res .isErr ()){
717717 console .log (" Oops, at least one step failed" , res .error )
718718 }
719719 else {
720720 console .log (" User has been parsed, inserted and notified successfully." )
721721 }
722- }))
722+ })
723723```
724724
725725[ ⬆️ Back to top] ( #toc )
@@ -1314,14 +1314,14 @@ const resAsync = insertUser(user)
13141314 .andThen (sendNotification )
13151315
13161316// Note there is no LogError in the types below
1317- resAsync .then ((res : Result <void , InsertError | NotificationError >) => {e
1317+ resAsync .then ((res : Result <void , InsertError | NotificationError >) => {
13181318 if (res .isErr ()){
13191319 console .log (" Oops, at least one step failed" , res .error )
13201320 }
13211321 else {
13221322 console .log (" User has been inserted and notified successfully." )
13231323 }
1324- }))
1324+ })
13251325```
13261326
13271327[ ⬆️ Back to top] ( #toc )
@@ -1361,14 +1361,14 @@ const resAsync = insertUser(user)
13611361 .andThen (sendNotification )
13621362
13631363// Note there is no LogError in the types below
1364- resAsync .then ((res : Result <void , InsertError | NotificationError >) => {e
1364+ resAsync .then ((res : Result <void , InsertError | NotificationError >) => {
13651365 if (res .isErr ()){
13661366 console .log (" Oops, at least one step failed" , res .error )
13671367 }
13681368 else {
13691369 console .log (" User has been inserted and notified successfully." )
13701370 }
1371- }))
1371+ })
13721372```
13731373
13741374[ ⬆️ Back to top] ( #toc )
@@ -1409,14 +1409,14 @@ const resAsync = buildUser(userRaw)
14091409 .andThrough (insertUser )
14101410 .andThen (sendNotification )
14111411
1412- resAsync .then ((res : Result <void , BuildError | InsertError | NotificationError >) => {e
1412+ resAsync .then ((res : Result <void , BuildError | InsertError | NotificationError >) => {
14131413 if (res .isErr ()){
14141414 console .log (" Oops, at least one step failed" , res .error )
14151415 }
14161416 else {
14171417 console .log (" User data has been built, inserted and notified successfully." )
14181418 }
1419- }))
1419+ })
14201420```
14211421
14221422[ ⬆️ Back to top] ( #toc )
0 commit comments