UNPKG

the-moby-effect

Version:
25 lines 751 B
/** * 32bit 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 Int32Brand = /*#__PURE__*/Brand.nominal(); /** * 32bit signed integer. * * @since 1.0.0 * @category Schemas */ export const Int32 = /*#__PURE__*/Function.pipe(Schema.Int, /*#__PURE__*/Schema.greaterThanOrEqualTo(-(2 ** 31)), /*#__PURE__*/Schema.lessThanOrEqualTo(2 ** 31 - 1), /*#__PURE__*/Schema.fromBrand(Int32Brand), /*#__PURE__*/Schema.annotations({ identifier: "Int32", title: "32-bit signed integer", description: "A 32-bit signed integer." })); //# sourceMappingURL=int32.js.map