decode-it
Version:
a simple zero-dependency type safe json decoder for typescript
9 lines • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPassedValidation = exports.isFailedValidation = exports.passedValidation = void 0;
exports.passedValidation = { state: 'passed' };
const isFailedValidation = (v) => v.state === 'failed';
exports.isFailedValidation = isFailedValidation;
const isPassedValidation = (v) => v.state === 'passed';
exports.isPassedValidation = isPassedValidation;
//# sourceMappingURL=ValidationResult.js.map