type-check
Version:
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
17 lines (16 loc) • 464 B
JavaScript
// Generated by LiveScript 1.6.0
(function(){
var VERSION, parseType, parsedTypeCheck, typeCheck;
VERSION = '0.4.0';
parseType = require('./parse-type');
parsedTypeCheck = require('./check');
typeCheck = function(type, input, options){
return parsedTypeCheck(parseType(type), input, options);
};
module.exports = {
VERSION: VERSION,
typeCheck: typeCheck,
parsedTypeCheck: parsedTypeCheck,
parseType: parseType
};
}).call(this);