ts-error-as-value
Advanced tools
Comparing version 0.4.203 to 0.4.204
{ | ||
"name": "ts-error-as-value", | ||
"version": "0.4.203", | ||
"version": "0.4.204", | ||
"description": "Errors as values in typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,4 +6,10 @@ import { ok, err } from "."; | ||
const ResultIs = { | ||
success: ok, | ||
failure: err | ||
success: (...args: any[]) => { | ||
console.warn("ResultIs.success is deprecated and will be removed in a later update. Use ok instead."); | ||
return (ok as any)(...args); | ||
}, | ||
failure: (...args: any[]) => { | ||
console.warn("ResultIs.failure is deprecated and will be removed in a later update. Use err instead."); | ||
return (err as any)(...args); | ||
} | ||
}; | ||
@@ -10,0 +16,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
43367
933