fnts 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,31 +9,11 @@ import type { Map } from '../../types/map';
9
9
  * A type to unwrap the provided `Monad` into the new value type.
10
10
  */
11
11
  export declare type FoldMap<Monad extends Maybe<any>, NextValue> = Monad extends Just<any> ? NextValue : Monad extends Nothing ? null : never;
12
- /**
13
- * Maps the value of the provided `monad` through the `transition` function
14
- * and returns the mapped value or `null`.
15
- */
16
- export default function foldMap<Value, NextValue = Value>(transition: Map<Value, NextValue>): (monad: Just<Value>) => NextValue;
17
- /**
18
- * Maps the value of the provided `monad` through the `transition` function
19
- * and returns the mapped value or `null`.
20
- */
21
- export default function foldMap<Value, NextValue = Value>(transition: Map<Value, NextValue>): (monad: Nothing) => null;
22
12
  /**
23
13
  * Maps the value of the provided `monad` through the `transition` function
24
14
  * and returns the mapped value or `null`.
25
15
  */
26
16
  export default function foldMap<Value, NextValue = Value>(transition: Map<Value, NextValue>): (monad: Maybe<Value>) => NextValue | null;
27
- /**
28
- * Maps the value of the provided `monad` through the `transition` function
29
- * and returns the mapped value or `null`.
30
- */
31
- export default function foldMap<Value, NextValue = Value>(monad: Just<Value>, transition: Map<Value, NextValue>): NextValue;
32
- /**
33
- * Maps the value of the provided `monad` through the `transition` function
34
- * and returns the mapped value or `null`.
35
- */
36
- export default function foldMap<Value, NextValue = Value>(monad: Nothing, transition: Map<Value, NextValue>): null;
37
17
  /**
38
18
  * Maps the value of the provided `monad` through the `transition` function
39
19
  * and returns the mapped value or `null`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnts",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "license": "MIT",
5
5
  "author": "Dmytro Vasylkivskyi",
6
6
  "description": "TypeScript / JavaScript FP utilities",