@hazae41/result
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -73,7 +73,14 @@ import { None, Some } from '@hazae41/option'; | ||
/** | ||
* Compile-time safely get `this.inner` | ||
* Compile-time safely get Ok's inner type | ||
* @returns `this.inner` | ||
* @throws if `this` is `Err` | ||
*/ | ||
get(): T; | ||
get(this: never): void; | ||
/** | ||
* Compile-time safely get Err's inner type | ||
* @returns `this.inner` | ||
* @throws if `this` is `Ok` | ||
*/ | ||
getErr(): T; | ||
/** | ||
* Transform `Result<T, E>` into `Option<T>` | ||
@@ -80,0 +87,0 @@ * @returns `Some(this.inner)` if `Ok`, `None` if `Err` |
@@ -66,7 +66,14 @@ import { Some, None } from '@hazae41/option'; | ||
/** | ||
* Compile-time safely get `this.inner` | ||
* Compile-time safely get Ok's inner type | ||
* @returns `this.inner` | ||
* @throws if `this` is `Err` | ||
*/ | ||
get(): T; | ||
/** | ||
* Compile-time safely get Err's inner type | ||
* @returns `this.inner` | ||
* @throws if `this` is `Ok` | ||
*/ | ||
getErr(this: never): void; | ||
/** | ||
* Transform `Result<T, E>` into `Option<T>` | ||
@@ -73,0 +80,0 @@ * @returns `Some(this.inner)` if `Ok`, `None` if `Err` |
{ | ||
"type": "module", | ||
"name": "@hazae41/result", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "Rust-like Result for TypeScript", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/result", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
215747
3345