@fncts/schema 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Schema/api.d.ts CHANGED
@@ -126,8 +126,8 @@ export declare const date: Schema<Date>;
126
126
  */
127
127
  export declare const implicitDate: Schema<Date>;
128
128
  /**
129
- * @tsplus static fncts.schema.SchemaOps union
130
129
  * @tsplus derive fncts.schema.Schema<|> 30
130
+ * @tsplus static fncts.schema.SchemaOps union
131
131
  * @tsplus location "@fncts/schema/Schema/api"
132
132
  */
133
133
  export declare function union<A extends ReadonlyArray<unknown>>(...members: {
@@ -35,7 +35,7 @@ export declare function deriveStruct<A extends Record<string, any>>(...[required
35
35
  ],
36
36
  ...([OptionalKeys<A>] extends [never] ? [optionalFields: {}] : [
37
37
  optionalFields: {
38
- [k in OptionalKeys<A>]: Schema<NonNullable<A[k]>>;
38
+ [k in OptionalKeys<A>]: Schema<A[k]>;
39
39
  }
40
40
  ]),
41
41
  ...([MaybeKeys<A>] extends [never] ? [] : [
@@ -185,8 +185,8 @@ const implicitDate = exports.implicitDate = /*#__PURE__*/transformOrFail_1(date_
185
185
  }
186
186
  }, input => tsplus_module_5.succeed(input))(unknown_1);
187
187
  /**
188
- * @tsplus static fncts.schema.SchemaOps union
189
188
  * @tsplus derive fncts.schema.Schema<|> 30
189
+ * @tsplus static fncts.schema.SchemaOps union
190
190
  */
191
191
  function union_1(...members) {
192
192
  return make_1(tsplus_module_3.createUnion(tsplus_module_2.from(members.map(m => m.ast))));
@@ -152,8 +152,8 @@ export const implicitDate = /*#__PURE__*/transformOrFail_1(date_1, (input, optio
152
152
  }
153
153
  }, input => tsplus_module_5.succeed(input))(unknown_1);
154
154
  /**
155
- * @tsplus static fncts.schema.SchemaOps union
156
155
  * @tsplus derive fncts.schema.Schema<|> 30
156
+ * @tsplus static fncts.schema.SchemaOps union
157
157
  */
158
158
  function union_1(...members) {
159
159
  return make_1(tsplus_module_3.createUnion(tsplus_module_2.from(members.map(m => m.ast))));
@@ -177,8 +177,8 @@ export const implicitDate: Schema<Date> = Schema.unknown.transformOrFail(
177
177
  );
178
178
 
179
179
  /**
180
- * @tsplus static fncts.schema.SchemaOps union
181
180
  * @tsplus derive fncts.schema.Schema<|> 30
181
+ * @tsplus static fncts.schema.SchemaOps union
182
182
  */
183
183
  export function union<A extends ReadonlyArray<unknown>>(
184
184
  ...members: {
@@ -51,7 +51,7 @@ export function deriveStruct<A extends Record<string, any>>(
51
51
  ? [optionalFields: {}]
52
52
  : [
53
53
  optionalFields: {
54
- [k in OptionalKeys<A>]: Schema<NonNullable<A[k]>>;
54
+ [k in OptionalKeys<A>]: Schema<A[k]>;
55
55
  },
56
56
  ]),
57
57
  ...([MaybeKeys<A>] extends [never]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fncts/schema",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "dependencies": {
5
5
  "@fncts/base": "0.0.35",
6
6
  "@fncts/typelevel": "0.0.18"