@effect/schema
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@effect/schema", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -248,3 +248,3 @@ <h3 align="center"> | ||
// Age is a schema that can decode a string to a number and encode a number to a string | ||
const Age = S.numerFromString(S.string); | ||
const Age = S.numberFromString(S.string); | ||
@@ -251,0 +251,0 @@ const Person = S.struct({ |
@@ -504,3 +504,3 @@ "use strict"; | ||
exports.transform = transform; | ||
const attachPropertySignature = (key, value) => schema => transform(schema, (0, _Function.pipe)(schema, extend(struct({ | ||
const attachPropertySignature = (key, value) => schema => transform(schema, (0, _Function.pipe)(to(schema), extend(struct({ | ||
[key]: literal(value) | ||
@@ -507,0 +507,0 @@ }))), a => ({ |
@@ -775,3 +775,3 @@ /** | ||
schema, | ||
pipe(schema, extend(struct({ [key]: literal(value) }))), | ||
pipe(to(schema), extend(struct({ [key]: literal(value) }))), | ||
(a) => ({ ...a, [key]: value }), | ||
@@ -778,0 +778,0 @@ ({ [key]: _key, ...rest }) => rest |
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
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
734302