@types/lodash 4.17.14 → 4.17.16

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.
lodash/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for lodash (https://lodash.com).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 03 Jan 2025 17:02:21 GMT
11
+ * Last updated: Sat, 01 Mar 2025 03:12:01 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
lodash/common/object.d.ts CHANGED
@@ -1820,7 +1820,7 @@ declare module "../index" {
1820
1820
  *
1821
1821
  * @category Object
1822
1822
  * @param object The destination object.
1823
- * @param [sources] The source objects.
1823
+ * @param [source] The source objects.
1824
1824
  * @returns Returns `object`.
1825
1825
  * @example
1826
1826
  *
@@ -1897,7 +1897,7 @@ declare module "../index" {
1897
1897
  */
1898
1898
  merge(...otherArgs: any[]): ObjectChain<any>;
1899
1899
  }
1900
- type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"];
1900
+ type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any, stack: any): any; }["bivariantHack"];
1901
1901
  // TODO: Probably should just put all these methods on Object and forget about it.
1902
1902
  // oh, except for Collection<any> I GUESS
1903
1903
  interface LoDashStatic {
@@ -1905,12 +1905,12 @@ declare module "../index" {
1905
1905
  * This method is like `_.merge` except that it accepts `customizer` which
1906
1906
  * is invoked to produce the merged values of the destination and source
1907
1907
  * properties. If `customizer` returns `undefined` merging is handled by the
1908
- * method instead. The `customizer` is invoked with seven arguments:
1908
+ * method instead. The `customizer` is invoked with six arguments:
1909
1909
  * (objValue, srcValue, key, object, source, stack).
1910
1910
  *
1911
1911
  * @category Object
1912
1912
  * @param object The destination object.
1913
- * @param sources The source objects.
1913
+ * @param source The source objects.
1914
1914
  * @param customizer The function to customize assigned values.
1915
1915
  * @returns Returns `object`.
1916
1916
  * @example
lodash/common/string.d.ts CHANGED
@@ -29,19 +29,19 @@ declare module "../index" {
29
29
  * @param string The string to capitalize.
30
30
  * @return Returns the capitalized string.
31
31
  */
32
- capitalize<T extends string>(string?: T): Capitalize<Lowercase<T>>;
32
+ capitalize<T extends string>(string?: T): string extends T ? string : Capitalize<Lowercase<T>>;
33
33
  }
34
34
  interface LoDashImplicitWrapper<TValue> {
35
35
  /**
36
36
  * @see _.capitalize
37
37
  */
38
- capitalize(): Capitalize<Lowercase<TValue extends string ? TValue : never>>;
38
+ capitalize(): string extends TValue ? string : Capitalize<Lowercase<TValue extends string ? TValue : never>>;
39
39
  }
40
40
  interface LoDashExplicitWrapper<TValue> {
41
41
  /**
42
42
  * @see _.capitalize
43
43
  */
44
- capitalize(): StringChain<Capitalize<Lowercase<TValue extends string ? TValue : never>>>;
44
+ capitalize(): StringChain<string extends TValue ? string : Capitalize<Lowercase<TValue extends string ? TValue : never>>>;
45
45
  }
46
46
 
47
47
  interface LoDashStatic {
lodash/fp.d.ts CHANGED
@@ -240,7 +240,7 @@ declare namespace _ {
240
240
  type LodashBindKey1x1 = (key: string) => (...args: any[]) => any;
241
241
  type LodashBindKey1x2 = (object: object) => (...args: any[]) => any;
242
242
  type LodashCamelCase = (string: string) => string;
243
- type LodashCapitalize = <T extends string>(string: T) => Capitalize<Lowercase<T>>;
243
+ type LodashCapitalize = <T extends string>(string: T) => string extends T ? string : Capitalize<Lowercase<T>>;
244
244
  type LodashCastArray = <T>(value: lodash.Many<T>) => T[];
245
245
  type LodashCeil = (n: number) => number;
246
246
  interface LodashChunk {
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.17.14",
3
+ "version": "4.17.16",
4
4
  "description": "TypeScript definitions for lodash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -51,6 +51,6 @@
51
51
  "scripts": {},
52
52
  "dependencies": {},
53
53
  "peerDependencies": {},
54
- "typesPublisherContentHash": "bae795c2fb61bca83c7be505a0720ba688ce39b4778eaefc59db50314647ca51",
54
+ "typesPublisherContentHash": "ba68b098a7994af263bf6d32e3f966bdf89b8ce0bfaf403633ef59cdd3e6069b",
55
55
  "typeScriptVersion": "5.0"
56
56
  }