1fda9e8242
Signed-off-by: prescientmoon <git@moonythm.dev> |
||
---|---|---|
.. | ||
.github/workflows | ||
src | ||
.gitignore | ||
.prettierrc | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
rollup.config.ts | ||
tsconfig.json |
Option
Installation
npm install @adrielus/option
(There is also an amd build at /dist/bundle.amd.js
which uses the Option
namespace)
Usage
Curently there are no docs, but all functions have the same type definition as the ones from fsharp (except the ones from my package are not curreied)
There are also a few original helpers (match, flat and withDefault), but I'ts pretty easy to guess what those do
Contributing
First, clone this repo:
git clone https://github.com/Mateiadrielrafael/option
cd option
Then use pnpm to install the dependencies:
pnpm install
You can use the build
command to build the package (this is dont automatically by github actions):
pnpm run build