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) • 302 B
JavaScript
// We expose _core primitive_ directly.
export { expectNotUndefined, isNotUndefined, isUndefined, unwrapUndefinable, } from './core/undefinable.js';
// We expose _operators_ (typically named as `~ForUndefinable`) as bundled.
export * as UndefinableOperator from './internal/intermediate_operators.js';