@types/lodash 4.14.90 → 4.14.91
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 +1 -1
- lodash/index.d.ts +148 -24
- lodash/package.json +2 -2
lodash/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Lo-Dash (http://lodash.com/).
|
|
|
8
8
|
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 15 Dec 2017 01:17:38 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: _
|
|
14
14
|
|
lodash/index.d.ts
CHANGED
|
@@ -6267,7 +6267,7 @@ declare namespace _ {
|
|
|
6267
6267
|
partition<T>(
|
|
6268
6268
|
collection: List<T> | null | undefined,
|
|
6269
6269
|
callback: ValueIteratee<T>
|
|
6270
|
-
): T[][];
|
|
6270
|
+
): [T[], T[]];
|
|
6271
6271
|
|
|
6272
6272
|
/**
|
|
6273
6273
|
* @see _.partition
|
|
@@ -6275,7 +6275,7 @@ declare namespace _ {
|
|
|
6275
6275
|
partition<T extends object>(
|
|
6276
6276
|
collection: T | null | undefined,
|
|
6277
6277
|
callback: ValueIteratee<T[keyof T]>
|
|
6278
|
-
): Array<Array<T[keyof T]
|
|
6278
|
+
): [Array<T[keyof T]>, Array<T[keyof T]>];
|
|
6279
6279
|
}
|
|
6280
6280
|
|
|
6281
6281
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -6285,7 +6285,7 @@ declare namespace _ {
|
|
|
6285
6285
|
partition<T>(
|
|
6286
6286
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
6287
6287
|
callback: ValueIteratee<T>
|
|
6288
|
-
): LoDashImplicitWrapper<T[][]>;
|
|
6288
|
+
): LoDashImplicitWrapper<[T[], T[]]>;
|
|
6289
6289
|
|
|
6290
6290
|
/**
|
|
6291
6291
|
* @see _.partition
|
|
@@ -6293,7 +6293,7 @@ declare namespace _ {
|
|
|
6293
6293
|
partition<T>(
|
|
6294
6294
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
6295
6295
|
callback: ValueIteratee<T[keyof T]>
|
|
6296
|
-
): LoDashImplicitWrapper<Array<Array<T[keyof T]
|
|
6296
|
+
): LoDashImplicitWrapper<[Array<T[keyof T]>, Array<T[keyof T]>]>;
|
|
6297
6297
|
}
|
|
6298
6298
|
|
|
6299
6299
|
interface LoDashExplicitWrapper<TValue> {
|
|
@@ -6303,7 +6303,7 @@ declare namespace _ {
|
|
|
6303
6303
|
partition<T>(
|
|
6304
6304
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
6305
6305
|
callback: ValueIteratee<T>
|
|
6306
|
-
): LoDashExplicitWrapper<T[][]>;
|
|
6306
|
+
): LoDashExplicitWrapper<[T[], T[]]>;
|
|
6307
6307
|
|
|
6308
6308
|
/**
|
|
6309
6309
|
* @see _.partition
|
|
@@ -6311,7 +6311,7 @@ declare namespace _ {
|
|
|
6311
6311
|
partition<T>(
|
|
6312
6312
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
6313
6313
|
callback: ValueIteratee<T[keyof T]>
|
|
6314
|
-
): LoDashExplicitWrapper<Array<Array<T[keyof T]
|
|
6314
|
+
): LoDashExplicitWrapper<[Array<T[keyof T]>, Array<T[keyof T]>]>;
|
|
6315
6315
|
}
|
|
6316
6316
|
|
|
6317
6317
|
//_.reduce
|
|
@@ -11672,8 +11672,6 @@ declare namespace _ {
|
|
|
11672
11672
|
* @return Returns the random number.
|
|
11673
11673
|
*/
|
|
11674
11674
|
random(
|
|
11675
|
-
min?: number,
|
|
11676
|
-
max?: number,
|
|
11677
11675
|
floating?: boolean
|
|
11678
11676
|
): number;
|
|
11679
11677
|
|
|
@@ -11681,44 +11679,64 @@ declare namespace _ {
|
|
|
11681
11679
|
* @see _.random
|
|
11682
11680
|
*/
|
|
11683
11681
|
random(
|
|
11684
|
-
|
|
11682
|
+
max: number,
|
|
11685
11683
|
floating?: boolean
|
|
11686
11684
|
): number;
|
|
11687
11685
|
|
|
11688
11686
|
/**
|
|
11689
11687
|
* @see _.random
|
|
11690
11688
|
*/
|
|
11691
|
-
random(
|
|
11692
|
-
|
|
11689
|
+
random(
|
|
11690
|
+
min: number,
|
|
11691
|
+
max: number,
|
|
11692
|
+
floating?: boolean
|
|
11693
|
+
): number;
|
|
11693
11694
|
|
|
11694
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
11695
11695
|
/**
|
|
11696
|
-
*
|
|
11696
|
+
* Produces a random number between min and max (inclusive). If only one argument is provided a number between
|
|
11697
|
+
* 0 and the given number is returned. If floating is true, or either min or max are floats, a floating-point
|
|
11698
|
+
* number is returned instead of an integer.
|
|
11699
|
+
*
|
|
11700
|
+
* @param min The minimum possible value.
|
|
11701
|
+
* @param index Not used in this overload.
|
|
11702
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
11703
|
+
* @return Returns the random number.
|
|
11697
11704
|
*/
|
|
11698
11705
|
random(
|
|
11699
|
-
|
|
11700
|
-
|
|
11706
|
+
min: number,
|
|
11707
|
+
index: string | number,
|
|
11708
|
+
guard: object
|
|
11701
11709
|
): number;
|
|
11710
|
+
}
|
|
11702
11711
|
|
|
11712
|
+
interface LoDashImplicitWrapper<TValue> {
|
|
11703
11713
|
/**
|
|
11704
11714
|
* @see _.random
|
|
11705
11715
|
*/
|
|
11706
11716
|
random(floating?: boolean): number;
|
|
11707
|
-
}
|
|
11708
11717
|
|
|
11709
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
11710
11718
|
/**
|
|
11711
11719
|
* @see _.random
|
|
11712
11720
|
*/
|
|
11713
11721
|
random(
|
|
11714
|
-
max
|
|
11722
|
+
max: number,
|
|
11715
11723
|
floating?: boolean
|
|
11716
|
-
):
|
|
11724
|
+
): number;
|
|
11725
|
+
}
|
|
11717
11726
|
|
|
11727
|
+
interface LoDashExplicitWrapper<TValue> {
|
|
11718
11728
|
/**
|
|
11719
11729
|
* @see _.random
|
|
11720
11730
|
*/
|
|
11721
11731
|
random(floating?: boolean): LoDashExplicitWrapper<number>;
|
|
11732
|
+
|
|
11733
|
+
/**
|
|
11734
|
+
* @see _.random
|
|
11735
|
+
*/
|
|
11736
|
+
random(
|
|
11737
|
+
max: number,
|
|
11738
|
+
floating?: boolean
|
|
11739
|
+
): LoDashExplicitWrapper<number>;
|
|
11722
11740
|
}
|
|
11723
11741
|
|
|
11724
11742
|
/**********
|
|
@@ -14408,7 +14426,7 @@ declare namespace _ {
|
|
|
14408
14426
|
* // => { 'a': 1, 'c': 3 }
|
|
14409
14427
|
*/
|
|
14410
14428
|
pick<T extends object, U extends keyof T>(
|
|
14411
|
-
object: T
|
|
14429
|
+
object: T,
|
|
14412
14430
|
...props: Array<Many<U>>
|
|
14413
14431
|
): Pick<T, U>;
|
|
14414
14432
|
|
|
@@ -14426,7 +14444,7 @@ declare namespace _ {
|
|
|
14426
14444
|
* @see _.pick
|
|
14427
14445
|
*/
|
|
14428
14446
|
pick<T extends object, U extends keyof T>(
|
|
14429
|
-
this: LoDashImplicitWrapper<T
|
|
14447
|
+
this: LoDashImplicitWrapper<T>,
|
|
14430
14448
|
...props: Array<Many<U>>
|
|
14431
14449
|
): LoDashImplicitWrapper<Pick<T, U>>;
|
|
14432
14450
|
|
|
@@ -14444,7 +14462,7 @@ declare namespace _ {
|
|
|
14444
14462
|
* @see _.pick
|
|
14445
14463
|
*/
|
|
14446
14464
|
pick<T extends object, U extends keyof T>(
|
|
14447
|
-
this: LoDashExplicitWrapper<T
|
|
14465
|
+
this: LoDashExplicitWrapper<T>,
|
|
14448
14466
|
...props: Array<Many<U>>
|
|
14449
14467
|
): LoDashExplicitWrapper<Pick<T, U>>;
|
|
14450
14468
|
|
|
@@ -15681,6 +15699,9 @@ declare namespace _ {
|
|
|
15681
15699
|
*
|
|
15682
15700
|
* Note: This method is based on String#split.
|
|
15683
15701
|
*
|
|
15702
|
+
* @param string The string to trim.
|
|
15703
|
+
* @param separator The separator pattern to split by.
|
|
15704
|
+
* @param limit The length to truncate results to.
|
|
15684
15705
|
* @return Returns the new array of string segments.
|
|
15685
15706
|
*/
|
|
15686
15707
|
split(
|
|
@@ -15688,6 +15709,22 @@ declare namespace _ {
|
|
|
15688
15709
|
separator?: RegExp|string,
|
|
15689
15710
|
limit?: number
|
|
15690
15711
|
): string[];
|
|
15712
|
+
|
|
15713
|
+
/**
|
|
15714
|
+
* Splits string by separator.
|
|
15715
|
+
*
|
|
15716
|
+
* Note: This method is based on String#split.
|
|
15717
|
+
*
|
|
15718
|
+
* @param string The string to trim.
|
|
15719
|
+
* @param index Not used in this overload.
|
|
15720
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
15721
|
+
* @return Returns the new array of string segments.
|
|
15722
|
+
*/
|
|
15723
|
+
split(
|
|
15724
|
+
string: string,
|
|
15725
|
+
index: string | number,
|
|
15726
|
+
guard: object
|
|
15727
|
+
): string[];
|
|
15691
15728
|
}
|
|
15692
15729
|
|
|
15693
15730
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -15895,6 +15932,20 @@ declare namespace _ {
|
|
|
15895
15932
|
string?: string,
|
|
15896
15933
|
chars?: string
|
|
15897
15934
|
): string;
|
|
15935
|
+
|
|
15936
|
+
/**
|
|
15937
|
+
* Removes leading and trailing whitespace or specified characters from string.
|
|
15938
|
+
*
|
|
15939
|
+
* @param string The string to trim.
|
|
15940
|
+
* @param index Not used in this overload.
|
|
15941
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
15942
|
+
* @return Returns the trimmed string.
|
|
15943
|
+
*/
|
|
15944
|
+
trim(
|
|
15945
|
+
string: string,
|
|
15946
|
+
index: string | number,
|
|
15947
|
+
guard: object
|
|
15948
|
+
): string;
|
|
15898
15949
|
}
|
|
15899
15950
|
|
|
15900
15951
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -15924,6 +15975,20 @@ declare namespace _ {
|
|
|
15924
15975
|
string?: string,
|
|
15925
15976
|
chars?: string
|
|
15926
15977
|
): string;
|
|
15978
|
+
|
|
15979
|
+
/**
|
|
15980
|
+
* Removes trailing whitespace or specified characters from string.
|
|
15981
|
+
*
|
|
15982
|
+
* @param string The string to trim.
|
|
15983
|
+
* @param index Not used in this overload.
|
|
15984
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
15985
|
+
* @return Returns the trimmed string.
|
|
15986
|
+
*/
|
|
15987
|
+
trimEnd(
|
|
15988
|
+
string: string,
|
|
15989
|
+
index: string | number,
|
|
15990
|
+
guard: object
|
|
15991
|
+
): string;
|
|
15927
15992
|
}
|
|
15928
15993
|
|
|
15929
15994
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -15953,6 +16018,20 @@ declare namespace _ {
|
|
|
15953
16018
|
string?: string,
|
|
15954
16019
|
chars?: string
|
|
15955
16020
|
): string;
|
|
16021
|
+
|
|
16022
|
+
/**
|
|
16023
|
+
* Removes leading whitespace or specified characters from string.
|
|
16024
|
+
*
|
|
16025
|
+
* @param string The string to trim.
|
|
16026
|
+
* @param index Not used in this overload.
|
|
16027
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
16028
|
+
* @return Returns the trimmed string.
|
|
16029
|
+
*/
|
|
16030
|
+
trimStart(
|
|
16031
|
+
string: string,
|
|
16032
|
+
index: string | number,
|
|
16033
|
+
guard: object
|
|
16034
|
+
): string;
|
|
15956
16035
|
}
|
|
15957
16036
|
|
|
15958
16037
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -16100,6 +16179,20 @@ declare namespace _ {
|
|
|
16100
16179
|
string?: string,
|
|
16101
16180
|
pattern?: string|RegExp
|
|
16102
16181
|
): string[];
|
|
16182
|
+
|
|
16183
|
+
/**
|
|
16184
|
+
* Splits `string` into an array of its words.
|
|
16185
|
+
*
|
|
16186
|
+
* @param string The string to inspect.
|
|
16187
|
+
* @param index Not used in this overload.
|
|
16188
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
16189
|
+
* @return Returns the words of `string`.
|
|
16190
|
+
*/
|
|
16191
|
+
words(
|
|
16192
|
+
string: string,
|
|
16193
|
+
index: string | number,
|
|
16194
|
+
guard: object
|
|
16195
|
+
): string[];
|
|
16103
16196
|
}
|
|
16104
16197
|
|
|
16105
16198
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -16760,6 +16853,22 @@ declare namespace _ {
|
|
|
16760
16853
|
end?: number,
|
|
16761
16854
|
step?: number
|
|
16762
16855
|
): number[];
|
|
16856
|
+
|
|
16857
|
+
/**
|
|
16858
|
+
* Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end.
|
|
16859
|
+
* If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length
|
|
16860
|
+
* range is created unless a negative step is specified.
|
|
16861
|
+
*
|
|
16862
|
+
* @param start The start of the range.
|
|
16863
|
+
* @param index Not used in this overload.
|
|
16864
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
16865
|
+
* @return Returns a new range array.
|
|
16866
|
+
*/
|
|
16867
|
+
range(
|
|
16868
|
+
end: number,
|
|
16869
|
+
index: string | number,
|
|
16870
|
+
guard: object
|
|
16871
|
+
): number[];
|
|
16763
16872
|
}
|
|
16764
16873
|
|
|
16765
16874
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -16789,9 +16898,9 @@ declare namespace _ {
|
|
|
16789
16898
|
* descending order.
|
|
16790
16899
|
*
|
|
16791
16900
|
* @category Util
|
|
16792
|
-
* @param
|
|
16901
|
+
* @param start The start of the range.
|
|
16793
16902
|
* @param end The end of the range.
|
|
16794
|
-
* @param
|
|
16903
|
+
* @param step The value to increment or decrement by.
|
|
16795
16904
|
* @returns Returns the new array of numbers.
|
|
16796
16905
|
* @example
|
|
16797
16906
|
*
|
|
@@ -16821,6 +16930,21 @@ declare namespace _ {
|
|
|
16821
16930
|
end?: number,
|
|
16822
16931
|
step?: number
|
|
16823
16932
|
): number[];
|
|
16933
|
+
|
|
16934
|
+
/**
|
|
16935
|
+
* This method is like _.range except that it populates values in
|
|
16936
|
+
* descending order.
|
|
16937
|
+
*
|
|
16938
|
+
* @param start The start of the range.
|
|
16939
|
+
* @param index Not used in this overload.
|
|
16940
|
+
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
16941
|
+
* @return Returns a new range array.
|
|
16942
|
+
*/
|
|
16943
|
+
rangeRight(
|
|
16944
|
+
end: number,
|
|
16945
|
+
index: string | number,
|
|
16946
|
+
guard: object
|
|
16947
|
+
): number[];
|
|
16824
16948
|
}
|
|
16825
16949
|
|
|
16826
16950
|
interface LoDashImplicitWrapper<TValue> {
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.91",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"scripts": {},
|
|
59
59
|
"dependencies": {},
|
|
60
|
-
"typesPublisherContentHash": "
|
|
60
|
+
"typesPublisherContentHash": "622a55f21f6d581d6504eb69d0b85e9e39e9be3fe748f0b7ea2696e7f06f37fc",
|
|
61
61
|
"typeScriptVersion": "2.2"
|
|
62
62
|
}
|