typescript - fp ts How to choose a result according of an Option