@types/lodash 4.14.189 → 4.14.191

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 Lo-Dash (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: Mon, 14 Nov 2022 21:32:45 GMT
11
+ * Last updated: Wed, 30 Nov 2022 20:33:03 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/array.d.ts CHANGED
@@ -25,16 +25,17 @@ declare module "../index" {
25
25
  }
26
26
  interface LoDashStatic {
27
27
  /**
28
- * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are
28
+ * Creates an array with all falsey values removed. The values false, null, 0, 0n, "", undefined, and NaN are
29
29
  * falsey.
30
30
  *
31
31
  * @param array The array to compact.
32
32
  * @return Returns the new array of filtered values.
33
33
  */
34
- compact<T>(array: List<T | null | undefined | false | "" | 0> | null | undefined): T[];
34
+ compact<T>(array: List<T | Falsey> | null | undefined): T[];
35
35
  }
36
36
 
37
- type Truthy<T> = T extends null | undefined | false | "" | 0 ? never : T;
37
+ type Falsey = null | undefined | false | "" | 0 | 0n;
38
+ type Truthy<T> = T extends Falsey ? never : T;
38
39
  interface Collection<T> {
39
40
  /**
40
41
  * @see _.compact
lodash/fp.d.ts CHANGED
@@ -299,7 +299,7 @@ declare namespace _ {
299
299
  <TResult>(customizer: lodash.CloneWithCustomizer<T, TResult | undefined>): TResult | T;
300
300
  }
301
301
  type LodashCloneWith2x1<T, TResult> = (value: T) => TResult | T;
302
- type LodashCompact = <T>(array: lodash.List<T> | null | undefined) => Array<Exclude<T, null | undefined | false | "" | 0>>;
302
+ type LodashCompact = <T>(array: lodash.List<T> | null | undefined) => Array<Exclude<T, lodash.Falsey>>;
303
303
  type LodashNegate = <T extends any[]>(predicate: (...args: T) => any) => (...args: T) => boolean;
304
304
  interface LodashFlowRight {
305
305
  <A extends any[], R1, R2, R3, R4, R5, R6, R7>(f7: (a: R6) => R7, f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R7;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.189",
3
+ "version": "4.14.191",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "main": "",
50
50
  "types": "index.d.ts",
51
51
  "typesVersions": {
52
- "<4.3.0-0": {
52
+ "<=4.2": {
53
53
  "*": [
54
54
  "ts4.2/*"
55
55
  ]
@@ -62,6 +62,6 @@
62
62
  },
63
63
  "scripts": {},
64
64
  "dependencies": {},
65
- "typesPublisherContentHash": "b8ce880cd22b9adaa5eddfc9086cca54fc2cdd2e59ab44110b652fc5ab462ad4",
66
- "typeScriptVersion": "4.1"
65
+ "typesPublisherContentHash": "d1be329a1fb5216e0daa6fc310ca3bc8bbe1e71843a392ebb140ce9eacb17bfd",
66
+ "typeScriptVersion": "4.2"
67
67
  }
@@ -25,16 +25,17 @@ declare module "../index" {
25
25
  }
26
26
  interface LoDashStatic {
27
27
  /**
28
- * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are
28
+ * Creates an array with all falsey values removed. The values false, null, 0, 0n, "", undefined, and NaN are
29
29
  * falsey.
30
30
  *
31
31
  * @param array The array to compact.
32
32
  * @return Returns the new array of filtered values.
33
33
  */
34
- compact<T>(array: List<T | null | undefined | false | "" | 0> | null | undefined): T[];
34
+ compact<T>(array: List<T | Falsey> | null | undefined): T[];
35
35
  }
36
36
 
37
- type Truthy<T> = T extends null | undefined | false | "" | 0 ? never : T;
37
+ type Falsey = null | undefined | false | "" | 0 | 0n;
38
+ type Truthy<T> = T extends Falsey ? never : T;
38
39
  interface Collection<T> {
39
40
  /**
40
41
  * @see _.compact
lodash/ts4.2/fp.d.ts CHANGED
@@ -299,7 +299,7 @@ declare namespace _ {
299
299
  <TResult>(customizer: lodash.CloneWithCustomizer<T, TResult | undefined>): TResult | T;
300
300
  }
301
301
  type LodashCloneWith2x1<T, TResult> = (value: T) => TResult | T;
302
- type LodashCompact = <T>(array: lodash.List<T> | null | undefined) => Array<Exclude<T, null | undefined | false | "" | 0>>;
302
+ type LodashCompact = <T>(array: lodash.List<T> | null | undefined) => Array<Exclude<T, lodash.Falsey>>;
303
303
  type LodashNegate = <T extends any[]>(predicate: (...args: T) => any) => (...args: T) => boolean;
304
304
  interface LodashFlowRight {
305
305
  <A extends any[], R1, R2, R3, R4, R5, R6, R7>(f7: (a: R6) => R7, f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R7;