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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "effect",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.54",
4
+ "version": "4.0.0-beta.56",
5
5
  "license": "MIT",
6
6
  "description": "The missing standard library for TypeScript, for writing production-grade software.",
7
7
  "homepage": "https://effect.website",
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 Extract<A, null | undefined> {
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
- interface encodeKeys<
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