{"version":3,"file":"_isTypeInt32.mjs","names":[],"sources":["../../src/internal/_isTypeInt32.ts"],"sourcesContent":["/**\n * Test whether a number is an integer in the signed 32-bit range.\n *\n * @evidence contracts/common.md#principled-implementation An integer in the signed 32-bit range, tested by equality with its floor and the two bounds.\n * @evidence contracts/common.md#clear-and-simple-design One expression and two constants.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The bounds are the type's.\n * @evidence contracts/common.md#meaningful-documentation A comment states the range.\n */\nexport const _isTypeInt32 = (value: number): boolean =>\n  Math.floor(value) === value && MINIMUM <= value && value <= MAXIMUM;\n\nconst MINIMUM = -(2 ** 31);\nconst MAXIMUM = 2 ** 31 - 1;\n"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAgB,UAC3B,KAAK,MAAM,KAAK,MAAM,SAAS,WAAW,SAAS,SAAS;AAE9D,MAAM,UAAU,EAAE,KAAK;AACvB,MAAM,UAAU,KAAK,KAAK"}