@types/lodash 4.14.145 → 4.14.149

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
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for Lo-Dash (https://lodash.com).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash.
9
9
 
10
- Additional Details
11
- * Last updated: Thu, 07 Nov 2019 00:08:27 GMT
10
+ ### Additional Details
11
+ * Last updated: Mon, 18 Nov 2019 20:34:51 GMT
12
12
  * Dependencies: none
13
- * Global values: _
13
+ * Global values: `_`
14
14
 
15
15
  # Credits
16
- These definitions were written by Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, AJ Richardson <https://github.com/aj-r>, e-cloud <https://github.com/e-cloud>, Georgii Dolzhykov <https://github.com/thorn0>, Jack Moore <https://github.com/jtmthf>, Dominique Rau <https://github.com/DomiR>, and William Chelman <https://github.com/WilliamChelman>.
16
+ These definitions were written by Brian Zengel (https://github.com/bczengel), Ilya Mochalov (https://github.com/chrootsu), Stepan Mikhaylyuk (https://github.com/stepancar), AJ Richardson (https://github.com/aj-r), e-cloud (https://github.com/e-cloud), Georgii Dolzhykov (https://github.com/thorn0), Jack Moore (https://github.com/jtmthf), Dominique Rau (https://github.com/DomiR), and William Chelman (https://github.com/WilliamChelman).
lodash/common/util.d.ts CHANGED
@@ -968,6 +968,10 @@ declare module "../index" {
968
968
  * @param predicates The predicates to check.
969
969
  * @return Returns the new function.
970
970
  */
971
+ overEvery<T, Result1 extends T, Result2 extends T>(
972
+ a: (arg: T) => arg is Result1,
973
+ b: (arg: T) => arg is Result2
974
+ ): (arg: T) => arg is Result1 & Result2;
971
975
  overEvery<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
972
976
  }
973
977
 
@@ -995,6 +999,10 @@ declare module "../index" {
995
999
  * @param predicates The predicates to check.
996
1000
  * @return Returns the new function.
997
1001
  */
1002
+ overSome<T, Result1 extends T, Result2 extends T>(
1003
+ a: (arg: T) => arg is Result1,
1004
+ b: (arg: T) => arg is Result2
1005
+ ): (arg: T) => arg is Result1 | Result2;
998
1006
  overSome<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
999
1007
  }
1000
1008
 
@@ -1485,4 +1493,29 @@ declare module "../index" {
1485
1493
  */
1486
1494
  stubTrue(): LoDashExplicitWrapper<true>;
1487
1495
  }
1496
+
1497
+ // stubFalse
1498
+
1499
+ interface LoDashStatic {
1500
+ /**
1501
+ * This method returns false.
1502
+ *
1503
+ * @return Returns false.
1504
+ */
1505
+ stubFalse(): false;
1506
+ }
1507
+
1508
+ interface LoDashImplicitWrapper<TValue> {
1509
+ /**
1510
+ * @see _.stubFalse
1511
+ */
1512
+ stubFalse(): false;
1513
+ }
1514
+
1515
+ interface LoDashExplicitWrapper<TValue> {
1516
+ /**
1517
+ * @see _.stubFalse
1518
+ */
1519
+ stubFalse(): LoDashExplicitWrapper<false>;
1520
+ }
1488
1521
  }
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.145",
3
+ "version": "4.14.149",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -51,7 +51,7 @@
51
51
  }
52
52
  ],
53
53
  "main": "",
54
- "types": "index",
54
+ "types": "index.d.ts",
55
55
  "typesVersions": {
56
56
  ">=3.1.0-0": {
57
57
  "*": [
@@ -66,6 +66,6 @@
66
66
  },
67
67
  "scripts": {},
68
68
  "dependencies": {},
69
- "typesPublisherContentHash": "8680965e2b079f4d8963af0679e325e80700ba5386937726771be95f1b9395da",
69
+ "typesPublisherContentHash": "cf2d76aa6e460795bfbbd13377ea8f96ec6c6982d6bf45c1273aa0c47cb51975",
70
70
  "typeScriptVersion": "2.8"
71
71
  }
lodash/stubFalse.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { stubFalse } from "./index";
2
+ export = stubFalse;
@@ -1889,6 +1889,13 @@ declare module "../index" {
1889
1889
  * _.omit(object, ['a', 'c']);
1890
1890
  * // => { 'b': '2' }
1891
1891
  */
1892
+ omit<T extends object, K extends PropertyName[]>(
1893
+ object: T | null | undefined,
1894
+ ...paths: K
1895
+ ): Pick<T, Exclude<keyof T, K[number]>>;
1896
+ /**
1897
+ * @see _.omit
1898
+ */
1892
1899
  omit<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<Many<K>>): Omit<T, K>;
1893
1900
  /**
1894
1901
  * @see _.omit
@@ -752,6 +752,10 @@ declare module "../index" {
752
752
  * @param predicates The predicates to check.
753
753
  * @return Returns the new function.
754
754
  */
755
+ overEvery<T, Result1 extends T, Result2 extends T>(...predicates: [
756
+ (arg: T) => arg is Result1,
757
+ (arg: T) => arg is Result2
758
+ ]): (arg: T) => arg is Result1 & Result2;
755
759
  overEvery<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
756
760
  }
757
761
  interface Collection<T> {
@@ -787,6 +791,10 @@ declare module "../index" {
787
791
  * @param predicates The predicates to check.
788
792
  * @return Returns the new function.
789
793
  */
794
+ overSome<T, Result1 extends T, Result2 extends T>(...predicates: [
795
+ (arg: T) => arg is Result1,
796
+ (arg: T) => arg is Result2
797
+ ]): (arg: T) => arg is Result1 | Result2;
790
798
  overSome<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
791
799
  }
792
800
  interface Collection<T> {
@@ -1183,4 +1191,29 @@ declare module "../index" {
1183
1191
  */
1184
1192
  stubTrue(): LoDashExplicitWrapper<true>;
1185
1193
  }
1194
+
1195
+ // stubFalse
1196
+
1197
+ interface LoDashStatic {
1198
+ /**
1199
+ * This method returns false.
1200
+ *
1201
+ * @return Returns false.
1202
+ */
1203
+ stubFalse(): false;
1204
+ }
1205
+
1206
+ interface LoDashImplicitWrapper<TValue> {
1207
+ /**
1208
+ * @see _.stubFalse
1209
+ */
1210
+ stubFalse(): false;
1211
+ }
1212
+
1213
+ interface LoDashExplicitWrapper<TValue> {
1214
+ /**
1215
+ * @see _.stubFalse
1216
+ */
1217
+ stubFalse(): LoDashExplicitWrapper<false>;
1218
+ }
1186
1219
  }
@@ -0,0 +1,2 @@
1
+ import { stubFalse } from "./index";
2
+ export = stubFalse;