@superutils/core 1.1.0 → 1.1.1
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/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -724,7 +724,7 @@ declare const objClean: <T extends Record<PropertyKey, unknown>, Key extends key
|
|
|
724
724
|
* Deep-copy an object to another object
|
|
725
725
|
*
|
|
726
726
|
* @param input input object
|
|
727
|
-
* @param
|
|
727
|
+
* @param output (optional) output object
|
|
728
728
|
* @param ignoreKeys (optional) input peroperties to be ignored. Prevents output's property to be overriden.
|
|
729
729
|
*
|
|
730
730
|
* For child object properties use "." (dot) separated path.
|
|
@@ -746,7 +746,7 @@ declare const objClean: <T extends Record<PropertyKey, unknown>, Key extends key
|
|
|
746
746
|
*
|
|
747
747
|
* Default: `false`
|
|
748
748
|
*
|
|
749
|
-
* @param
|
|
749
|
+
* @param recursive (optional) whether to recursively copy nested objects. Default: `false`
|
|
750
750
|
*
|
|
751
751
|
*
|
|
752
752
|
* @returns copied and/or merged object
|
|
@@ -786,7 +786,7 @@ declare const objCreate: <V, K extends PropertyKey, RV, RK extends PropertyKey,
|
|
|
786
786
|
*
|
|
787
787
|
* @param input
|
|
788
788
|
* @param keys
|
|
789
|
-
* @param
|
|
789
|
+
* @param requireValue (optional) whether each property should have some value.
|
|
790
790
|
*/
|
|
791
791
|
declare function objHasKeys(input?: object | unknown[], keys?: PropertyKey[], requireValue?: boolean): boolean;
|
|
792
792
|
|
|
@@ -1025,7 +1025,7 @@ type SearchOptions<K, V, MatchExact extends boolean = false, AsMap extends boole
|
|
|
1025
1025
|
* 2. `key`: index/key
|
|
1026
1026
|
* 3. `data`: value provided in the first argument (`data`)
|
|
1027
1027
|
* @param limit (optional) limit number of results
|
|
1028
|
-
* @param
|
|
1028
|
+
* @param asArray
|
|
1029
1029
|
*
|
|
1030
1030
|
* @returns new Map with filtered items
|
|
1031
1031
|
*
|
package/package.json
CHANGED