@types/lodash 4.14.119 → 4.14.123
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 +2 -2
- lodash/common/lang.d.ts +2 -2
- lodash/common/object.d.ts +3 -3
- lodash/fp.d.ts +72 -109
- lodash/index.d.ts +2 -2
- lodash/package.json +5 -4
lodash/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
> `npm install --save @types/lodash`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for Lo-Dash (
|
|
5
|
+
This package contains type definitions for Lo-Dash ( https://lodash.com ).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 11 Mar 2019 22:35:33 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: _
|
|
14
14
|
|
lodash/common/lang.d.ts
CHANGED
|
@@ -1224,14 +1224,14 @@ declare module "../index" {
|
|
|
1224
1224
|
* @param value The value to check.
|
|
1225
1225
|
* @return Returns true if value is an object, else false.
|
|
1226
1226
|
*/
|
|
1227
|
-
isObject(value?: any):
|
|
1227
|
+
isObject(value?: any): value is object;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
1230
|
interface LoDashImplicitWrapper<TValue> {
|
|
1231
1231
|
/**
|
|
1232
1232
|
* see _.isObject
|
|
1233
1233
|
*/
|
|
1234
|
-
isObject():
|
|
1234
|
+
isObject(): this is LoDashImplicitWrapper<object>;
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
interface LoDashExplicitWrapper<TValue> {
|
lodash/common/object.d.ts
CHANGED
|
@@ -1686,7 +1686,7 @@ declare module "../index" {
|
|
|
1686
1686
|
object: TObject | null | undefined,
|
|
1687
1687
|
path: TKey | [TKey],
|
|
1688
1688
|
defaultValue: TDefault
|
|
1689
|
-
): TObject[TKey] | TDefault;
|
|
1689
|
+
): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1690
1690
|
|
|
1691
1691
|
/**
|
|
1692
1692
|
* @see _.get
|
|
@@ -1763,7 +1763,7 @@ declare module "../index" {
|
|
|
1763
1763
|
this: LoDashImplicitWrapper<TObject | null | undefined>,
|
|
1764
1764
|
path: TKey | [TKey],
|
|
1765
1765
|
defaultValue: TDefault
|
|
1766
|
-
): TObject[TKey] | TDefault;
|
|
1766
|
+
): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* @see _.get
|
|
@@ -1839,7 +1839,7 @@ declare module "../index" {
|
|
|
1839
1839
|
this: LoDashExplicitWrapper<TObject | null | undefined>,
|
|
1840
1840
|
path: TKey | [TKey],
|
|
1841
1841
|
defaultValue: TDefault
|
|
1842
|
-
): LoDashExplicitWrapper<TObject[TKey] | TDefault>;
|
|
1842
|
+
): LoDashExplicitWrapper<Exclude<TObject[TKey], undefined> | TDefault>;
|
|
1843
1843
|
|
|
1844
1844
|
/**
|
|
1845
1845
|
* @see _.get
|
lodash/fp.d.ts
CHANGED
|
@@ -616,20 +616,15 @@ declare namespace _ {
|
|
|
616
616
|
<T>(iteratee: (value: T) => any): LodashForEach1x1<T>;
|
|
617
617
|
<T>(iteratee: lodash.__, collection: ReadonlyArray<T>): LodashForEach1x2<T>;
|
|
618
618
|
<T>(iteratee: (value: T) => any, collection: ReadonlyArray<T>): T[];
|
|
619
|
-
(iteratee:
|
|
620
|
-
(iteratee: lodash.__, collection: string): LodashForEach2x2;
|
|
621
|
-
(iteratee: (value: string) => any, collection: string): string;
|
|
622
|
-
<T>(iteratee: lodash.__, collection: lodash.List<T>): LodashForEach3x2<T>;
|
|
619
|
+
<T>(iteratee: lodash.__, collection: lodash.List<T>): LodashForEach2x2<T>;
|
|
623
620
|
<T>(iteratee: (value: T) => any, collection: lodash.List<T>): lodash.List<T>;
|
|
624
|
-
<T extends object>(iteratee: lodash.__, collection: T):
|
|
621
|
+
<T extends object>(iteratee: lodash.__, collection: T): LodashForEach3x2<T>;
|
|
625
622
|
<T extends object>(iteratee: (value: T[keyof T]) => any, collection: T): T;
|
|
626
|
-
<T, TArray extends T[] | null | undefined>(iteratee: lodash.__, collection: TArray & (T[] | null | undefined)):
|
|
623
|
+
<T, TArray extends T[] | null | undefined>(iteratee: lodash.__, collection: TArray & (T[] | null | undefined)): LodashForEach4x2<T, TArray>;
|
|
627
624
|
<T, TArray extends T[] | null | undefined>(iteratee: (value: T) => any, collection: TArray & (T[] | null | undefined)): TArray;
|
|
628
|
-
<
|
|
629
|
-
<TString extends string | null | undefined>(iteratee: (value: string) => any, collection: TString): TString;
|
|
630
|
-
<T, TList extends lodash.List<T> | null | undefined>(iteratee: lodash.__, collection: TList & (lodash.List<T> | null | undefined)): LodashForEach7x2<T, TList>;
|
|
625
|
+
<T, TList extends lodash.List<T> | null | undefined>(iteratee: lodash.__, collection: TList & (lodash.List<T> | null | undefined)): LodashForEach5x2<T, TList>;
|
|
631
626
|
<T, TList extends lodash.List<T> | null | undefined>(iteratee: (value: T) => any, collection: TList & (lodash.List<T> | null | undefined)): TList;
|
|
632
|
-
<T extends object>(iteratee: lodash.__, collection: T | null | undefined):
|
|
627
|
+
<T extends object>(iteratee: lodash.__, collection: T | null | undefined): LodashForEach6x2<T>;
|
|
633
628
|
<T extends object>(iteratee: (value: T[keyof T]) => any, collection: T | null | undefined): T | null | undefined;
|
|
634
629
|
}
|
|
635
630
|
interface LodashForEach1x1<T> {
|
|
@@ -641,35 +636,24 @@ declare namespace _ {
|
|
|
641
636
|
<T1 extends object>(collection: T1 | null | undefined): T1 | null | undefined;
|
|
642
637
|
}
|
|
643
638
|
type LodashForEach1x2<T> = (iteratee: (value: T) => any) => T[];
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
type
|
|
649
|
-
type LodashForEach3x2<T> = (iteratee: (value: T) => any) => lodash.List<T>;
|
|
650
|
-
type LodashForEach4x2<T> = (iteratee: (value: T[keyof T]) => any) => T;
|
|
651
|
-
type LodashForEach5x2<T, TArray> = (iteratee: (value: T) => any) => TArray;
|
|
652
|
-
type LodashForEach6x2<TString> = (iteratee: (value: string) => any) => TString;
|
|
653
|
-
type LodashForEach7x2<T, TList> = (iteratee: (value: T) => any) => TList;
|
|
654
|
-
type LodashForEach8x2<T> = (iteratee: (value: T[keyof T]) => any) => T | null | undefined;
|
|
639
|
+
type LodashForEach2x2<T> = (iteratee: (value: T) => any) => lodash.List<T>;
|
|
640
|
+
type LodashForEach3x2<T> = (iteratee: (value: T[keyof T]) => any) => T;
|
|
641
|
+
type LodashForEach4x2<T, TArray> = (iteratee: (value: T) => any) => TArray;
|
|
642
|
+
type LodashForEach5x2<T, TList> = (iteratee: (value: T) => any) => TList;
|
|
643
|
+
type LodashForEach6x2<T> = (iteratee: (value: T[keyof T]) => any) => T | null | undefined;
|
|
655
644
|
interface LodashForEachRight {
|
|
656
645
|
<T>(iteratee: (value: T) => any): LodashForEachRight1x1<T>;
|
|
657
646
|
<T>(iteratee: lodash.__, collection: ReadonlyArray<T>): LodashForEachRight1x2<T>;
|
|
658
647
|
<T>(iteratee: (value: T) => any, collection: ReadonlyArray<T>): T[];
|
|
659
|
-
(iteratee:
|
|
660
|
-
(iteratee: lodash.__, collection: string): LodashForEachRight2x2;
|
|
661
|
-
(iteratee: (value: string) => any, collection: string): string;
|
|
662
|
-
<T>(iteratee: lodash.__, collection: lodash.List<T>): LodashForEachRight3x2<T>;
|
|
648
|
+
<T>(iteratee: lodash.__, collection: lodash.List<T>): LodashForEachRight2x2<T>;
|
|
663
649
|
<T>(iteratee: (value: T) => any, collection: lodash.List<T>): lodash.List<T>;
|
|
664
|
-
<T extends object>(iteratee: lodash.__, collection: T):
|
|
650
|
+
<T extends object>(iteratee: lodash.__, collection: T): LodashForEachRight3x2<T>;
|
|
665
651
|
<T extends object>(iteratee: (value: T[keyof T]) => any, collection: T): T;
|
|
666
|
-
<T, TArray extends T[] | null | undefined>(iteratee: lodash.__, collection: TArray & (T[] | null | undefined)):
|
|
652
|
+
<T, TArray extends T[] | null | undefined>(iteratee: lodash.__, collection: TArray & (T[] | null | undefined)): LodashForEachRight4x2<T, TArray>;
|
|
667
653
|
<T, TArray extends T[] | null | undefined>(iteratee: (value: T) => any, collection: TArray & (T[] | null | undefined)): TArray;
|
|
668
|
-
<
|
|
669
|
-
<TString extends string | null | undefined>(iteratee: (value: string) => any, collection: TString): TString;
|
|
670
|
-
<T, TList extends lodash.List<T> | null | undefined>(iteratee: lodash.__, collection: TList & (lodash.List<T> | null | undefined)): LodashForEachRight7x2<T, TList>;
|
|
654
|
+
<T, TList extends lodash.List<T> | null | undefined>(iteratee: lodash.__, collection: TList & (lodash.List<T> | null | undefined)): LodashForEachRight5x2<T, TList>;
|
|
671
655
|
<T, TList extends lodash.List<T> | null | undefined>(iteratee: (value: T) => any, collection: TList & (lodash.List<T> | null | undefined)): TList;
|
|
672
|
-
<T extends object>(iteratee: lodash.__, collection: T | null | undefined):
|
|
656
|
+
<T extends object>(iteratee: lodash.__, collection: T | null | undefined): LodashForEachRight6x2<T>;
|
|
673
657
|
<T extends object>(iteratee: (value: T[keyof T]) => any, collection: T | null | undefined): T | null | undefined;
|
|
674
658
|
}
|
|
675
659
|
interface LodashForEachRight1x1<T> {
|
|
@@ -681,17 +665,11 @@ declare namespace _ {
|
|
|
681
665
|
<T1 extends object>(collection: T1 | null | undefined): T1 | null | undefined;
|
|
682
666
|
}
|
|
683
667
|
type LodashForEachRight1x2<T> = (iteratee: (value: T) => any) => T[];
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
type
|
|
689
|
-
type LodashForEachRight3x2<T> = (iteratee: (value: T) => any) => lodash.List<T>;
|
|
690
|
-
type LodashForEachRight4x2<T> = (iteratee: (value: T[keyof T]) => any) => T;
|
|
691
|
-
type LodashForEachRight5x2<T, TArray> = (iteratee: (value: T) => any) => TArray;
|
|
692
|
-
type LodashForEachRight6x2<TString> = (iteratee: (value: string) => any) => TString;
|
|
693
|
-
type LodashForEachRight7x2<T, TList> = (iteratee: (value: T) => any) => TList;
|
|
694
|
-
type LodashForEachRight8x2<T> = (iteratee: (value: T[keyof T]) => any) => T | null | undefined;
|
|
668
|
+
type LodashForEachRight2x2<T> = (iteratee: (value: T) => any) => lodash.List<T>;
|
|
669
|
+
type LodashForEachRight3x2<T> = (iteratee: (value: T[keyof T]) => any) => T;
|
|
670
|
+
type LodashForEachRight4x2<T, TArray> = (iteratee: (value: T) => any) => TArray;
|
|
671
|
+
type LodashForEachRight5x2<T, TList> = (iteratee: (value: T) => any) => TList;
|
|
672
|
+
type LodashForEachRight6x2<T> = (iteratee: (value: T[keyof T]) => any) => T | null | undefined;
|
|
695
673
|
interface LodashEndsWith {
|
|
696
674
|
(target: string): LodashEndsWith1x1;
|
|
697
675
|
(target: lodash.__, string: string): LodashEndsWith1x2;
|
|
@@ -917,29 +895,24 @@ declare namespace _ {
|
|
|
917
895
|
type LodashFill2x13<T, U> = (end: number) => lodash.List<T | U>;
|
|
918
896
|
type LodashFill2x14<T, U> = (start: number) => lodash.List<T | U>;
|
|
919
897
|
interface LodashFilter {
|
|
920
|
-
(predicate:
|
|
921
|
-
(predicate: lodash.__, collection:
|
|
922
|
-
(predicate: (value: string) => boolean, collection: string | null | undefined): string[];
|
|
923
|
-
<T, S extends T>(predicate: lodash.ValueIteratorTypeGuard<T, S>): LodashFilter2x1<T, S>;
|
|
924
|
-
<T>(predicate: lodash.__, collection: lodash.List<T> | null | undefined): LodashFilter2x2<T>;
|
|
898
|
+
<T, S extends T>(predicate: lodash.ValueIteratorTypeGuard<T, S>): LodashFilter1x1<T, S>;
|
|
899
|
+
<T>(predicate: lodash.__, collection: lodash.List<T> | null | undefined): LodashFilter1x2<T>;
|
|
925
900
|
<T, S extends T>(predicate: lodash.ValueIteratorTypeGuard<T, S>, collection: lodash.List<T> | null | undefined): S[];
|
|
926
|
-
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>):
|
|
901
|
+
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>): LodashFilter2x1<T>;
|
|
927
902
|
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>, collection: lodash.List<T> | null | undefined): T[];
|
|
928
|
-
<T extends object, S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>):
|
|
929
|
-
<T extends object>(predicate: lodash.__, collection: T | null | undefined):
|
|
903
|
+
<T extends object, S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>): LodashFilter3x1<T, S>;
|
|
904
|
+
<T extends object>(predicate: lodash.__, collection: T | null | undefined): LodashFilter3x2<T>;
|
|
930
905
|
<T extends object, S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>, collection: T | null | undefined): S[];
|
|
931
906
|
<T extends object>(predicate: lodash.ValueIterateeCustom<T[keyof T], boolean>, collection: T | null | undefined): Array<T[keyof T]>;
|
|
932
907
|
}
|
|
933
|
-
type LodashFilter1x1 = (collection:
|
|
934
|
-
|
|
935
|
-
type LodashFilter2x1<T, S> = (collection: lodash.List<T> | null | undefined) => S[];
|
|
936
|
-
interface LodashFilter2x2<T> {
|
|
908
|
+
type LodashFilter1x1<T, S> = (collection: lodash.List<T> | null | undefined) => S[];
|
|
909
|
+
interface LodashFilter1x2<T> {
|
|
937
910
|
<S extends T>(predicate: lodash.ValueIteratorTypeGuard<T, S>): S[];
|
|
938
911
|
(predicate: lodash.ValueIterateeCustom<T, boolean>): T[];
|
|
939
912
|
}
|
|
940
|
-
type
|
|
941
|
-
type
|
|
942
|
-
interface
|
|
913
|
+
type LodashFilter2x1<T> = (collection: lodash.List<T> | object | null | undefined) => T[];
|
|
914
|
+
type LodashFilter3x1<T, S> = (collection: T | null | undefined) => S[];
|
|
915
|
+
interface LodashFilter3x2<T> {
|
|
943
916
|
<S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>): S[];
|
|
944
917
|
(predicate: lodash.ValueIterateeCustom<T[keyof T], boolean>): Array<T[keyof T]>;
|
|
945
918
|
}
|
|
@@ -1521,7 +1494,7 @@ declare namespace _ {
|
|
|
1521
1494
|
<TObject extends object>(defaultValue: lodash.__, path: lodash.__, object: TObject | null | undefined): LodashGetOr1x4<TObject>;
|
|
1522
1495
|
<TObject extends object, TDefault>(defaultValue: TDefault, path: lodash.__, object: TObject | null | undefined): LodashGetOr1x5<TObject, TDefault>;
|
|
1523
1496
|
<TObject extends object, TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey], object: TObject | null | undefined): LodashGetOr1x6<TObject, TKey>;
|
|
1524
|
-
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
1497
|
+
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1525
1498
|
(defaultValue: lodash.__, path: number): LodashGetOr2x2;
|
|
1526
1499
|
<TDefault>(defaultValue: TDefault, path: number): LodashGetOr2x3<TDefault>;
|
|
1527
1500
|
<T>(defaultValue: lodash.__, path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashGetOr2x4<T>;
|
|
@@ -1544,7 +1517,7 @@ declare namespace _ {
|
|
|
1544
1517
|
interface LodashGetOr1x1<TDefault> {
|
|
1545
1518
|
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey]): LodashGetOr1x3<TObject, TKey, TDefault>;
|
|
1546
1519
|
<TObject extends object>(path: lodash.__, object: TObject | null | undefined): LodashGetOr1x5<TObject, TDefault>;
|
|
1547
|
-
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
1520
|
+
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1548
1521
|
(path: number): LodashGetOr2x3<TDefault>;
|
|
1549
1522
|
<T>(path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashGetOr2x5<T, TDefault>;
|
|
1550
1523
|
<T>(path: number, object: lodash.NumericDictionary<T> | null | undefined): T | TDefault;
|
|
@@ -1555,16 +1528,16 @@ declare namespace _ {
|
|
|
1555
1528
|
interface LodashGetOr1x2<TObject, TKey extends keyof TObject> {
|
|
1556
1529
|
<TDefault>(defaultValue: TDefault): LodashGetOr1x3<TObject, TKey, TDefault>;
|
|
1557
1530
|
(defaultValue: lodash.__, object: TObject | null | undefined): LodashGetOr1x6<TObject, TKey>;
|
|
1558
|
-
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
1531
|
+
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1559
1532
|
}
|
|
1560
|
-
type LodashGetOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => TObject[TKey] | TDefault;
|
|
1533
|
+
type LodashGetOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
1561
1534
|
interface LodashGetOr1x4<TObject> {
|
|
1562
1535
|
<TDefault>(defaultValue: TDefault): LodashGetOr1x5<TObject, TDefault>;
|
|
1563
1536
|
<TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey]): LodashGetOr1x6<TObject, TKey>;
|
|
1564
|
-
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): TObject[TKey] | TDefault;
|
|
1537
|
+
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): Exclude<TObject[TKey], undefined> | TDefault;
|
|
1565
1538
|
}
|
|
1566
|
-
type LodashGetOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => TObject[TKey] | TDefault;
|
|
1567
|
-
type LodashGetOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => TObject[TKey] | TDefault;
|
|
1539
|
+
type LodashGetOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
1540
|
+
type LodashGetOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
1568
1541
|
interface LodashGetOr2x2 {
|
|
1569
1542
|
<TDefault>(defaultValue: TDefault): LodashGetOr2x3<TDefault>;
|
|
1570
1543
|
<T>(defaultValue: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashGetOr2x6<T>;
|
|
@@ -2011,7 +1984,7 @@ declare namespace _ {
|
|
|
2011
1984
|
type LodashIsNil = (value: any) => value is null | undefined;
|
|
2012
1985
|
type LodashIsNull = (value: any) => value is null;
|
|
2013
1986
|
type LodashIsNumber = (value: any) => value is number;
|
|
2014
|
-
type LodashIsObject = (value: any) =>
|
|
1987
|
+
type LodashIsObject = (value: any) => value is object;
|
|
2015
1988
|
type LodashIsObjectLike = (value: any) => boolean;
|
|
2016
1989
|
type LodashIsPlainObject = (value: any) => boolean;
|
|
2017
1990
|
type LodashIsRegExp = (value: any) => value is RegExp;
|
|
@@ -2131,45 +2104,40 @@ declare namespace _ {
|
|
|
2131
2104
|
type LodashMapKeys2x1 = <T extends object>(object: T | null | undefined) => lodash.Dictionary<T[keyof T]>;
|
|
2132
2105
|
type LodashMapKeys2x2<T> = (iteratee: lodash.ValueIteratee<string>) => lodash.Dictionary<T[keyof T]>;
|
|
2133
2106
|
interface LodashMapValues {
|
|
2134
|
-
<TResult>(callback: (value:
|
|
2135
|
-
(
|
|
2136
|
-
<TResult>(callback: (value: string) => TResult, obj: string | null | undefined): lodash.NumericDictionary<TResult>;
|
|
2137
|
-
<T, TResult>(callback: (value: T) => TResult): LodashMapValues2x1<T, TResult>;
|
|
2138
|
-
<T>(callbackOrIterateeOrIterateeOrIteratee: lodash.__, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): LodashMapValues2x2<T>;
|
|
2107
|
+
<T, TResult>(callback: (value: T) => TResult): LodashMapValues1x1<T, TResult>;
|
|
2108
|
+
<T>(callbackOrIterateeOrIterateeOrIteratee: lodash.__, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): LodashMapValues1x2<T>;
|
|
2139
2109
|
<T, TResult>(callback: (value: T) => TResult, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<TResult>;
|
|
2140
|
-
<T extends object, TResult>(callback: (value: T[keyof T]) => TResult):
|
|
2141
|
-
<T extends object>(callbackOrIterateeOrIteratee: lodash.__, obj: T | null | undefined):
|
|
2110
|
+
<T extends object, TResult>(callback: (value: T[keyof T]) => TResult): LodashMapValues2x1<T, TResult>;
|
|
2111
|
+
<T extends object>(callbackOrIterateeOrIteratee: lodash.__, obj: T | null | undefined): LodashMapValues2x2<T>;
|
|
2142
2112
|
<T extends object, TResult>(callback: (value: T[keyof T]) => TResult, obj: T | null | undefined): { [P in keyof T]: TResult };
|
|
2143
|
-
(iteratee: object):
|
|
2113
|
+
(iteratee: object): LodashMapValues3x1;
|
|
2144
2114
|
<T>(iteratee: object, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<boolean>;
|
|
2145
2115
|
<T extends object>(iteratee: object, obj: T | null | undefined): { [P in keyof T]: boolean };
|
|
2146
|
-
<T, TKey extends keyof T>(iteratee: TKey):
|
|
2116
|
+
<T, TKey extends keyof T>(iteratee: TKey): LodashMapValues5x1<T, TKey>;
|
|
2147
2117
|
<T, TKey extends keyof T>(iteratee: TKey, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<T[TKey]>;
|
|
2148
|
-
(iteratee: string):
|
|
2118
|
+
(iteratee: string): LodashMapValues6x1;
|
|
2149
2119
|
<T>(iteratee: string, obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<any>;
|
|
2150
2120
|
<T extends object>(iteratee: string, obj: T | null | undefined): { [P in keyof T]: any };
|
|
2151
2121
|
}
|
|
2152
|
-
type LodashMapValues1x1<TResult> = (obj:
|
|
2153
|
-
|
|
2154
|
-
type LodashMapValues2x1<T, TResult> = (obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined) => lodash.Dictionary<TResult>;
|
|
2155
|
-
interface LodashMapValues2x2<T> {
|
|
2122
|
+
type LodashMapValues1x1<T, TResult> = (obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined) => lodash.Dictionary<TResult>;
|
|
2123
|
+
interface LodashMapValues1x2<T> {
|
|
2156
2124
|
<TResult>(callback: (value: T) => TResult): lodash.Dictionary<TResult>;
|
|
2157
2125
|
(iteratee: object): lodash.Dictionary<boolean>;
|
|
2158
2126
|
<TKey extends keyof T>(iteratee: TKey): lodash.Dictionary<T[TKey]>;
|
|
2159
2127
|
(iteratee: string): lodash.Dictionary<any>;
|
|
2160
2128
|
}
|
|
2161
|
-
type
|
|
2162
|
-
interface
|
|
2129
|
+
type LodashMapValues2x1<T, TResult> = (obj: T | null | undefined) => { [P in keyof T]: TResult };
|
|
2130
|
+
interface LodashMapValues2x2<T> {
|
|
2163
2131
|
<TResult>(callback: (value: T[keyof T]) => TResult): { [P in keyof T]: TResult };
|
|
2164
2132
|
(iteratee: object): { [P in keyof T]: boolean };
|
|
2165
2133
|
(iteratee: string): { [P in keyof T]: any };
|
|
2166
2134
|
}
|
|
2167
|
-
interface
|
|
2135
|
+
interface LodashMapValues3x1 {
|
|
2168
2136
|
<T>(obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<boolean>;
|
|
2169
2137
|
<T extends object>(obj: T | null | undefined): { [P in keyof T]: boolean };
|
|
2170
2138
|
}
|
|
2171
|
-
type
|
|
2172
|
-
interface
|
|
2139
|
+
type LodashMapValues5x1<T, TKey extends keyof T> = (obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined) => lodash.Dictionary<T[TKey]>;
|
|
2140
|
+
interface LodashMapValues6x1 {
|
|
2173
2141
|
<T>(obj: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): lodash.Dictionary<any>;
|
|
2174
2142
|
<T extends object>(obj: T | null | undefined): { [P in keyof T]: any };
|
|
2175
2143
|
}
|
|
@@ -2788,7 +2756,7 @@ declare namespace _ {
|
|
|
2788
2756
|
<TObject extends object>(defaultValue: lodash.__, path: lodash.__, object: TObject | null | undefined): LodashPathOr1x4<TObject>;
|
|
2789
2757
|
<TObject extends object, TDefault>(defaultValue: TDefault, path: lodash.__, object: TObject | null | undefined): LodashPathOr1x5<TObject, TDefault>;
|
|
2790
2758
|
<TObject extends object, TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey], object: TObject | null | undefined): LodashPathOr1x6<TObject, TKey>;
|
|
2791
|
-
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
2759
|
+
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
2792
2760
|
(defaultValue: lodash.__, path: number): LodashPathOr2x2;
|
|
2793
2761
|
<TDefault>(defaultValue: TDefault, path: number): LodashPathOr2x3<TDefault>;
|
|
2794
2762
|
<T>(defaultValue: lodash.__, path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPathOr2x4<T>;
|
|
@@ -2811,7 +2779,7 @@ declare namespace _ {
|
|
|
2811
2779
|
interface LodashPathOr1x1<TDefault> {
|
|
2812
2780
|
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey]): LodashPathOr1x3<TObject, TKey, TDefault>;
|
|
2813
2781
|
<TObject extends object>(path: lodash.__, object: TObject | null | undefined): LodashPathOr1x5<TObject, TDefault>;
|
|
2814
|
-
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
2782
|
+
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
2815
2783
|
(path: number): LodashPathOr2x3<TDefault>;
|
|
2816
2784
|
<T>(path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPathOr2x5<T, TDefault>;
|
|
2817
2785
|
<T>(path: number, object: lodash.NumericDictionary<T> | null | undefined): T | TDefault;
|
|
@@ -2822,16 +2790,16 @@ declare namespace _ {
|
|
|
2822
2790
|
interface LodashPathOr1x2<TObject, TKey extends keyof TObject> {
|
|
2823
2791
|
<TDefault>(defaultValue: TDefault): LodashPathOr1x3<TObject, TKey, TDefault>;
|
|
2824
2792
|
(defaultValue: lodash.__, object: TObject | null | undefined): LodashPathOr1x6<TObject, TKey>;
|
|
2825
|
-
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
2793
|
+
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
2826
2794
|
}
|
|
2827
|
-
type LodashPathOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => TObject[TKey] | TDefault;
|
|
2795
|
+
type LodashPathOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
2828
2796
|
interface LodashPathOr1x4<TObject> {
|
|
2829
2797
|
<TDefault>(defaultValue: TDefault): LodashPathOr1x5<TObject, TDefault>;
|
|
2830
2798
|
<TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey]): LodashPathOr1x6<TObject, TKey>;
|
|
2831
|
-
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): TObject[TKey] | TDefault;
|
|
2799
|
+
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): Exclude<TObject[TKey], undefined> | TDefault;
|
|
2832
2800
|
}
|
|
2833
|
-
type LodashPathOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => TObject[TKey] | TDefault;
|
|
2834
|
-
type LodashPathOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => TObject[TKey] | TDefault;
|
|
2801
|
+
type LodashPathOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
2802
|
+
type LodashPathOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
2835
2803
|
interface LodashPathOr2x2 {
|
|
2836
2804
|
<TDefault>(defaultValue: TDefault): LodashPathOr2x3<TDefault>;
|
|
2837
2805
|
<T>(defaultValue: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPathOr2x6<T>;
|
|
@@ -3028,7 +2996,7 @@ declare namespace _ {
|
|
|
3028
2996
|
<TObject extends object>(defaultValue: lodash.__, path: lodash.__, object: TObject | null | undefined): LodashPropOr1x4<TObject>;
|
|
3029
2997
|
<TObject extends object, TDefault>(defaultValue: TDefault, path: lodash.__, object: TObject | null | undefined): LodashPropOr1x5<TObject, TDefault>;
|
|
3030
2998
|
<TObject extends object, TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey], object: TObject | null | undefined): LodashPropOr1x6<TObject, TKey>;
|
|
3031
|
-
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
2999
|
+
<TObject extends object, TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
3032
3000
|
(defaultValue: lodash.__, path: number): LodashPropOr2x2;
|
|
3033
3001
|
<TDefault>(defaultValue: TDefault, path: number): LodashPropOr2x3<TDefault>;
|
|
3034
3002
|
<T>(defaultValue: lodash.__, path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPropOr2x4<T>;
|
|
@@ -3051,7 +3019,7 @@ declare namespace _ {
|
|
|
3051
3019
|
interface LodashPropOr1x1<TDefault> {
|
|
3052
3020
|
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey]): LodashPropOr1x3<TObject, TKey, TDefault>;
|
|
3053
3021
|
<TObject extends object>(path: lodash.__, object: TObject | null | undefined): LodashPropOr1x5<TObject, TDefault>;
|
|
3054
|
-
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
3022
|
+
<TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey], object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
3055
3023
|
(path: number): LodashPropOr2x3<TDefault>;
|
|
3056
3024
|
<T>(path: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPropOr2x5<T, TDefault>;
|
|
3057
3025
|
<T>(path: number, object: lodash.NumericDictionary<T> | null | undefined): T | TDefault;
|
|
@@ -3062,16 +3030,16 @@ declare namespace _ {
|
|
|
3062
3030
|
interface LodashPropOr1x2<TObject, TKey extends keyof TObject> {
|
|
3063
3031
|
<TDefault>(defaultValue: TDefault): LodashPropOr1x3<TObject, TKey, TDefault>;
|
|
3064
3032
|
(defaultValue: lodash.__, object: TObject | null | undefined): LodashPropOr1x6<TObject, TKey>;
|
|
3065
|
-
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): TObject[TKey] | TDefault;
|
|
3033
|
+
<TDefault>(defaultValue: TDefault, object: TObject | null | undefined): Exclude<TObject[TKey], undefined> | TDefault;
|
|
3066
3034
|
}
|
|
3067
|
-
type LodashPropOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => TObject[TKey] | TDefault;
|
|
3035
|
+
type LodashPropOr1x3<TObject, TKey extends keyof TObject, TDefault> = (object: TObject | null | undefined) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
3068
3036
|
interface LodashPropOr1x4<TObject> {
|
|
3069
3037
|
<TDefault>(defaultValue: TDefault): LodashPropOr1x5<TObject, TDefault>;
|
|
3070
3038
|
<TKey extends keyof TObject>(defaultValue: lodash.__, path: TKey | [TKey]): LodashPropOr1x6<TObject, TKey>;
|
|
3071
|
-
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): TObject[TKey] | TDefault;
|
|
3039
|
+
<TKey extends keyof TObject, TDefault>(defaultValue: TDefault, path: TKey | [TKey]): Exclude<TObject[TKey], undefined> | TDefault;
|
|
3072
3040
|
}
|
|
3073
|
-
type LodashPropOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => TObject[TKey] | TDefault;
|
|
3074
|
-
type LodashPropOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => TObject[TKey] | TDefault;
|
|
3041
|
+
type LodashPropOr1x5<TObject, TDefault> = <TKey extends keyof TObject>(path: TKey | [TKey]) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
3042
|
+
type LodashPropOr1x6<TObject, TKey extends keyof TObject> = <TDefault>(defaultValue: TDefault) => Exclude<TObject[TKey], undefined> | TDefault;
|
|
3075
3043
|
interface LodashPropOr2x2 {
|
|
3076
3044
|
<TDefault>(defaultValue: TDefault): LodashPropOr2x3<TDefault>;
|
|
3077
3045
|
<T>(defaultValue: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPropOr2x6<T>;
|
|
@@ -3536,20 +3504,15 @@ declare namespace _ {
|
|
|
3536
3504
|
type LodashReduceRight3x5<TResult> = (accumulator: TResult) => TResult;
|
|
3537
3505
|
type LodashReduceRight3x6<T, TResult> = (callback: lodash.MemoIteratorCappedRight<T[keyof T], TResult>) => TResult;
|
|
3538
3506
|
interface LodashReject {
|
|
3539
|
-
(predicate:
|
|
3540
|
-
(predicate: lodash.__, collection:
|
|
3541
|
-
(predicate: (value: string) => boolean, collection: string | null | undefined): string[];
|
|
3542
|
-
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>): LodashReject2x1<T>;
|
|
3543
|
-
<T>(predicate: lodash.__, collection: lodash.List<T> | null | undefined): LodashReject2x2<T>;
|
|
3507
|
+
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>): LodashReject1x1<T>;
|
|
3508
|
+
<T>(predicate: lodash.__, collection: lodash.List<T> | null | undefined): LodashReject1x2<T>;
|
|
3544
3509
|
<T>(predicate: lodash.ValueIterateeCustom<T, boolean>, collection: lodash.List<T> | null | undefined): T[];
|
|
3545
|
-
<T extends object>(predicate: lodash.__, collection: T | null | undefined):
|
|
3510
|
+
<T extends object>(predicate: lodash.__, collection: T | null | undefined): LodashReject2x2<T>;
|
|
3546
3511
|
<T extends object>(predicate: lodash.ValueIterateeCustom<T[keyof T], boolean>, collection: T | null | undefined): Array<T[keyof T]>;
|
|
3547
3512
|
}
|
|
3548
|
-
type LodashReject1x1 = (collection:
|
|
3549
|
-
type LodashReject1x2 = (predicate:
|
|
3550
|
-
type
|
|
3551
|
-
type LodashReject2x2<T> = (predicate: lodash.ValueIterateeCustom<T, boolean>) => T[];
|
|
3552
|
-
type LodashReject3x2<T> = (predicate: lodash.ValueIterateeCustom<T[keyof T], boolean>) => Array<T[keyof T]>;
|
|
3513
|
+
type LodashReject1x1<T> = (collection: lodash.List<T> | object | null | undefined) => T[];
|
|
3514
|
+
type LodashReject1x2<T> = (predicate: lodash.ValueIterateeCustom<T, boolean>) => T[];
|
|
3515
|
+
type LodashReject2x2<T> = (predicate: lodash.ValueIterateeCustom<T[keyof T], boolean>) => Array<T[keyof T]>;
|
|
3553
3516
|
interface LodashRemove {
|
|
3554
3517
|
<T>(predicate: lodash.ValueIteratee<T>): LodashRemove1x1<T>;
|
|
3555
3518
|
<T>(predicate: lodash.__, array: lodash.List<T>): LodashRemove1x2<T>;
|
lodash/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Type definitions for Lo-Dash 4.14
|
|
2
|
-
// Project:
|
|
2
|
+
// Project: https://lodash.com
|
|
3
3
|
// Definitions by: Brian Zengel <https://github.com/bczengel>,
|
|
4
4
|
// Ilya Mochalov <https://github.com/chrootsu>,
|
|
5
5
|
// Stepan Mikhaylyuk <https://github.com/stepancar>,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// Jack Moore <https://github.com/jtmthf>,
|
|
11
11
|
// Dominique Rau <https://github.com/DomiR>
|
|
12
12
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
13
|
-
// TypeScript Version: 2.
|
|
13
|
+
// TypeScript Version: 2.8
|
|
14
14
|
|
|
15
15
|
/// <reference path="./common/common.d.ts" />
|
|
16
16
|
/// <reference path="./common/array.d.ts" />
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.123",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
"types": "index",
|
|
55
55
|
"repository": {
|
|
56
56
|
"type": "git",
|
|
57
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
|
57
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
58
|
+
"directory": "types/lodash"
|
|
58
59
|
},
|
|
59
60
|
"scripts": {},
|
|
60
61
|
"dependencies": {},
|
|
61
|
-
"typesPublisherContentHash": "
|
|
62
|
-
"typeScriptVersion": "2.
|
|
62
|
+
"typesPublisherContentHash": "bdeec7442a915674b843e08eff1cacc9b9fc47c98c5d9091cff5e75f3ca98961",
|
|
63
|
+
"typeScriptVersion": "2.8"
|
|
63
64
|
}
|