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

ts-error-as-value

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-error-as-value - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

package.json
{
"name": "ts-error-as-value",
"version": "0.2.3",
"version": "0.2.4",
"description": "Errors as values in typescript",

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

type Success<T> = import(".").Success<T>;
type Failure<E extends Error> = import(".").Failure<E>;
type Failure<T = void,E extends Error> = import(".").Failure<T, E>;
type Result<T = void, E extends Error = Error> = import(".").Result<T, E>;
declare class ResultIs {
static success: <T = void>(data?: T) => Success<T>;
static failure: <E extends Error>(failure: E) => Failure<E>;
static failure: <T = void, E extends Error>(failure: E) => Failure<T, E>;
}

@@ -9,0 +9,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