the-moby-effect
Version:
Moby/Docker API client built using effect-ts
25 lines • 754 B
JavaScript
/**
* 64bit 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 Int64Brand = /*#__PURE__*/Brand.nominal();
/**
* 64bit signed integer.
*
* @since 1.0.0
* @category Schemas
*/
export const Int64 = /*#__PURE__*/Function.pipe(Schema.Number, /*#__PURE__*/Schema.greaterThanOrEqualTo(-(2 ** 63)), /*#__PURE__*/Schema.lessThanOrEqualTo(2 ** 63 - 1), /*#__PURE__*/Schema.fromBrand(Int64Brand), /*#__PURE__*/Schema.annotations({
identifier: "Int64",
title: "64-bit signed integer",
description: "A 64-bit signed integer."
}));
//# sourceMappingURL=int64.js.map