UNPKG

the-moby-effect

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