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

@sweet-monads/interfaces

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sweet-monads/interfaces - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

functor.ts
export interface Functor<T> {
map<R>(f: (a: T) => R): Functor<R>;
asyncMap<R>(f: (a: T) => Promise<R>): Promise<Functor<R>>;
}

@@ -5,2 +5,3 @@ import { Functor } from "./functor";

chain<B>(f: (a: T) => Monad<B>): Monad<B>;
asyncChain<B>(f: (a: T) => Promise<Monad<B>>): Promise<Monad<B>>;
}

2

package.json
{
"name": "@sweet-monads/interfaces",
"version": "0.0.1",
"version": "0.0.2",
"description": "Monad interfaces",

@@ -5,0 +5,0 @@ "main": "index.js",

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