ts-error-as-value
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28242