UNPKG

the-moby-effect

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