shikeying
2023-04-07 c192f834c4e092bc7c0f2722c343c25c1be619ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
 
var Validator = require('../Validator');
 
/**
 * Validate the given template descriptors and
 * return a list of errors.
 *
 * @param {Array<TemplateDescriptor>} descriptors
 *
 * @return {Array<Error>}
 */
module.exports = function validate(descriptors) {
 
  return new Validator().addAll(descriptors).getErrors();
};