mnotify-ts-sdk
Version:
Modern, zero-dependency TypeScript SDK for mNotify BMS API - Type-safe SMS, contacts, and account management with Railway-Oriented Programming
12 lines • 510 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.annotateResultError = annotateResultError;
exports.validationError = validationError;
const MNotifyError_1 = require("./MNotifyError");
function annotateResultError(result, context) {
return result.mapErr((error) => error.withContext(context));
}
function validationError(message, context, cause) {
return MNotifyError_1.MNotifyError.fromUnknown(cause, message, 0, context);
}
//# sourceMappingURL=errorContext.js.map