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>`.
5 lines (4 loc) • 296 B
JavaScript
// We expose _core primitive_ directly.
export { expectNotNullOrUndefined, isNotNullOrUndefined, isNullOrUndefined, unwrapMaybe, } from './core/maybe.js';
// We expose _operators_ (typically named as `~ForMaybe`) as bundled.
export * as MaybeOperator from './internal/intermediate_operators.js';