UNPKG

the-moby-effect

Version:
25 lines 751 B
/** * 16bit signed integer schema. * * @since 1.0.0 */ import * as Brand from "effect/Brand"; import * as Function from "effect/Function"; import * as Schema from "effect/Schema"; /** * @since 1.0.0 * @category Branded constructors */ export const Int16Brand = /*#__PURE__*/Brand.nominal(); /** * 16bit signed integer. * * @since 1.0.0 * @category Schemas */ export const Int16 = /*#__PURE__*/Function.pipe(Schema.Int, /*#__PURE__*/Schema.greaterThanOrEqualTo(-(2 ** 15)), /*#__PURE__*/Schema.lessThanOrEqualTo(2 ** 15 - 1), /*#__PURE__*/Schema.fromBrand(Int16Brand), /*#__PURE__*/Schema.annotations({ identifier: "Int16", title: "16-bit signed integer", description: "A 16-bit signed integer." })); //# sourceMappingURL=int16.js.map