You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
JavaScript
16 lines
363 B
JavaScript
"use strict";
|
|
|
|
const defaultValue = require("default-value");
|
|
|
|
module.exports = function validationResult({ errors, newValue }) {
|
|
return {
|
|
errors: defaultValue(errors, []),
|
|
newValue: newValue,
|
|
___validatem_isSpecial: true,
|
|
___validatem_isValidationResult: true,
|
|
___validatem_validationResultVersion: 1,
|
|
};
|
|
};
|
|
|
|
module.exports.__modulePath = __dirname;
|