@polywrap/result
Advanced tools
Comparing version
@@ -5,5 +5,6 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
exports.ResultErr = function (error) { | ||
var ResultErr = function (error) { | ||
return { ok: false, error: error }; | ||
}; | ||
exports.ResultErr = ResultErr; | ||
//# sourceMappingURL=ResultErr.js.map |
@@ -5,5 +5,6 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
exports.ResultOk = function (data) { | ||
var ResultOk = function (data) { | ||
return { ok: true, value: data }; | ||
}; | ||
exports.ResultOk = ResultOk; | ||
//# sourceMappingURL=ResultOk.js.map |
{ | ||
"name": "@polywrap/result", | ||
"description": "Result helpers", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"ts-node": "8.10.2", | ||
"typescript": "4.0.7" | ||
"typescript": "4.1.6" | ||
}, | ||
@@ -24,0 +24,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3356
2.88%47
4.44%