From 448dcf7856a74b72b96097e89a8713657ba4865b Mon Sep 17 00:00:00 2001 From: rowan Date: Mon, 31 Mar 2025 05:22:59 -0500 Subject: [PATCH] doc cleanup; export curry --- src/algebra/common.js | 6 +++++- src/algebra/option.js | 3 +++ src/curry.js | 2 -- src/index.js | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/algebra/common.js b/src/algebra/common.js index 203a93a..2a40692 100644 --- a/src/algebra/common.js +++ b/src/algebra/common.js @@ -34,11 +34,15 @@ export function chain(fn) { return fn(this[Value]) } +/** + * @template T + * @this {Set} + * @returns {T} + */ export function extract() { return this[Value] } - /** * @template T * @this {Applicative} diff --git a/src/algebra/option.js b/src/algebra/option.js index 306bf6c..1187cf5 100644 --- a/src/algebra/option.js +++ b/src/algebra/option.js @@ -100,6 +100,9 @@ export const Some = value => ({ fold }) +/** + * @returns {None} + */ export const None = () => None None.isSome = isSome None.isNone = isNone diff --git a/src/curry.js b/src/curry.js index 48b3f94..98bc65e 100644 --- a/src/curry.js +++ b/src/curry.js @@ -69,5 +69,3 @@ export function curry(func) { } } - - diff --git a/src/index.js b/src/index.js index b1f26e0..cce5240 100644 --- a/src/index.js +++ b/src/index.js @@ -1,2 +1,3 @@ export * from './algebra/index.js' +export * from './curry.js'