Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@typed/maybe

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typed/maybe - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc