zcb 0.2.3 → 0.2.4

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": "zcb",
3
3
  "description": "Build configs with type safety from zod schema.",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/zod-config-builder",
@@ -3,9 +3,12 @@ import { type AnyRecord, NonEmumeralProperties, type TransformConfigHandlerSync
3
3
  const NON_ENUMERABLE_KEYS = new Set(Object.values(NonEmumeralProperties));
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- export const cloneNonEnumerableValues: TransformConfigHandlerSync = <Config extends AnyRecord>(
7
- clone: Config,
8
- config: Config
6
+ export const cloneNonEnumerableValues: TransformConfigHandlerSync = <
7
+ Config1 extends AnyRecord,
8
+ Config2 extends AnyRecord
9
+ >(
10
+ clone: Config1,
11
+ config: Config2
9
12
  ) => {
10
13
  for (const nonEnumerableKey of NON_ENUMERABLE_KEYS) {
11
14
  if (nonEnumerableKey in config) {