FsToolkit.ErrorHandling
string option
and want to call the tryParseInt
function that we defined in the Result.map2 example, we can achieve it using the traverseResult
function as below:CreatePostRequest
type that we defined in Result.map3 example contains a Location option
. The corresponding DTO objects would look like this:LocationDto
to a Location
:CreatePostRequestDto
to a CreatePostRequest
, we can make use of traverseResult
as below: