UNPKG

the-moby-effect

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