node-result
Advanced tools
Comparing version 9.0.0 to 9.1.0
@@ -30,2 +30,3 @@ export { ResultError } from 'node-result-error'; | ||
unwrapAsync(): Promise<D>; | ||
isOkAndUnwrap(): [AtomOK, D]; | ||
} | ||
@@ -36,2 +37,3 @@ export declare class ResultFAIL<E> extends Result<undefined, E> { | ||
unwrapAsync(): Promise<E>; | ||
isOkAndUnwrap(): [AtomFAIL, E]; | ||
} | ||
@@ -38,0 +40,0 @@ export declare const ResultOk: <D>(data: D) => ResultOK<D>; |
@@ -68,2 +68,5 @@ "use strict"; | ||
} | ||
isOkAndUnwrap() { | ||
return [AtomOK.OK, this.data]; | ||
} | ||
} | ||
@@ -81,2 +84,5 @@ exports.ResultOK = ResultOK; | ||
} | ||
isOkAndUnwrap() { | ||
return [AtomFAIL.FAIL, this.error]; | ||
} | ||
} | ||
@@ -83,0 +89,0 @@ exports.ResultFAIL = ResultFAIL; |
{ | ||
"name": "node-result", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "result", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
8853
168