@types/lodash 4.17.15 → 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: Tue, 28 Jan 2025 07:32:22 GMT
11
+ * Last updated: Sat, 01 Mar 2025 03:12:01 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
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.15",
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": "98d091ff5f27c3fdf2b63183998e60be0949bfb7a3007a14f4d386d0918c1c3d",
54
+ "typesPublisherContentHash": "ba68b098a7994af263bf6d32e3f966bdf89b8ce0bfaf403633ef59cdd3e6069b",
55
55
  "typeScriptVersion": "5.0"
56
56
  }