@types/lodash 4.14.100 → 4.14.104
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/array.d.ts +3845 -0
- lodash/common/collection.d.ts +3091 -0
- lodash/common/common.d.ts +3 -3
- lodash/{date/now.d.ts → common/date.d.ts} +3 -1
- lodash/common/function.d.ts +1367 -0
- lodash/common/lang.d.ts +1937 -0
- lodash/common/math.d.ts +536 -0
- lodash/{number/random.d.ts → common/number.d.ts} +98 -1
- lodash/common/object.d.ts +3653 -0
- lodash/common/seq.d.ts +198 -0
- lodash/common/string.d.ts +1059 -0
- lodash/common/util.d.ts +1455 -0
- lodash/index.d.ts +11 -338
- lodash/package.json +2 -7
- lodash/array/chunk.d.ts +0 -37
- lodash/array/compact.d.ts +0 -27
- lodash/array/concat.d.ts +0 -39
- lodash/array/difference.d.ts +0 -37
- lodash/array/differenceBy.d.ts +0 -243
- lodash/array/differenceWith.d.ts +0 -132
- lodash/array/drop.d.ts +0 -27
- lodash/array/dropRight.d.ts +0 -30
- lodash/array/dropRightWhile.d.ts +0 -47
- lodash/array/dropWhile.d.ts +0 -47
- lodash/array/fill.d.ts +0 -124
- lodash/array/findIndex.d.ts +0 -50
- lodash/array/findLastIndex.d.ts +0 -49
- lodash/array/first.d.ts +0 -23
- lodash/array/flatten.d.ts +0 -43
- lodash/array/flattenDeep.d.ts +0 -26
- lodash/array/flattenDepth.d.ts +0 -27
- lodash/array/fromPairs.d.ts +0 -59
- lodash/array/head.d.ts +0 -28
- lodash/array/indexOf.d.ts +0 -53
- lodash/array/initial.d.ts +0 -26
- lodash/array/intersection.d.ts +0 -33
- lodash/array/intersectionBy.d.ts +0 -134
- lodash/array/intersectionWith.d.ts +0 -133
- lodash/array/join.d.ts +0 -30
- lodash/array/last.d.ts +0 -26
- lodash/array/lastIndexOf.d.ts +0 -40
- lodash/array/nth.d.ts +0 -36
- lodash/array/pull.d.ts +0 -46
- lodash/array/pullAll.d.ts +0 -54
- lodash/array/pullAllBy.d.ts +0 -77
- lodash/array/pullAllWith.d.ts +0 -77
- lodash/array/pullAt.d.ts +0 -34
- lodash/array/remove.d.ts +0 -49
- lodash/array/reverse.d.ts +0 -27
- lodash/array/slice.d.ts +0 -40
- lodash/array/sortedIndex.d.ts +0 -45
- lodash/array/sortedIndexBy.d.ts +0 -97
- lodash/array/sortedIndexOf.d.ts +0 -42
- lodash/array/sortedLastIndex.d.ts +0 -43
- lodash/array/sortedLastIndexBy.d.ts +0 -48
- lodash/array/sortedLastIndexOf.d.ts +0 -42
- lodash/array/sortedUniq.d.ts +0 -34
- lodash/array/sortedUniqBy.d.ts +0 -66
- lodash/array/tail.d.ts +0 -26
- lodash/array/take.d.ts +0 -36
- lodash/array/takeRight.d.ts +0 -36
- lodash/array/takeRightWhile.d.ts +0 -47
- lodash/array/takeWhile.d.ts +0 -47
- lodash/array/union.d.ts +0 -33
- lodash/array/unionBy.d.ts +0 -164
- lodash/array/unionWith.d.ts +0 -103
- lodash/array/uniq.d.ts +0 -36
- lodash/array/uniqBy.d.ts +0 -71
- lodash/array/uniqWith.d.ts +0 -45
- lodash/array/unzip.d.ts +0 -27
- lodash/array/unzipWith.d.ts +0 -60
- lodash/array/without.d.ts +0 -36
- lodash/array/xor.d.ts +0 -32
- lodash/array/xorBy.d.ts +0 -104
- lodash/array/xorWith.d.ts +0 -103
- lodash/array/zip.d.ts +0 -129
- lodash/array/zipObject.d.ts +0 -58
- lodash/array/zipObjectDeep.d.ts +0 -36
- lodash/array/zipWith.d.ts +0 -187
- lodash/collection/countBy.d.ts +0 -121
- lodash/collection/each.d.ts +0 -40
- lodash/collection/eachRight.d.ts +0 -40
- lodash/collection/every.d.ts +0 -85
- lodash/collection/filter.d.ts +0 -143
- lodash/collection/find.d.ts +0 -131
- lodash/collection/findLast.d.ts +0 -121
- lodash/collection/flatMap.d.ts +0 -164
- lodash/collection/flatMapDeep.d.ts +0 -164
- lodash/collection/flatMapDepth.d.ts +0 -180
- lodash/collection/forEach.d.ts +0 -113
- lodash/collection/forEachRight.d.ts +0 -108
- lodash/collection/groupBy.d.ts +0 -121
- lodash/collection/includes.d.ts +0 -41
- lodash/collection/invokeMap.d.ts +0 -58
- lodash/collection/keyBy.d.ts +0 -121
- lodash/collection/map.d.ts +0 -180
- lodash/collection/orderBy.d.ts +0 -192
- lodash/collection/partition.d.ts +0 -72
- lodash/collection/reduce.d.ts +0 -220
- lodash/collection/reduceRight.d.ts +0 -217
- lodash/collection/reject.d.ts +0 -86
- lodash/collection/sample.d.ts +0 -74
- lodash/collection/sampleSize.d.ts +0 -60
- lodash/collection/shuffle.d.ts +0 -41
- lodash/collection/size.d.ts +0 -27
- lodash/collection/some.d.ts +0 -85
- lodash/collection/sortBy.d.ts +0 -84
- lodash/function/after.d.ts +0 -30
- lodash/function/ary.d.ts +0 -30
- lodash/function/before.d.ts +0 -32
- lodash/function/bind.d.ts +0 -50
- lodash/function/bindKey.d.ts +0 -51
- lodash/function/curry.d.ts +0 -203
- lodash/function/curryRight.d.ts +0 -132
- lodash/function/debounce.d.ts +0 -67
- lodash/function/defer.d.ts +0 -31
- lodash/function/delay.d.ts +0 -38
- lodash/function/flip.d.ts +0 -28
- lodash/function/memoize.d.ts +0 -37
- lodash/function/negate.d.ts +0 -20
- lodash/function/once.d.ts +0 -20
- lodash/function/overArgs.d.ts +0 -31
- lodash/function/partial.d.ts +0 -159
- lodash/function/partialRight.d.ts +0 -150
- lodash/function/rearg.d.ts +0 -28
- lodash/function/rest.d.ts +0 -33
- lodash/function/spread.d.ts +0 -44
- lodash/function/throttle.d.ts +0 -58
- lodash/function/unary.d.ts +0 -32
- lodash/function/wrap.d.ts +0 -61
- lodash/lang/castArray.d.ts +0 -26
- lodash/lang/clone.d.ts +0 -31
- lodash/lang/cloneDeep.d.ts +0 -26
- lodash/lang/cloneDeepWith.d.ts +0 -51
- lodash/lang/cloneWith.d.ts +0 -74
- lodash/lang/conformsTo.d.ts +0 -31
- lodash/lang/eq.d.ts +0 -55
- lodash/lang/gt.d.ts +0 -30
- lodash/lang/gte.d.ts +0 -30
- lodash/lang/isArguments.d.ts +0 -26
- lodash/lang/isArray.d.ts +0 -31
- lodash/lang/isArrayBuffer.d.ts +0 -26
- lodash/lang/isArrayLike.d.ts +0 -52
- lodash/lang/isArrayLikeObject.d.ts +0 -53
- lodash/lang/isBoolean.d.ts +0 -26
- lodash/lang/isBuffer.d.ts +0 -26
- lodash/lang/isDate.d.ts +0 -26
- lodash/lang/isElement.d.ts +0 -26
- lodash/lang/isEmpty.d.ts +0 -27
- lodash/lang/isEqual.d.ts +0 -52
- lodash/lang/isEqualWith.d.ts +0 -61
- lodash/lang/isError.d.ts +0 -27
- lodash/lang/isFinite.d.ts +0 -28
- lodash/lang/isFunction.d.ts +0 -26
- lodash/lang/isInteger.d.ts +0 -42
- lodash/lang/isLength.d.ts +0 -42
- lodash/lang/isMap.d.ts +0 -26
- lodash/lang/isMatch.d.ts +0 -42
- lodash/lang/isMatchWith.d.ts +0 -51
- lodash/lang/isNaN.d.ts +0 -28
- lodash/lang/isNative.d.ts +0 -26
- lodash/lang/isNil.d.ts +0 -37
- lodash/lang/isNull.d.ts +0 -26
- lodash/lang/isNumber.d.ts +0 -28
- lodash/lang/isObject.d.ts +0 -27
- lodash/lang/isObjectLike.d.ts +0 -41
- lodash/lang/isPlainObject.d.ts +0 -29
- lodash/lang/isRegExp.d.ts +0 -26
- lodash/lang/isSafeInteger.d.ts +0 -43
- lodash/lang/isSet.d.ts +0 -26
- lodash/lang/isString.d.ts +0 -26
- lodash/lang/isSymbol.d.ts +0 -34
- lodash/lang/isTypedArray.d.ts +0 -26
- lodash/lang/isUndefined.d.ts +0 -26
- lodash/lang/isWeakMap.d.ts +0 -26
- lodash/lang/isWeakSet.d.ts +0 -26
- lodash/lang/lt.d.ts +0 -30
- lodash/lang/lte.d.ts +0 -30
- lodash/lang/toArray.d.ts +0 -46
- lodash/lang/toFinite.d.ts +0 -41
- lodash/lang/toInteger.d.ts +0 -42
- lodash/lang/toLength.d.ts +0 -43
- lodash/lang/toNumber.d.ts +0 -40
- lodash/lang/toPlainObject.d.ts +0 -27
- lodash/lang/toSafeInteger.d.ts +0 -41
- lodash/lang/toString.d.ts +0 -24
- lodash/math/add.d.ts +0 -30
- lodash/math/ceil.d.ts +0 -30
- lodash/math/divide.d.ts +0 -30
- lodash/math/floor.d.ts +0 -30
- lodash/math/max.d.ts +0 -30
- lodash/math/maxBy.d.ts +0 -49
- lodash/math/mean.d.ts +0 -33
- lodash/math/meanBy.d.ts +0 -41
- lodash/math/min.d.ts +0 -30
- lodash/math/minBy.d.ts +0 -49
- lodash/math/multiply.d.ts +0 -29
- lodash/math/round.d.ts +0 -30
- lodash/math/subtract.d.ts +0 -39
- lodash/math/sum.d.ts +0 -31
- lodash/math/sumBy.d.ts +0 -53
- lodash/number/clamp.d.ts +0 -56
- lodash/number/inRange.d.ts +0 -39
- lodash/object/assign.d.ts +0 -172
- lodash/object/assignIn.d.ts +0 -171
- lodash/object/assignInWith.d.ts +0 -183
- lodash/object/assignWith.d.ts +0 -180
- lodash/object/at.d.ts +0 -61
- lodash/object/create.d.ts +0 -31
- lodash/object/defaults.d.ts +0 -155
- lodash/object/defaultsDeep.d.ts +0 -28
- lodash/object/entries.d.ts +0 -38
- lodash/object/entriesIn.d.ts +0 -38
- lodash/object/extend.d.ts +0 -147
- lodash/object/extendWith.d.ts +0 -159
- lodash/object/findKey.d.ts +0 -47
- lodash/object/findLastKey.d.ts +0 -46
- lodash/object/forIn.d.ts +0 -37
- lodash/object/forInRight.d.ts +0 -35
- lodash/object/forOwn.d.ts +0 -37
- lodash/object/forOwnRight.d.ts +0 -35
- lodash/object/functions.d.ts +0 -39
- lodash/object/functionsIn.d.ts +0 -39
- lodash/object/get.d.ts +0 -238
- lodash/object/has.d.ts +0 -47
- lodash/object/hasIn.d.ts +0 -46
- lodash/object/invert.d.ts +0 -30
- lodash/object/invertBy.d.ts +0 -62
- lodash/object/invoke.d.ts +0 -33
- lodash/object/keys.d.ts +0 -28
- lodash/object/keysIn.d.ts +0 -28
- lodash/object/mapKeys.d.ts +0 -86
- lodash/object/mapValues.d.ts +0 -189
- lodash/object/merge.d.ts +0 -156
- lodash/object/mergeWith.d.ts +0 -133
- lodash/object/omit.d.ts +0 -69
- lodash/object/omitBy.d.ts +0 -45
- lodash/object/pick.d.ts +0 -68
- lodash/object/pickBy.d.ts +0 -44
- lodash/object/result.d.ts +0 -39
- lodash/object/set.d.ts +0 -65
- lodash/object/setWith.d.ts +0 -71
- lodash/object/toPairs.d.ts +0 -41
- lodash/object/toPairsIn.d.ts +0 -41
- lodash/object/transform.d.ts +0 -163
- lodash/object/unset.d.ts +0 -32
- lodash/object/update.d.ts +0 -39
- lodash/object/updateWith.d.ts +0 -83
- lodash/object/values.d.ts +0 -56
- lodash/object/valuesIn.d.ts +0 -41
- lodash/seq/chain.d.ts +0 -26
- lodash/seq/prototype.at.d.ts +0 -12
- lodash/seq/prototype.chain.d.ts +0 -26
- lodash/seq/prototype.commit.d.ts +0 -11
- lodash/seq/prototype.plant.d.ts +0 -18
- lodash/seq/prototype.reverse.d.ts +0 -14
- lodash/seq/prototype.toJSON.d.ts +0 -9
- lodash/seq/prototype.toString.d.ts +0 -11
- lodash/seq/prototype.value.d.ts +0 -13
- lodash/seq/prototype.valueOf.d.ts +0 -9
- lodash/seq/tap.d.ts +0 -28
- lodash/seq/thru.d.ts +0 -31
- lodash/string/camelCase.d.ts +0 -26
- lodash/string/capitalize.d.ts +0 -26
- lodash/string/deburr.d.ts +0 -27
- lodash/string/endsWith.d.ts +0 -38
- lodash/string/escape.d.ts +0 -37
- lodash/string/escapeRegExp.d.ts +0 -27
- lodash/string/kebabCase.d.ts +0 -26
- lodash/string/lowerCase.d.ts +0 -26
- lodash/string/lowerFirst.d.ts +0 -26
- lodash/string/pad.d.ts +0 -39
- lodash/string/padEnd.d.ts +0 -39
- lodash/string/padStart.d.ts +0 -39
- lodash/string/parseInt.d.ts +0 -33
- lodash/string/repeat.d.ts +0 -32
- lodash/string/replace.d.ts +0 -59
- lodash/string/snakeCase.d.ts +0 -26
- lodash/string/split.d.ts +0 -56
- lodash/string/startCase.d.ts +0 -26
- lodash/string/startsWith.d.ts +0 -38
- lodash/string/template.d.ts +0 -61
- lodash/string/toLower.d.ts +0 -26
- lodash/string/toUpper.d.ts +0 -26
- lodash/string/trim.d.ts +0 -44
- lodash/string/trimEnd.d.ts +0 -44
- lodash/string/trimStart.d.ts +0 -44
- lodash/string/truncate.d.ts +0 -40
- lodash/string/unescape.d.ts +0 -30
- lodash/string/upperCase.d.ts +0 -26
- lodash/string/upperFirst.d.ts +0 -26
- lodash/string/words.d.ts +0 -44
- lodash/util/attempt.d.ts +0 -27
- lodash/util/bindAll.d.ts +0 -28
- lodash/util/cond.d.ts +0 -33
- lodash/util/conforms.d.ts +0 -28
- lodash/util/constant.d.ts +0 -26
- lodash/util/defaultTo.d.ts +0 -53
- lodash/util/flow.d.ts +0 -171
- lodash/util/flowRight.d.ts +0 -156
- lodash/util/identity.d.ts +0 -31
- lodash/util/iteratee.d.ts +0 -58
- lodash/util/matches.d.ts +0 -36
- lodash/util/matchesProperty.d.ts +0 -59
- lodash/util/method.d.ts +0 -31
- lodash/util/methodOf.d.ts +0 -35
- lodash/util/mixin.d.ts +0 -69
- lodash/util/noConflict.d.ts +0 -25
- lodash/util/noop.d.ts +0 -25
- lodash/util/nthArg.d.ts +0 -26
- lodash/util/over.d.ts +0 -33
- lodash/util/overEvery.d.ts +0 -27
- lodash/util/overSome.d.ts +0 -27
- lodash/util/property.d.ts +0 -26
- lodash/util/propertyOf.d.ts +0 -27
- lodash/util/range.d.ts +0 -56
- lodash/util/rangeRight.d.ts +0 -77
- lodash/util/runInContext.d.ts +0 -19
- lodash/util/stubArray.d.ts +0 -25
- lodash/util/stubFalse.d.ts +0 -25
- lodash/util/stubObject.d.ts +0 -25
- lodash/util/stubString.d.ts +0 -25
- lodash/util/stubTrue.d.ts +0 -25
- lodash/util/times.d.ts +0 -50
- lodash/util/toPath.d.ts +0 -43
- lodash/util/uniqueId.d.ts +0 -26
lodash/collection/includes.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Checks if target is in collection using SameValueZero for equality comparisons. If fromIndex is negative,
|
|
6
|
-
* it’s used as the offset from the end of collection.
|
|
7
|
-
*
|
|
8
|
-
* @param collection The collection to search.
|
|
9
|
-
* @param target The value to search for.
|
|
10
|
-
* @param fromIndex The index to search from.
|
|
11
|
-
* @return True if the target element is found, else false.
|
|
12
|
-
*/
|
|
13
|
-
includes<T>(
|
|
14
|
-
collection: List<T>|Dictionary<T> | null | undefined,
|
|
15
|
-
target: T,
|
|
16
|
-
fromIndex?: number
|
|
17
|
-
): boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.includes
|
|
23
|
-
*/
|
|
24
|
-
includes<T>(
|
|
25
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
|
|
26
|
-
target: T,
|
|
27
|
-
fromIndex?: number
|
|
28
|
-
): boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.includes
|
|
34
|
-
*/
|
|
35
|
-
includes<T>(
|
|
36
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
|
|
37
|
-
target: T,
|
|
38
|
-
fromIndex?: number
|
|
39
|
-
): LoDashExplicitWrapper<boolean>;
|
|
40
|
-
}
|
|
41
|
-
}
|
lodash/collection/invokeMap.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Invokes the method named by methodName on each element in the collection returning
|
|
6
|
-
* an array of the results of each invoked method. Additional arguments will be provided
|
|
7
|
-
* to each invoked method. If methodName is a function it will be invoked for, and this
|
|
8
|
-
* bound to, each element in the collection.
|
|
9
|
-
* @param collection The collection to iterate over.
|
|
10
|
-
* @param methodName The name of the method to invoke.
|
|
11
|
-
* @param args Arguments to invoke the method with.
|
|
12
|
-
**/
|
|
13
|
-
invokeMap(
|
|
14
|
-
collection: object | null | undefined,
|
|
15
|
-
methodName: string,
|
|
16
|
-
...args: any[]): any[];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.invokeMap
|
|
20
|
-
**/
|
|
21
|
-
invokeMap<TResult>(
|
|
22
|
-
collection: object | null | undefined,
|
|
23
|
-
method: (...args: any[]) => TResult,
|
|
24
|
-
...args: any[]): TResult[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.invokeMap
|
|
30
|
-
**/
|
|
31
|
-
invokeMap(
|
|
32
|
-
methodName: string,
|
|
33
|
-
...args: any[]): LoDashImplicitWrapper<any[]>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.invokeMap
|
|
37
|
-
**/
|
|
38
|
-
invokeMap<TResult>(
|
|
39
|
-
method: (...args: any[]) => TResult,
|
|
40
|
-
...args: any[]): LoDashImplicitWrapper<TResult[]>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
44
|
-
/**
|
|
45
|
-
* @see _.invokeMap
|
|
46
|
-
**/
|
|
47
|
-
invokeMap(
|
|
48
|
-
methodName: string,
|
|
49
|
-
...args: any[]): LoDashExplicitWrapper<any[]>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @see _.invokeMap
|
|
53
|
-
**/
|
|
54
|
-
invokeMap<TResult>(
|
|
55
|
-
method: (...args: any[]) => TResult,
|
|
56
|
-
...args: any[]): LoDashExplicitWrapper<TResult[]>;
|
|
57
|
-
}
|
|
58
|
-
}
|
lodash/collection/keyBy.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an object composed of keys generated from the results of running each element of collection through
|
|
6
|
-
* iteratee. The corresponding value of each key is the last element responsible for generating the key. The
|
|
7
|
-
* iteratee function is bound to thisArg and invoked with three arguments:
|
|
8
|
-
* (value, index|key, collection).
|
|
9
|
-
*
|
|
10
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property
|
|
11
|
-
* value of the given element.
|
|
12
|
-
*
|
|
13
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
14
|
-
* elements that have a matching property value, else false.
|
|
15
|
-
*
|
|
16
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
17
|
-
* have the properties of the given object, else false.
|
|
18
|
-
*
|
|
19
|
-
* @param collection The collection to iterate over.
|
|
20
|
-
* @param iteratee The function invoked per iteration.
|
|
21
|
-
* @param thisArg The this binding of iteratee.
|
|
22
|
-
* @return Returns the composed aggregate object.
|
|
23
|
-
*/
|
|
24
|
-
keyBy(
|
|
25
|
-
collection: string | null | undefined,
|
|
26
|
-
iteratee?: StringIterator<PropertyName>
|
|
27
|
-
): Dictionary<string>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @see _.keyBy
|
|
31
|
-
*/
|
|
32
|
-
keyBy<T>(
|
|
33
|
-
collection: List<T> | null | undefined,
|
|
34
|
-
iteratee?: ListIterateeCustom<T, PropertyName>
|
|
35
|
-
): Dictionary<T>;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @see _.keyBy
|
|
39
|
-
*/
|
|
40
|
-
keyBy<T extends object>(
|
|
41
|
-
collection: T | null | undefined,
|
|
42
|
-
iteratee?: ObjectIterateeCustom<T, PropertyName>
|
|
43
|
-
): Dictionary<T[keyof T]>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see _.keyBy
|
|
47
|
-
*/
|
|
48
|
-
keyBy<T>(
|
|
49
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
50
|
-
iteratee?: NumericDictionaryIterateeCustom<T, PropertyName>
|
|
51
|
-
): Dictionary<T>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
55
|
-
/**
|
|
56
|
-
* @see _.keyBy
|
|
57
|
-
*/
|
|
58
|
-
keyBy(
|
|
59
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
60
|
-
iteratee?: StringIterator<PropertyName>
|
|
61
|
-
): LoDashImplicitWrapper<Dictionary<string>>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @see _.keyBy
|
|
65
|
-
*/
|
|
66
|
-
keyBy<T>(
|
|
67
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
68
|
-
iteratee?: ListIterateeCustom<T, PropertyName>
|
|
69
|
-
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @see _.keyBy
|
|
73
|
-
*/
|
|
74
|
-
keyBy<T extends object>(
|
|
75
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
76
|
-
iteratee?: ObjectIterateeCustom<T, PropertyName>
|
|
77
|
-
): LoDashImplicitWrapper<Dictionary<T[keyof T]>>;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @see _.keyBy
|
|
81
|
-
*/
|
|
82
|
-
keyBy<T>(
|
|
83
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
84
|
-
iteratee?: NumericDictionaryIterateeCustom<T, PropertyName>
|
|
85
|
-
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
89
|
-
/**
|
|
90
|
-
* @see _.keyBy
|
|
91
|
-
*/
|
|
92
|
-
keyBy(
|
|
93
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
94
|
-
iteratee?: StringIterator<PropertyName>
|
|
95
|
-
): LoDashExplicitWrapper<Dictionary<string>>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @see _.keyBy
|
|
99
|
-
*/
|
|
100
|
-
keyBy<T>(
|
|
101
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
102
|
-
iteratee?: ListIterateeCustom<T, PropertyName>
|
|
103
|
-
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @see _.keyBy
|
|
107
|
-
*/
|
|
108
|
-
keyBy<T extends object>(
|
|
109
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
110
|
-
iteratee?: ObjectIterateeCustom<T, PropertyName>
|
|
111
|
-
): LoDashExplicitWrapper<Dictionary<T[keyof T]>>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @see _.keyBy
|
|
115
|
-
*/
|
|
116
|
-
keyBy<T>(
|
|
117
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
118
|
-
iteratee?: NumericDictionaryIterateeCustom<T, PropertyName>
|
|
119
|
-
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
120
|
-
}
|
|
121
|
-
}
|
lodash/collection/map.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an array of values by running each element in collection through iteratee. The iteratee is bound to
|
|
6
|
-
* thisArg and invoked with three arguments: (value, index|key, collection).
|
|
7
|
-
*
|
|
8
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property value
|
|
9
|
-
* of the given element.
|
|
10
|
-
*
|
|
11
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
12
|
-
* elements that have a matching property value, else false.
|
|
13
|
-
*
|
|
14
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
15
|
-
* have the properties of the given object, else false.
|
|
16
|
-
*
|
|
17
|
-
* Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues,
|
|
18
|
-
* _.reject, and _.some.
|
|
19
|
-
*
|
|
20
|
-
* The guarded methods are:
|
|
21
|
-
* ary, callback, chunk, clone, create, curry, curryRight, drop, dropRight, every, fill, flatten, invert, max,
|
|
22
|
-
* min, parseInt, slice, sortBy, take, takeRight, template, trim, trimLeft, trimRight, trunc, random, range,
|
|
23
|
-
* sample, some, sum, uniq, and words
|
|
24
|
-
*
|
|
25
|
-
* @param collection The collection to iterate over.
|
|
26
|
-
* @param iteratee The function invoked per iteration.
|
|
27
|
-
* @param thisArg The this binding of iteratee.
|
|
28
|
-
* @return Returns the new mapped array.
|
|
29
|
-
*/
|
|
30
|
-
map<T, TResult>(
|
|
31
|
-
collection: List<T> | null | undefined,
|
|
32
|
-
iteratee: ListIterator<T, TResult>
|
|
33
|
-
): TResult[];
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.map
|
|
37
|
-
*/
|
|
38
|
-
map<T>(collection: List<T> | Dictionary<T> | null | undefined): T[];
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @see _.map
|
|
42
|
-
*/
|
|
43
|
-
map<T, TResult>(
|
|
44
|
-
collection: Dictionary<T> | null | undefined,
|
|
45
|
-
iteratee: DictionaryIterator<T, TResult>
|
|
46
|
-
): TResult[];
|
|
47
|
-
|
|
48
|
-
/** @see _.map */
|
|
49
|
-
map<T, K extends keyof T>(
|
|
50
|
-
collection: List<T> | Dictionary<T> | null | undefined,
|
|
51
|
-
iteratee: K
|
|
52
|
-
): Array<T[K]>;
|
|
53
|
-
|
|
54
|
-
/** @see _.map */
|
|
55
|
-
map<T, TResult>(
|
|
56
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
57
|
-
iteratee?: NumericDictionaryIterator<T, TResult>
|
|
58
|
-
): TResult[];
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @see _.map
|
|
62
|
-
*/
|
|
63
|
-
map<T, TResult>(
|
|
64
|
-
collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
|
|
65
|
-
iteratee?: string
|
|
66
|
-
): TResult[];
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @see _.map
|
|
70
|
-
*/
|
|
71
|
-
map<T>(
|
|
72
|
-
collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
|
|
73
|
-
iteratee?: object
|
|
74
|
-
): boolean[];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
78
|
-
/**
|
|
79
|
-
* @see _.map
|
|
80
|
-
*/
|
|
81
|
-
map<T, TResult>(
|
|
82
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
83
|
-
iteratee: ListIterator<T, TResult>
|
|
84
|
-
): LoDashImplicitWrapper<TResult[]>;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @see _.map
|
|
88
|
-
*/
|
|
89
|
-
map<T>(this: LoDashImplicitWrapper<List<T> | Dictionary<T> | null | undefined>): LoDashImplicitWrapper<T[]>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @see _.map
|
|
93
|
-
*/
|
|
94
|
-
map<T, TResult>(
|
|
95
|
-
this: LoDashImplicitWrapper<Dictionary<T> | null | undefined>,
|
|
96
|
-
iteratee: DictionaryIterator<T, TResult>
|
|
97
|
-
): LoDashImplicitWrapper<TResult[]>;
|
|
98
|
-
|
|
99
|
-
/** @see _.map */
|
|
100
|
-
map<T, K extends keyof T>(
|
|
101
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
|
|
102
|
-
iteratee: K
|
|
103
|
-
): LoDashImplicitWrapper<Array<T[K]>>;
|
|
104
|
-
|
|
105
|
-
/** @see _.map */
|
|
106
|
-
map<T, TResult>(
|
|
107
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
108
|
-
iteratee?: NumericDictionaryIterator<T, TResult>
|
|
109
|
-
): LoDashImplicitWrapper<TResult[]>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @see _.map
|
|
113
|
-
*/
|
|
114
|
-
map<T, TResult>(
|
|
115
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
116
|
-
iteratee?: string
|
|
117
|
-
): LoDashImplicitWrapper<TResult[]>;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @see _.map
|
|
121
|
-
*/
|
|
122
|
-
map<T>(
|
|
123
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
124
|
-
iteratee?: object
|
|
125
|
-
): LoDashImplicitWrapper<boolean[]>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
129
|
-
/**
|
|
130
|
-
* @see _.map
|
|
131
|
-
*/
|
|
132
|
-
map<T, TResult>(
|
|
133
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
134
|
-
iteratee: ListIterator<T, TResult>
|
|
135
|
-
): LoDashExplicitWrapper<TResult[]>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @see _.map
|
|
139
|
-
*/
|
|
140
|
-
map<T>(this: LoDashExplicitWrapper<List<T> | Dictionary<T> | null | undefined>): LoDashExplicitWrapper<T[]>;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @see _.map
|
|
144
|
-
*/
|
|
145
|
-
map<T, TResult>(
|
|
146
|
-
this: LoDashExplicitWrapper<Dictionary<T> | null | undefined>,
|
|
147
|
-
iteratee: DictionaryIterator<T, TResult>
|
|
148
|
-
): LoDashExplicitWrapper<TResult[]>;
|
|
149
|
-
|
|
150
|
-
/** @see _.map */
|
|
151
|
-
map<T, K extends keyof T>(
|
|
152
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
|
|
153
|
-
iteratee: K
|
|
154
|
-
): LoDashExplicitWrapper<Array<T[K]>>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @see _.map
|
|
158
|
-
*/
|
|
159
|
-
map<T, TResult>(
|
|
160
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
161
|
-
iteratee?: NumericDictionaryIterator<T, TResult>
|
|
162
|
-
): LoDashExplicitWrapper<TResult[]>;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @see _.map
|
|
166
|
-
*/
|
|
167
|
-
map<T, TResult>(
|
|
168
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
169
|
-
iteratee?: string
|
|
170
|
-
): LoDashExplicitWrapper<TResult[]>;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @see _.map
|
|
174
|
-
*/
|
|
175
|
-
map<T>(
|
|
176
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
177
|
-
iteratee?: object
|
|
178
|
-
): LoDashExplicitWrapper<boolean[]>;
|
|
179
|
-
}
|
|
180
|
-
}
|
lodash/collection/orderBy.d.ts
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like `_.sortBy` except that it allows specifying the sort
|
|
6
|
-
* orders of the iteratees to sort by. If `orders` is unspecified, all values
|
|
7
|
-
* are sorted in ascending order. Otherwise, specify an order of "desc" for
|
|
8
|
-
* descending or "asc" for ascending sort order of corresponding values.
|
|
9
|
-
*
|
|
10
|
-
* @category Collection
|
|
11
|
-
* @param collection The collection to iterate over.
|
|
12
|
-
* @param [iteratees=[_.identity]] The iteratees to sort by.
|
|
13
|
-
* @param [orders] The sort orders of `iteratees`.
|
|
14
|
-
* @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
|
|
15
|
-
* @returns Returns the new sorted array.
|
|
16
|
-
* @example
|
|
17
|
-
*
|
|
18
|
-
* var users = [
|
|
19
|
-
* { 'user': 'fred', 'age': 48 },
|
|
20
|
-
* { 'user': 'barney', 'age': 34 },
|
|
21
|
-
* { 'user': 'fred', 'age': 42 },
|
|
22
|
-
* { 'user': 'barney', 'age': 36 }
|
|
23
|
-
* ];
|
|
24
|
-
*
|
|
25
|
-
* // sort by `user` in ascending order and by `age` in descending order
|
|
26
|
-
* _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
|
|
27
|
-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
|
|
28
|
-
*/
|
|
29
|
-
orderBy<T>(
|
|
30
|
-
collection: List<T> | null | undefined,
|
|
31
|
-
iteratees?: Many<ListIterator<T, NotVoid>>,
|
|
32
|
-
orders?: Many<boolean|string>
|
|
33
|
-
): T[];
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.orderBy
|
|
37
|
-
*/
|
|
38
|
-
orderBy<T>(
|
|
39
|
-
collection: List<T> | null | undefined,
|
|
40
|
-
iteratees?: Many<ListIteratee<T>>,
|
|
41
|
-
orders?: Many<boolean|string>
|
|
42
|
-
): T[];
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @see _.orderBy
|
|
46
|
-
*/
|
|
47
|
-
orderBy<T extends object>(
|
|
48
|
-
collection: T | null | undefined,
|
|
49
|
-
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
|
50
|
-
orders?: Many<boolean|string>
|
|
51
|
-
): Array<T[keyof T]>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @see _.orderBy
|
|
55
|
-
*/
|
|
56
|
-
orderBy<T extends object>(
|
|
57
|
-
collection: T | null | undefined,
|
|
58
|
-
iteratees?: Many<ObjectIteratee<T>>,
|
|
59
|
-
orders?: Many<boolean|string>
|
|
60
|
-
): Array<T[keyof T]>;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @see _.orderBy
|
|
64
|
-
*/
|
|
65
|
-
orderBy<T>(
|
|
66
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
67
|
-
iteratees?: Many<NumericDictionaryIterator<T, NotVoid>>,
|
|
68
|
-
orders?: Many<boolean|string>
|
|
69
|
-
): T[];
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @see _.orderBy
|
|
73
|
-
*/
|
|
74
|
-
orderBy<T>(
|
|
75
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
76
|
-
iteratees?: Many<NumericDictionaryIteratee<T>>,
|
|
77
|
-
orders?: Many<boolean|string>
|
|
78
|
-
): T[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
82
|
-
/**
|
|
83
|
-
* @see _.orderBy
|
|
84
|
-
*/
|
|
85
|
-
orderBy<T>(
|
|
86
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
87
|
-
iteratees?: Many<ListIterator<T, NotVoid>>,
|
|
88
|
-
orders?: Many<boolean|string>
|
|
89
|
-
): LoDashImplicitWrapper<T[]>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @see _.orderBy
|
|
93
|
-
*/
|
|
94
|
-
orderBy<T>(
|
|
95
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
96
|
-
iteratees?: Many<ListIteratee<T>>,
|
|
97
|
-
orders?: Many<boolean|string>
|
|
98
|
-
): LoDashImplicitWrapper<T[]>;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @see _.orderBy
|
|
102
|
-
*/
|
|
103
|
-
orderBy<T extends object>(
|
|
104
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
105
|
-
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
|
106
|
-
orders?: Many<boolean|string>
|
|
107
|
-
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @see _.orderBy
|
|
111
|
-
*/
|
|
112
|
-
orderBy<T extends object>(
|
|
113
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
114
|
-
iteratees?: Many<ObjectIteratee<T>>,
|
|
115
|
-
orders?: Many<boolean|string>
|
|
116
|
-
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @see _.orderBy
|
|
120
|
-
*/
|
|
121
|
-
orderBy<T>(
|
|
122
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
123
|
-
iteratees?: Many<NumericDictionaryIterator<T, NotVoid>>,
|
|
124
|
-
orders?: Many<boolean|string>
|
|
125
|
-
): LoDashImplicitWrapper<T[]>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @see _.orderBy
|
|
129
|
-
*/
|
|
130
|
-
orderBy<T>(
|
|
131
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
132
|
-
iteratees?: Many<NumericDictionaryIteratee<T>>,
|
|
133
|
-
orders?: Many<boolean|string>
|
|
134
|
-
): LoDashImplicitWrapper<T[]>;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
138
|
-
/**
|
|
139
|
-
* @see _.orderBy
|
|
140
|
-
*/
|
|
141
|
-
orderBy<T>(
|
|
142
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
143
|
-
iteratees?: Many<ListIterator<T, NotVoid>>,
|
|
144
|
-
orders?: Many<boolean|string>
|
|
145
|
-
): LoDashExplicitWrapper<T[]>;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @see _.orderBy
|
|
149
|
-
*/
|
|
150
|
-
orderBy<T>(
|
|
151
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
152
|
-
iteratees?: Many<ListIteratee<T>>,
|
|
153
|
-
orders?: Many<boolean|string>
|
|
154
|
-
): LoDashExplicitWrapper<T[]>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @see _.orderBy
|
|
158
|
-
*/
|
|
159
|
-
orderBy<T extends object>(
|
|
160
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
161
|
-
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
|
162
|
-
orders?: Many<boolean|string>
|
|
163
|
-
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @see _.orderBy
|
|
167
|
-
*/
|
|
168
|
-
orderBy<T extends object>(
|
|
169
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
170
|
-
iteratees?: Many<ObjectIteratee<T>>,
|
|
171
|
-
orders?: Many<boolean|string>
|
|
172
|
-
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @see _.orderBy
|
|
176
|
-
*/
|
|
177
|
-
orderBy<T>(
|
|
178
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
179
|
-
iteratees?: Many<NumericDictionaryIterator<T, NotVoid>>,
|
|
180
|
-
orders?: Many<boolean|string>
|
|
181
|
-
): LoDashExplicitWrapper<T[]>;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @see _.orderBy
|
|
185
|
-
*/
|
|
186
|
-
orderBy<T>(
|
|
187
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
188
|
-
iteratees?: Many<NumericDictionaryIteratee<T>>,
|
|
189
|
-
orders?: Many<boolean|string>
|
|
190
|
-
): LoDashExplicitWrapper<T[]>;
|
|
191
|
-
}
|
|
192
|
-
}
|
lodash/collection/partition.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for,
|
|
6
|
-
* while the second of which contains elements predicate returns falsey for.
|
|
7
|
-
* The predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
|
|
8
|
-
*
|
|
9
|
-
* If a property name is provided for predicate the created _.property style callback
|
|
10
|
-
* returns the property value of the given element.
|
|
11
|
-
*
|
|
12
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback
|
|
13
|
-
* returns true for elements that have a matching property value, else false.
|
|
14
|
-
*
|
|
15
|
-
* If an object is provided for predicate the created _.matches style callback returns
|
|
16
|
-
* true for elements that have the properties of the given object, else false.
|
|
17
|
-
*
|
|
18
|
-
* @param collection The collection to iterate over.
|
|
19
|
-
* @param callback The function called per iteration.
|
|
20
|
-
* @param thisArg The this binding of predicate.
|
|
21
|
-
* @return Returns the array of grouped elements.
|
|
22
|
-
**/
|
|
23
|
-
partition<T>(
|
|
24
|
-
collection: List<T> | null | undefined,
|
|
25
|
-
callback: ValueIteratee<T>
|
|
26
|
-
): [T[], T[]];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @see _.partition
|
|
30
|
-
*/
|
|
31
|
-
partition<T extends object>(
|
|
32
|
-
collection: T | null | undefined,
|
|
33
|
-
callback: ValueIteratee<T[keyof T]>
|
|
34
|
-
): [Array<T[keyof T]>, Array<T[keyof T]>];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
38
|
-
/**
|
|
39
|
-
* @see _.partition
|
|
40
|
-
*/
|
|
41
|
-
partition<T>(
|
|
42
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
43
|
-
callback: ValueIteratee<T>
|
|
44
|
-
): LoDashImplicitWrapper<[T[], T[]]>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @see _.partition
|
|
48
|
-
*/
|
|
49
|
-
partition<T>(
|
|
50
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
51
|
-
callback: ValueIteratee<T[keyof T]>
|
|
52
|
-
): LoDashImplicitWrapper<[Array<T[keyof T]>, Array<T[keyof T]>]>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
56
|
-
/**
|
|
57
|
-
* @see _.partition
|
|
58
|
-
*/
|
|
59
|
-
partition<T>(
|
|
60
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
61
|
-
callback: ValueIteratee<T>
|
|
62
|
-
): LoDashExplicitWrapper<[T[], T[]]>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @see _.partition
|
|
66
|
-
*/
|
|
67
|
-
partition<T>(
|
|
68
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
69
|
-
callback: ValueIteratee<T[keyof T]>
|
|
70
|
-
): LoDashExplicitWrapper<[Array<T[keyof T]>, Array<T[keyof T]>]>;
|
|
71
|
-
}
|
|
72
|
-
}
|