UNPKG

flow-typer-js

Version:

Declarative static and runtime type checking with Flow

91 lines (40 loc) 2.63 kB
// import * as error from './error.js' import * as is from './is.js' import * as utils from './utils.js' import * as array from './types/array.js' import * as literals from './types/literals.js' import * as map from './types/map.js' import * as _maybe from './types/maybe.js' import * as _mixed from './types/mixed.js' import * as _object from './types/object.js' import * as primitives from './types/primitives.js' import * as tuple from './types/tuple.js' import * as union from './types/union.js' /*:: export type TypeValidatorMap<T> = { [key in keyof T]: $Call<T[key], mixed> } */ export const isNil = is.isNil export const isUndef = is.isUndef export const isBoolean = is.isBoolean export const isNumber = is.isNumber export const isString = is.isString export const isObject = is.isObject export const isType = utils.isType export const typeOf = utils.typeOf export const getType = utils.getType export const TypeValidatorError = error.TypeValidatorError export const validatorError = error.validatorError export const nil = primitives.nil export const undef = primitives.undef export const boolean = primitives.boolean export const number = primitives.number export const string = primitives.string export const literalOf = literals.literalOf export const maybe = _maybe.maybe export const mixed = _mixed.mixed export const object = _object.object export const objectOf = _object.objectOf export const optional = _object.optional export const arrayOf = array.arrayOf export const tupleOf = tuple.tupleOf export const unionOf = union.unionOf export const mapOf = map.mapOf