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>`.

5 lines (4 loc) 275 B
// We expose _core primitive_ directly. export { expectNotNull, isNotNull, isNull, unwrapNullable, } from './core/nullable.js'; // We expose _operators_ (typically named as `~ForNullable`) as bundled. export * as NullableOperator from './internal/intermediate_operators.js';