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 1.0.1 to 1.1.0

3

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

@@ -5,2 +5,4 @@ import { Applicative, ApplicativeConstructor } from "./applicative";

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

@@ -7,0 +9,0 @@

{
"name": "@sweet-monads/interfaces",
"version": "1.0.1",
"version": "1.1.0",
"description": "Monad interfaces",
"main": "index.js",
"types": "index.d.ts",
"homepage": "https://github.com/JSMonk/sweet-monads/tree/master/interfaces",
"repository": {
"type": "git",
"url": "https://github.com/JSMonk/sweet-monads/tree/master/interfaces"
},
"scripts": {},

@@ -13,0 +8,0 @@ "author": "",

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