try-typescript
Advanced tools
Comparing version
@@ -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", |
41732
0.05%