197 packages found
Write cleaner TypeScript
A Typescript implementation of the Maybe data type
[fork] A structure for values that may not be available or computations that may fail.
Supervisor, Coroutine, Channel, select, AtomicPromise, Cancellation, Cache, InvList, IxList, and some utils.
- View more
A structure for values that may not be available or computations that may fail.
For things that are 'maybe' a promise!
Opinionated functional programming library with easy use in mind
Types and implementations whose APIs are inspired by Rust's `Option<T>` and `Result<T, E>`.
A lightweight stream-like maybe/or else monad for typescript. `maybe(val).valueOr(other)` grant you no unexpected undefined and hence allows you to write you TS-code in a more fluid way, skipping some of those if-else nestings.
Elegant and battle-tested validation library for type-safe input data (for TypeScript and Flow)
Option type inspired by Rust.
An optional library enabling the usage of optionals written in TypeScript
- maybe type
- optional type
- functional optional type
- typescript optional type
- typescript optional
Maybe is a type with tow variantes Some and None, can have nothing (None) or some value (Some). The Maybe variable makes it possible to have a something depending on the particular value.
TypeScript maybe monad for reaching child fields inside complicated objects.
Optional and Result monads implementations
Conditional expressions with Option support.