unwrapOrElseForMaybe
Return input as T
if the passed input is not null
and undefined
.
Otherwise, return the result of recoverer.
- The result of recoverer must not be
Maybe<*>
. - If the result of recoverer is
null
orundefined
, throwTypeError
.
function unwrapOrElseForMaybe<T>(input: Maybe<T>, recoverer: RecoveryFn<NotNullOrUndefined<T>>): NotNullOrUndefined<T>;
§
unwrapOrElseForMaybe<T>(input: Maybe<T>, recoverer: RecoveryFn<NotNullOrUndefined<T>>): NotNullOrUndefined<T>
[src]