/*! @preserve * * tcomb.js - Type checking and DDD for JavaScript * * The MIT License (MIT) * * Copyright (c) 2014-2016 Giulio Canti * */ // core var t = require('./lib/assert'); // types t.Any = require('./lib/Any'); t.Array = require('./lib/Array'); t.Boolean = require('./lib/Boolean'); t.Date = require('./lib/Date'); t.Error = require('./lib/Error'); t.Function = require('./lib/Function'); t.Nil = require('./lib/Nil'); t.Number = require('./lib/Number'); t.Integer = require('./lib/Integer'); t.IntegerT = t.Integer; t.Object = require('./lib/Object'); t.RegExp = require('./lib/RegExp'); t.String = require('./lib/String'); t.Type = require('./lib/Type'); t.TypeT = t.Type; // short alias are deprecated t.Arr = t.Array; t.Bool = t.Boolean; t.Dat = t.Date; t.Err = t.Error; t.Func = t.Function; t.Num = t.Number; t.Obj = t.Object; t.Re = t.RegExp; t.Str = t.String; // combinators t.dict = require('./lib/dict'); t.declare = require('./lib/declare'); t.enums = require('./lib/enums'); t.irreducible = require('./lib/irreducible'); t.list = require('./lib/list'); t.maybe = require('./lib/maybe'); t.refinement = require('./lib/refinement'); t.struct = require('./lib/struct'); t.tuple = require('./lib/tuple'); t.union = require('./lib/union'); t.func = require('./lib/func'); t.intersection = require('./lib/intersection'); t.subtype = t.refinement; t.inter = require('./lib/interface'); // IE8 alias t['interface'] = t.inter; // functions t.assert = t; t.update = require('./lib/update'); t.mixin = require('./lib/mixin'); t.isType = require('./lib/isType'); t.is = require('./lib/is'); t.getTypeName = require('./lib/getTypeName'); t.match = require('./lib/match'); module.exports = t;