bguard
Version:
**bguard** is a powerful, flexible, and type-safe validation library for TypeScript. It allows developers to define validation schemas for their data structures and ensures that data conforms to the expected types and constraints.
18 lines (13 loc) • 602 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunkTJQ5NVL4js = require('./chunk-TJQ5NVL4.js');
// src/asserts/mix/equalTo.ts
var equalToErrorMessage = "The received value is not equal to expected";
var equalToErrorKey = "m:equalTo";
var equalTo = (expected) => (received, ctx) => {
if (expected !== received) ctx.addIssue(expected, received, equalToErrorKey);
};
equalTo.key = equalToErrorKey;
equalTo.message = equalToErrorMessage;
_chunkTJQ5NVL4js.setToDefaultLocale.call(void 0, equalTo);
exports.equalTo = equalTo;
//# sourceMappingURL=chunk-TLPVFRWR.js.map