@types/lodash 4.17.12 → 4.17.13

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: Sat, 19 Oct 2024 06:39:37 GMT
11
+ * Last updated: Wed, 30 Oct 2024 00:46:57 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -1153,7 +1153,7 @@ declare module "../index" {
1153
1153
  * @param iteratee The function invoked per iteration.
1154
1154
  * @return Returns the new mapped array.
1155
1155
  */
1156
- map<T extends readonly unknown[], TResult>(collection: T, iteratee: TupleIterator<T, TResult>): { [K in keyof T]: TResult };
1156
+ map<T extends readonly [unknown, ...unknown[]], TResult>(collection: T, iteratee: TupleIterator<T, TResult>): { [K in keyof T]: TResult };
1157
1157
  /**
1158
1158
  * @see _.map
1159
1159
  */
lodash/common/lang.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import _ = require("../index");
2
- // eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers
2
+ // eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers, @typescript-eslint/no-unsafe-function-type
3
3
  type GlobalFunction = Function;
4
4
  declare module "../index" {
5
5
  type FunctionBase = GlobalFunction;
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(string?: string): string;
32
+ capitalize<T extends string>(string?: T): Capitalize<Lowercase<T>>;
33
33
  }
34
34
  interface LoDashImplicitWrapper<TValue> {
35
35
  /**
36
36
  * @see _.capitalize
37
37
  */
38
- capitalize(): string;
38
+ capitalize(): 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;
44
+ capitalize(): StringChain<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 = (string: string) => string;
243
+ type LodashCapitalize = <T extends string>(string: T) => 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.12",
3
+ "version": "4.17.13",
4
4
  "description": "TypeScript definitions for lodash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -50,6 +50,7 @@
50
50
  },
51
51
  "scripts": {},
52
52
  "dependencies": {},
53
- "typesPublisherContentHash": "7fa11b6378a46458b85519e5c0b89bf4a41c0990dca97b989c45dca2e1f98bdf",
53
+ "peerDependencies": {},
54
+ "typesPublisherContentHash": "2de3f5a22b153175ed668e0f8b4505a81bda615940d8934065a827a39fc6008f",
54
55
  "typeScriptVersion": "4.8"
55
56
  }