@typed/maybe
Advanced tools
Comparing version 4.0.0 to 4.1.0
{ | ||
"name": "@typed/maybe", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Well-typed Maybe data structure", | ||
@@ -19,3 +19,3 @@ "main": "lib/index.js", | ||
"@typed/core": "2.1.0", | ||
"@typed/functions": "2.0.0" | ||
"@typed/functions": "2.1.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
# @typed/maybe -- 3.1.0 | ||
# @typed/maybe -- 4.0.0 | ||
@@ -16,2 +16,20 @@ Well-typed Maybe data structure | ||
#### Just | ||
<p> | ||
A JSON-serializable Just data-structure | ||
</p> | ||
```typescript | ||
export interface Just<A> { | ||
readonly '@typed/Just': A | ||
} | ||
``` | ||
#### Just.of\<A\>(value: A): Just\<A\> | ||
@@ -65,2 +83,21 @@ | ||
#### Nothing | ||
<p> | ||
The Nothing type, used in place of nulls or undefined. | ||
</p> | ||
```typescript | ||
export interface Nothing { | ||
readonly '@typed/Nothing': true | ||
} | ||
export const Nothing: Nothing = { '@typed/Nothing': true } | ||
``` | ||
#### ap\<A, B\>(fn: Maybe\<(value: A) =\> B\>, value: Maybe\<A\>): Maybe\<B\> | ||
@@ -67,0 +104,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
460
58367
105
+ Added@typed/functions@2.1.0(transitive)
- Removed@typed/functions@2.0.0(transitive)
Updated@typed/functions@2.1.0