the-moby-effect
Version:
Moby/Docker API client built using effect-ts
25 lines • 746 B
JavaScript
/**
* 8bit 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 UInt8Brand = /*#__PURE__*/Brand.nominal();
/**
* 8bit unsigned integer.
*
* @since 1.0.0
* @category Schemas
*/
export const UInt8 = /*#__PURE__*/Function.pipe(Schema.Int, /*#__PURE__*/Schema.greaterThanOrEqualTo(0), /*#__PURE__*/Schema.lessThanOrEqualTo(2 ** 8 - 1), /*#__PURE__*/Schema.fromBrand(UInt8Brand), /*#__PURE__*/Schema.annotations({
identifier: "UInt8",
title: "8-bit unsigned integer",
description: "An 8-bit unsigned integer."
}));
//# sourceMappingURL=uInt8.js.map