"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. */

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

exports.PositiveInteger = PositiveInteger;