@effect/schema
Advanced tools
Comparing version 0.29.1 to 0.30.0
{ | ||
"name": "@effect/schema", | ||
"version": "0.29.1", | ||
"version": "0.30.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -736,19 +736,2 @@ /** | ||
/** | ||
* @category model | ||
* @since 1.0.0 | ||
*/ | ||
export type JsonArray = ReadonlyArray<Json>; | ||
/** | ||
* @category model | ||
* @since 1.0.0 | ||
*/ | ||
export type JsonObject = { | ||
readonly [key: string]: Json; | ||
}; | ||
/** | ||
* @category model | ||
* @since 1.0.0 | ||
*/ | ||
export type Json = null | boolean | number | string | JsonArray | JsonObject; | ||
/** | ||
* @category type id | ||
@@ -778,7 +761,2 @@ * @since 1.0.0 | ||
/** | ||
* @category constructors | ||
* @since 1.0.0 | ||
*/ | ||
export declare const json: Schema<Json>; | ||
/** | ||
* @category type id | ||
@@ -785,0 +763,0 @@ * @since 1.0.0 |
@@ -96,4 +96,4 @@ "use strict"; | ||
}); | ||
exports.json = exports.itemsCount = void 0; | ||
exports.optionalElement = exports.optional = exports.optionFromSelf = exports.optionFromNullable = exports.option = exports.omit = exports.object = exports.numberFromString = exports.number = exports.nullable = exports.null = exports.not = exports.nonPositiveBigint = exports.nonPositive = exports.nonNegativeBigint = exports.nonNegative = exports.nonNaN = exports.nonEmptyArray = exports.nonEmpty = exports.never = exports.negativeBigint = exports.negative = exports.multipleOf = exports.minLength = exports.minItems = exports.message = exports.maxLength = exports.maxItems = exports.make = exports.literal = exports.lessThanOrEqualToBigint = exports.lessThanOrEqualTo = exports.lessThanBigint = exports.lessThan = exports.length = exports.lazy = exports.keyof = void 0; | ||
exports.keyof = exports.itemsCount = void 0; | ||
exports.optionalElement = exports.optional = exports.optionFromSelf = exports.optionFromNullable = exports.option = exports.omit = exports.object = exports.numberFromString = exports.number = exports.nullable = exports.null = exports.not = exports.nonPositiveBigint = exports.nonPositive = exports.nonNegativeBigint = exports.nonNegative = exports.nonNaN = exports.nonEmptyArray = exports.nonEmpty = exports.never = exports.negativeBigint = exports.negative = exports.multipleOf = exports.minLength = exports.minItems = exports.message = exports.maxLength = exports.maxItems = exports.make = exports.literal = exports.lessThanOrEqualToBigint = exports.lessThanOrEqualTo = exports.lessThanBigint = exports.lessThan = exports.length = exports.lazy = void 0; | ||
Object.defineProperty(exports, "parse", { | ||
@@ -1173,4 +1173,5 @@ enumerable: true, | ||
})); | ||
exports.either = either; | ||
const arbitraryJson = fc => fc.jsonValue().map(json => json); | ||
// --------------------------------------------- | ||
// data/Json | ||
// --------------------------------------------- | ||
/** | ||
@@ -1180,2 +1181,3 @@ * @category type id | ||
*/ | ||
exports.either = either; | ||
const JsonNumberTypeId = "@effect/schema/JsonNumberTypeId"; | ||
@@ -1205,10 +1207,2 @@ /** | ||
})); | ||
/** | ||
* @category constructors | ||
* @since 1.0.0 | ||
*/ | ||
exports.JsonNumber = JsonNumber; | ||
const json = /*#__PURE__*/lazy(() => union(_null, string, JsonNumber, boolean, array(json), record(string, json)), { | ||
[I.ArbitraryHookId]: () => arbitraryJson | ||
}); | ||
// --------------------------------------------- | ||
@@ -1221,3 +1215,3 @@ // data/Number | ||
*/ | ||
exports.json = json; | ||
exports.JsonNumber = JsonNumber; | ||
const FiniteTypeId = "@effect/schema/FiniteTypeId"; | ||
@@ -1224,0 +1218,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
916072
17368