effect 4.0.0-beta.54 → 4.0.0-beta.56
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/dist/Predicate.d.ts +1 -1
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Schema.d.ts +7 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js.map +1 -1
- package/package.json +1 -1
- package/src/Predicate.ts +1 -1
- package/src/Schema.ts +7 -1
package/package.json
CHANGED
package/src/Predicate.ts
CHANGED
|
@@ -1044,7 +1044,7 @@ export function isNotNull<A>(input: A): input is Exclude<A, null> {
|
|
|
1044
1044
|
* @category guards
|
|
1045
1045
|
* @since 4.0.0
|
|
1046
1046
|
*/
|
|
1047
|
-
export function isNullish<A>(input: A): input is
|
|
1047
|
+
export function isNullish<A>(input: A): input is A & (null | undefined) {
|
|
1048
1048
|
return input === null || input === undefined
|
|
1049
1049
|
}
|
|
1050
1050
|
|
package/src/Schema.ts
CHANGED
|
@@ -2517,7 +2517,13 @@ export function fieldsAssign<const NewFields extends Struct.Fields>(fields: NewF
|
|
|
2517
2517
|
return Struct_.lambda<fieldsAssign<NewFields>>((struct) => struct.mapFields(Struct_.assign(fields)))
|
|
2518
2518
|
}
|
|
2519
2519
|
|
|
2520
|
-
|
|
2520
|
+
/**
|
|
2521
|
+
* Schema type for a struct with renamed encoded keys. Produced by
|
|
2522
|
+
* {@link encodeKeys}.
|
|
2523
|
+
*
|
|
2524
|
+
* @since 4.0.0
|
|
2525
|
+
*/
|
|
2526
|
+
export interface encodeKeys<
|
|
2521
2527
|
S extends Top & { readonly fields: Struct.Fields },
|
|
2522
2528
|
M extends { readonly [K in keyof S["fields"]]?: PropertyKey }
|
|
2523
2529
|
> extends
|