UNPKG

the-moby-effect

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