You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
788 B

  1. // Generated by LiveScript 1.4.0
  2. (function(){
  3. var parseString, cast, parseType, VERSION, parsedTypeParse, parse;
  4. parseString = require('./parse-string');
  5. cast = require('./cast');
  6. parseType = require('type-check').parseType;
  7. VERSION = '0.3.0';
  8. parsedTypeParse = function(parsedType, string, options){
  9. options == null && (options = {});
  10. options.explicit == null && (options.explicit = false);
  11. options.customTypes == null && (options.customTypes = {});
  12. return cast(parseString(parsedType, string, options), parsedType, options);
  13. };
  14. parse = function(type, string, options){
  15. return parsedTypeParse(parseType(type), string, options);
  16. };
  17. module.exports = {
  18. VERSION: VERSION,
  19. parse: parse,
  20. parsedTypeParse: parsedTypeParse
  21. };
  22. }).call(this);