Maybe monad in typescript. It's like the Option type in Rust.from method is used to take in a value and convert it to a Maybe<value>. For example:Maybe<value | undefined>. The Maybe monad handles this by using none so there's no need to have Maybe<value | undefined>, it just needs to be Maybe<value> . For example: