@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 +1 -1
- package/Schema/derivations.d.ts +1 -1
- package/_cjs/Schema/api.cjs +1 -1
- package/_mjs/Schema/api.mjs +1 -1
- package/_src/Schema/api.ts +1 -1
- package/_src/Schema/derivations.ts +1 -1
- package/package.json +1 -1
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: {
|
package/Schema/derivations.d.ts
CHANGED
|
@@ -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<
|
|
38
|
+
[k in OptionalKeys<A>]: Schema<A[k]>;
|
|
39
39
|
}
|
|
40
40
|
]),
|
|
41
41
|
...([MaybeKeys<A>] extends [never] ? [] : [
|
package/_cjs/Schema/api.cjs
CHANGED
|
@@ -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))));
|
package/_mjs/Schema/api.mjs
CHANGED
|
@@ -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))));
|
package/_src/Schema/api.ts
CHANGED
|
@@ -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<
|
|
54
|
+
[k in OptionalKeys<A>]: Schema<A[k]>;
|
|
55
55
|
},
|
|
56
56
|
]),
|
|
57
57
|
...([MaybeKeys<A>] extends [never]
|