index.js 643 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,
  17. method,
  18. number,
  19. boolean,
  20. regexp,
  21. integer,
  22. float,
  23. array,
  24. object,
  25. enum: enumValidator,
  26. pattern,
  27. date,
  28. url: type,
  29. hex: type,
  30. email: type,
  31. required,
  32. };