Transform the success branch of a Result while passing the
failure branch through unchanged. Lets callers compose
Result-returning calls with synchronous transforms (e.g.
mapResult(await api.getEnergy(...), getChartLineOptions)) without
unwrapping then re-wrapping by hand.
Transform the success branch of a Result while passing the failure branch through unchanged. Lets callers compose Result-returning calls with synchronous transforms (e.g.
mapResult(await api.getEnergy(...), getChartLineOptions)) without unwrapping then re-wrapping by hand.