lemons
Advanced tools
Changelog
v1.7.0-beta1
Changelog
v1.5.0
Maybe.expect()
and Result.expect()
methods.
(Thanks @LetTheComputerDecide!)Changelog
v1.4.3
Changelog
v1.4.2
Fix static methods type definitions (thanks @VPagani!)
Improved TypeScript setup
dtslint
)Changelog
v1.4.1
LazyResult.error()
method, similar to LazyResult.value()
, but for the
error value. (Thanks, @Vages!)Changelog
v1.4.0
Breaking changes:
Result.toMaybe()
- this method wasn’t commonly used, but pulled
in Maybe
into compiled bundles, increasing its size.New features:
You can now directly import submodules of this package, for example:
// Previously
import { Result, Ok, Err } from 'lemons';
// Now possible
import Result, { Ok, Err } from 'lemons/Result';
// ^^^^^^^^^^^^^
Note that, when importing from the specific modules directly, you'll need to
make the main class (in this case Result
) a default import instead of
a named import.
Misc: