index.js 740 B

123456789101112131415161718192021222324252627282930313233
  1. import string from './string';
  2. import method from './method';
  3. import number from './number';
  4. import boolean from './boolean';
  5. import regexp from './regexp';
  6. import integer from './integer';
  7. import float from './float';
  8. import array from './array';
  9. import object from './object';
  10. import enumValidator from './enum';
  11. import pattern from './pattern';
  12. import date from './date';
  13. import required from './required';
  14. import type from './type';
  15. export default {
  16. string: string,
  17. method: method,
  18. number: number,
  19. boolean: boolean,
  20. regexp: regexp,
  21. integer: integer,
  22. float: float,
  23. array: array,
  24. object: object,
  25. 'enum': enumValidator,
  26. pattern: pattern,
  27. date: date,
  28. url: type,
  29. hex: type,
  30. email: type,
  31. required: required
  32. };