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

ts-results

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-results - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

index.d.ts
interface BaseResult<T, E> {
map<T>(fn: (ok: T) => T): Result<T, E>;
map<T1>(fn: (ok: T) => T1): Result<T1, E>;
map<T2>(fn: null | undefined, errFn: (err: E) => T2): Result<T, T2>;
map<T, T2>(fn: (ok: T) => T, errFn: (err: E) => T2): Result<T, T2>;
map<T1, T2>(fn: (ok: T) => T1, errFn: (err: E) => T2): Result<T1, T2>;
unwrap(): T;

@@ -6,0 +6,0 @@ expect(msg: string): T;

{
"name": "ts-results",
"version": "1.0.2",
"version": "1.0.3",
"description": "A typescript implementation of Rust's Result object.",

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

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