{"version":3,"file":"_isTypeInt16.mjs","names":[],"sources":["../../src/internal/_isTypeInt16.ts"],"sourcesContent":["/**\n * Test whether a number is an integer in the signed 16-bit range.\n *\n * @evidence contracts/common.md#principled-implementation An integer in the signed 16-bit range: it equals its floor, which excludes fractions and NaN, and lies between the 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 _isTypeInt16 = (value: number): boolean =>\n  Math.floor(value) === value && MINIMUM <= value && value <= MAXIMUM;\n\nconst MINIMUM = -32768;\nconst MAXIMUM = 32767;\n"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAgB,UAC3B,KAAK,MAAM,KAAK,MAAM,SAAS,WAAW,SAAS,SAAS;AAE9D,MAAM,UAAU;AAChB,MAAM,UAAU"}