@types/lodash 4.17.26 → 4.17.27

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, 09 Oct 2026 18:42:20 GMT
11
+ * Last updated: Wed, 21 Oct 2026 15:38:39 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
lodash/common/common.d.ts CHANGED
@@ -15,13 +15,17 @@ declare module "../index" {
15
15
  T extends object | null | undefined ? Object<T> :
16
16
  Primitive<T>;
17
17
  type ExpChain<T> =
18
+ [T] extends [never] ? never :
19
+ [Exclude<T, null | undefined>] extends [never] ? PrimitiveChain<T> :
20
+ DistributedExpChain<T, 0 extends 1 & T ? never : Extract<T, null | undefined>>;
21
+ type DistributedExpChain<T, TNullish> =
18
22
  T extends { __trapAny: any } ? CollectionChain<any> & FunctionChain<any> & ObjectChain<any> & PrimitiveChain<any> & StringChain :
19
23
  T extends null | undefined ? never :
20
- T extends string ? StringChain<T> :
21
- T extends (...args: any) => any ? FunctionChain<T> :
22
- T extends List<infer U> | null | undefined ? CollectionChain<U> :
23
- T extends object | null | undefined ? ObjectChain<T> :
24
- PrimitiveChain<T>;
24
+ T extends string ? ([TNullish] extends [never] ? StringChain<T> : StringNullableChain) :
25
+ T extends (...args: any) => any ? ([TNullish] extends [never] ? FunctionChain<T> : ObjectChain<T | TNullish>) :
26
+ T extends List<infer U> ? CollectionChain<U> :
27
+ T extends object ? ObjectChain<T | TNullish> :
28
+ PrimitiveChain<T | TNullish>;
25
29
  interface LoDashStatic {
26
30
  /**
27
31
  * Creates a lodash object which wraps value to enable implicit method chain sequences.
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.17.26",
3
+ "version": "4.17.27",
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": "6488776ff9c3cb2d800cac726b9b82a7e7c52985e87b5a164b532d574944e6b3",
54
+ "typesPublisherContentHash": "6eaaed9342b9e6d6eb113fda86357b6033dbb99baae76552027cf91b3d66a5b5",
55
55
  "typeScriptVersion": "5.6"
56
56
  }