UNPKG

option-t

Version:

A toolkit of Nullable/Option/Result type implementation in ECMAScript. Their APIs are inspired by Rust's `Option<T>` and `Result<T, E>`.

7 lines (6 loc) 214 B
import { type Maybe } from '../core/maybe.js'; /** * Return _b_ if _a_ is not `null` and `undefined`. * Otherwise, return _a_. */ export declare function andForMaybe<T, U>(a: Maybe<T>, b: Maybe<U>): Maybe<U>;