"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PositiveInteger = void 0;

var _validators = require("./validators");

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * @memberOf module:types
 * @typedef {Number} PositiveInteger
 */
var PositiveInteger = (0, _validators.makeValidator)(function (x) {
  return Number.isInteger(x) && x >= 0;
}, 'Not an Integer.');
exports.PositiveInteger = PositiveInteger;