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/README.md +3 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/cjs/transformers/cloneNonEnumerableValues.d.cts.map +1 -1
- package/dist/types/esm/transformers/cloneNonEnumerableValues.d.ts.map +1 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/transformers/cloneNonEnumerableValues.ts +6 -3
package/package.json
CHANGED
|
@@ -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 = <
|
|
7
|
-
|
|
8
|
-
|
|
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) {
|