es-toolkit 1.25.2-dev.820 → 1.25.2-dev.821

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.
@@ -11,7 +11,7 @@
11
11
  * @template V - The type of values corresponding to the property paths.
12
12
  * @param {ArrayLike<P | P[]>} keys - An array of property paths, each path can be a dot-separated string or an array of property names.
13
13
  * @param {ArrayLike<V>} values - An array of values corresponding to the property paths.
14
- * @returns {{ [K in P]: V }} A new object composed of the given property paths and values.
14
+ * @returns {Record<P, V>} A new object composed of the given property paths and values.
15
15
  *
16
16
  * @example
17
17
  * const paths = ['a.b.c', 'd.e.f'];
@@ -31,8 +31,6 @@
31
31
  * const result = zipObjectDeep(paths, values);
32
32
  * // result will be { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
33
33
  */
34
- declare function zipObjectDeep<P extends PropertyKey, V>(keys: ArrayLike<P | P[]>, values: ArrayLike<V>): {
35
- [K in P]: V;
36
- };
34
+ declare function zipObjectDeep<P extends PropertyKey, V>(keys: ArrayLike<P | P[]>, values: ArrayLike<V>): Record<P, V>;
37
35
 
38
36
  export { zipObjectDeep };
@@ -11,7 +11,7 @@
11
11
  * @template V - The type of values corresponding to the property paths.
12
12
  * @param {ArrayLike<P | P[]>} keys - An array of property paths, each path can be a dot-separated string or an array of property names.
13
13
  * @param {ArrayLike<V>} values - An array of values corresponding to the property paths.
14
- * @returns {{ [K in P]: V }} A new object composed of the given property paths and values.
14
+ * @returns {Record<P, V>} A new object composed of the given property paths and values.
15
15
  *
16
16
  * @example
17
17
  * const paths = ['a.b.c', 'd.e.f'];
@@ -31,8 +31,6 @@
31
31
  * const result = zipObjectDeep(paths, values);
32
32
  * // result will be { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
33
33
  */
34
- declare function zipObjectDeep<P extends PropertyKey, V>(keys: ArrayLike<P | P[]>, values: ArrayLike<V>): {
35
- [K in P]: V;
36
- };
34
+ declare function zipObjectDeep<P extends PropertyKey, V>(keys: ArrayLike<P | P[]>, values: ArrayLike<V>): Record<P, V>;
37
35
 
38
36
  export { zipObjectDeep };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.25.2-dev.820+707f9655",
4
+ "version": "1.25.2-dev.821+bd7468fc",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {