index.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = {
  2. validate: require('./lib/validate'),
  3. validateStrict: require('./lib/validate-strict'),
  4. coerce: require('./lib/coerce'),
  5. infer: require('./lib/infer'),
  6. isEqual: require('./lib/is-equal'),
  7. stringify: require('./lib/stringify'),
  8. parse: require('./lib/parse'),
  9. parseHuman: require('./lib/parse-human'),
  10. stringifyHuman: require('./lib/stringify-human'),
  11. hydrate: require('./lib/hydrate'),
  12. dehydrate: require('./lib/dehydrate'),
  13. compile: require('./lib/compile'),
  14. sample: require('./lib/sample'),
  15. getDefaultExemplar: require('./lib/get-default-exemplar'),
  16. getDisplayType: require('./lib/get-display-type'),
  17. getRdt: require('./lib/get-rdt'),
  18. isSpecific: require('./lib/is-specific'),
  19. isInvalidExample: require('./lib/is-invalid-example'),
  20. reify: require('./lib/reify'),
  21. intersection: require('./lib/intersection'),
  22. union: require('./lib/union'),
  23. getPathInfo: require('./lib/get-path-info'),
  24. getBaseVal: require('./lib/get-base-val'),
  25. coerceExemplar: require('./lib/coerce-exemplar'),
  26. getPatternFromExemplar: require('./lib/get-pattern-from-exemplar'),
  27. cast: require('./lib/cast'),
  28. rebuild: require('./lib/rebuild'),
  29. getDisplayTypeLabel: require('./lib/get-display-type-label'),
  30. getNounPhrase: require('./lib/get-noun-phrase'),
  31. GRAMMAR: require('./lib/GRAMMAR'),
  32. getInvalidityMessage: require('./lib/get-invalidity-message'),
  33. inferDisplayType: require('./lib/infer-display-type'),
  34. validateExemplarStrict: require('./lib/validate-exemplar-strict'),
  35. };
  36. // Backwards compatibility
  37. module.exports.encode = module.exports.stringify;
  38. module.exports.decode = module.exports.parse;
  39. module.exports.typeInfo = require('./lib/type-info');
  40. module.exports.inspect = module.exports.compile;
  41. module.exports.exemplar = module.exports.getDefaultExemplar;
  42. module.exports.isStrictType = module.exports.isSpecific;