@types/lodash 4.14.182 → 4.14.183

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, 18 Apr 2022 23:03:04 GMT
11
+ * Last updated: Tue, 16 Aug 2022 19:02:35 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/lang.d.ts CHANGED
@@ -561,6 +561,8 @@ declare module "../index" {
561
561
  isElement(): PrimitiveChain<boolean>;
562
562
  }
563
563
 
564
+ type EmptyObject<T> = { [K in keyof T]?: never };
565
+ type EmptyObjectOf<T> = EmptyObject<T> extends T ? EmptyObject<T> : never;
564
566
  interface LoDashStatic {
565
567
  /**
566
568
  * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
@@ -569,6 +571,10 @@ declare module "../index" {
569
571
  * @param value The value to inspect.
570
572
  * @return Returns true if value is empty, else false.
571
573
  */
574
+ isEmpty<T extends { __trapAny: any }>(value?: T): boolean;
575
+ isEmpty(value: string): value is '';
576
+ isEmpty(value: Map<any, any> | Set<any> | List<any> | null | undefined): boolean;
577
+ isEmpty<T extends object>(value: T | null | undefined): value is EmptyObjectOf<T> | null | undefined;
572
578
  isEmpty(value?: any): boolean;
573
579
  }
574
580
  interface LoDashImplicitWrapper<TValue> {
lodash/common/string.d.ts CHANGED
@@ -777,7 +777,7 @@ declare module "../index" {
777
777
  /**
778
778
  * @see _.words
779
779
  */
780
- words(pattern?: string | RegExp): string[];
780
+ words(pattern?: string | RegExp): Collection<string>;
781
781
  }
782
782
  interface LoDashExplicitWrapper<TValue> {
783
783
  /**
lodash/fp.d.ts CHANGED
@@ -1922,7 +1922,15 @@ declare namespace _ {
1922
1922
  type LodashIsBuffer = (value: any) => boolean;
1923
1923
  type LodashIsDate = (value: any) => value is Date;
1924
1924
  type LodashIsElement = (value: any) => boolean;
1925
- type LodashIsEmpty = (value: any) => boolean;
1925
+ interface LodashIsEmpty {
1926
+ <T extends { __trapAny: any }>(value: T): boolean;
1927
+ (value: string | null | undefined): value is '' | null | undefined;
1928
+ (value: any[] | null | undefined): boolean;
1929
+ (value: ReadonlyArray<any> | null | undefined): value is Readonly<[]> | null | undefined;
1930
+ (value: Map<any, any> | Set<any> | lodash.List<any> | null | undefined): boolean;
1931
+ <T extends object>(value: T | null | undefined): value is lodash.EmptyObjectOf<T> | null | undefined;
1932
+ (value?: any): boolean;
1933
+ }
1926
1934
  interface LodashIsEqualWith {
1927
1935
  (customizer: lodash.IsEqualCustomizer): LodashIsEqualWith1x1;
1928
1936
  (customizer: lodash.__, value: any): LodashIsEqualWith1x2;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.182",
3
+ "version": "4.14.183",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -55,6 +55,6 @@
55
55
  },
56
56
  "scripts": {},
57
57
  "dependencies": {},
58
- "typesPublisherContentHash": "c5a9e97a318db3afdf0c9c86858b309b9cf7165152c921502ff1bc440296a037",
59
- "typeScriptVersion": "3.9"
58
+ "typesPublisherContentHash": "4427e0d66fe39669d19442907416f51fccda415e9ae3ac9e95efa59ee6f65f7e",
59
+ "typeScriptVersion": "4.0"
60
60
  }