You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

try-typescript

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

try-typescript - npm Package Compare versions

Comparing version

to
0.4.5

2

dist/lib/Try.d.ts

@@ -11,3 +11,3 @@ export declare class Try<T> {

static failure<T>(error: Error): Try<T>;
static of<T>(fn: () => T): Try<T>;
static of<T>(fn: () => T | Promise<T>): Try<Awaited<T>>;
private setValue;

@@ -14,0 +14,0 @@ private setError;

{
"name": "try-typescript",
"version": "0.4.4",
"version": "0.4.5",
"description": "This repository implements a Try class inspired by the Vavr library in Java. The Try class is a functional programming construct for handling computations that may succeed or fail. It encapsulates exceptions and streamlines error handling, reducing boilerplate code and enhancing code readability. ",

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