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

@swan-io/boxed

Package Overview
Dependencies
Maintainers
1
Versions
52
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 0.1.2 to 0.2.0

4

dist/Dict.d.ts

@@ -1,3 +0,3 @@

export declare function entries<T>(value: T): { [K in keyof T]: K extends string ? [K, T[K]] : never; }[keyof T][];
export declare function keys<T>(value: T): { [K in keyof T]: K extends string ? K : never; }[keyof T][];
export declare function entries<T>(value: T): NonNullable<{ [K in keyof T]: K extends string ? [K, T[K]] : never; }[keyof T]>[];
export declare function keys<T>(value: T): NonNullable<{ [K in keyof T]: K extends string ? K : never; }[keyof T]>[];
export declare function values<T>(value: T): { [K in keyof T]: K extends string ? T[K] : never; }[keyof T][];

@@ -33,11 +33,5 @@ import { Option } from "./Option";

Error: <Ok_1, Error_2>(error: Error_2) => Result<Ok_1, Error_2>;
fromExecution<ReturnValue>(func: () => ReturnValue): (ResultClass<unknown, unknown> & {
tag: "Error";
value: unknown;
}) | (ResultClass<unknown, unknown> & {
tag: "Ok";
value: unknown;
});
fromPromise<ReturnValue_1>(promise: Promise<ReturnValue_1>): Promise<Result<ReturnValue_1, unknown>>;
equals: <Value, Error_3>(a: Result<Value, Error_3>, b: Result<Value, Error_3>, equals: (a: Value, b: Value) => boolean) => boolean;
fromExecution<ReturnValue, Error_3 = unknown>(func: () => ReturnValue): Result<ReturnValue, Error_3>;
fromPromise<ReturnValue_1, Error_4 = unknown>(promise: Promise<ReturnValue_1>): Promise<Result<ReturnValue_1, Error_4>>;
equals: <Value, Error_5>(a: Result<Value, Error_5>, b: Result<Value, Error_5>, equals: (a: Value, b: Value) => boolean) => boolean;
pattern: {

@@ -44,0 +38,0 @@ Ok: <T>(x: T) => {

{
"name": "@swan-io/boxed",
"version": "0.1.2",
"version": "0.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