ts-results
Advanced tools
Comparing version 1.0.2 to 1.0.3
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
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
8422