UNPKG

typia

Version:

Superfast runtime validators with only one line

9 lines 399 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isTypeInt64 = void 0; const _isTypeInt64 = (value) => Math.floor(value) === value && MINIMUM <= value && value <= MAXIMUM; exports._isTypeInt64 = _isTypeInt64; // The maximum is `2 ** 63 - 1`, the int64 upper bound. const MINIMUM = -(2 ** 63); const MAXIMUM = 2 ** 63 - 1; //# sourceMappingURL=_isTypeInt64.js.map