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

@swan-io/boxed

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swan-io/boxed - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

10

dist/AsyncData.d.ts

@@ -93,7 +93,7 @@ import { Option, Result } from "./OptionResult";

mapOr<B>(this: AsyncData<A>, defaultValue: B, mapper: (value: A) => B): B;
match<B>(this: AsyncData<A>, config: {
Done: (value: A) => B;
Loading: () => B;
NotAsked: () => B;
}): B;
match<B1, B2 = B1, B3 = B1 | B2>(this: AsyncData<A>, config: {
Done: (value: A) => B1;
Loading: () => B2;
NotAsked: () => B3;
}): B1 | B2 | B3;
tap(this: AsyncData<A>, func: (asyncData: AsyncData<A>) => unknown): AsyncData<A>;

@@ -100,0 +100,0 @@ toOption(this: AsyncData<A>): Option<A>;

@@ -93,6 +93,6 @@ import { JsonOption, JsonResult, LooseRecord } from "./types";

*/
match<B>(this: Option<A>, config: {
Some: (value: A) => B;
None: () => B;
}): B;
match<B1, B2 = B1>(this: Option<A>, config: {
Some: (value: A) => B1;
None: () => B2;
}): B1 | B2;
/**

@@ -227,6 +227,6 @@ * Runs the callback and returns `this`

*/
match<B>(this: Result<A, E>, config: {
Ok: (value: A) => B;
Error: (error: E) => B;
}): B;
match<B1, B2 = B1>(this: Result<A, E>, config: {
Ok: (value: A) => B1;
Error: (error: E) => B2;
}): B1 | B2;
/**

@@ -233,0 +233,0 @@ * Runs the callback and returns `this`

@@ -0,1 +1,7 @@

# 3.2.0
Changes:
- Make `.match()` handlers signature more permissive (062830e, f9f98d4)
# 3.1.2

@@ -2,0 +8,0 @@

{
"name": "@swan-io/boxed",
"version": "3.1.2",
"version": "3.2.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Utility types for functional TypeScript",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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