Levin/backend/node_modules/io-ts/es6/ThrowReporter.js
2024-06-20 00:45:01 +03:00

13 lines
267 B
JavaScript

import { PathReporter } from './PathReporter';
/**
* @since 1.0.0
* @deprecated
*/
export var ThrowReporter = {
report: function (validation) {
if (validation.isLeft()) {
throw PathReporter.report(validation).join('\n');
}
}
};