@types/lodash 4.14.105 → 4.14.109
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 +40 -177
- lodash/common/collection.d.ts +90 -238
- lodash/common/common.d.ts +11 -3
- lodash/common/date.d.ts +1 -1
- lodash/common/function.d.ts +272 -166
- lodash/common/lang.d.ts +3 -4
- lodash/common/math.d.ts +13 -17
- lodash/common/number.d.ts +1 -5
- lodash/common/object.d.ts +93 -54
- lodash/common/seq.d.ts +2 -4
- lodash/common/string.d.ts +1 -1
- lodash/common/util.d.ts +18 -10
- lodash/fp/F.d.ts +2 -0
- lodash/fp/T.d.ts +2 -0
- lodash/fp/__.d.ts +3 -0
- lodash/fp/add.d.ts +2 -0
- lodash/fp/after.d.ts +2 -0
- lodash/fp/all.d.ts +2 -0
- lodash/fp/allPass.d.ts +2 -0
- lodash/fp/always.d.ts +2 -0
- lodash/fp/any.d.ts +2 -0
- lodash/fp/anyPass.d.ts +2 -0
- lodash/fp/apply.d.ts +2 -0
- lodash/fp/ary.d.ts +2 -0
- lodash/fp/assign.d.ts +2 -0
- lodash/fp/assignAll.d.ts +2 -0
- lodash/fp/assignAllWith.d.ts +2 -0
- lodash/fp/assignIn.d.ts +2 -0
- lodash/fp/assignInAll.d.ts +2 -0
- lodash/fp/assignInAllWith.d.ts +2 -0
- lodash/fp/assignInWith.d.ts +2 -0
- lodash/fp/assignWith.d.ts +2 -0
- lodash/fp/assoc.d.ts +2 -0
- lodash/fp/assocPath.d.ts +2 -0
- lodash/fp/at.d.ts +2 -0
- lodash/fp/attempt.d.ts +2 -0
- lodash/fp/before.d.ts +2 -0
- lodash/fp/bind.d.ts +2 -0
- lodash/fp/bindAll.d.ts +2 -0
- lodash/fp/bindKey.d.ts +2 -0
- lodash/fp/camelCase.d.ts +2 -0
- lodash/fp/capitalize.d.ts +2 -0
- lodash/fp/castArray.d.ts +2 -0
- lodash/fp/ceil.d.ts +2 -0
- lodash/fp/chunk.d.ts +2 -0
- lodash/fp/clamp.d.ts +2 -0
- lodash/fp/clone.d.ts +2 -0
- lodash/fp/cloneDeep.d.ts +2 -0
- lodash/fp/cloneDeepWith.d.ts +2 -0
- lodash/fp/cloneWith.d.ts +2 -0
- lodash/fp/compact.d.ts +2 -0
- lodash/fp/complement.d.ts +2 -0
- lodash/fp/compose.d.ts +2 -0
- lodash/fp/concat.d.ts +2 -0
- lodash/fp/cond.d.ts +2 -0
- lodash/fp/conforms.d.ts +2 -0
- lodash/fp/conformsTo.d.ts +2 -0
- lodash/fp/constant.d.ts +2 -0
- lodash/fp/contains.d.ts +2 -0
- lodash/fp/convert.d.ts +15 -0
- lodash/fp/countBy.d.ts +2 -0
- lodash/fp/create.d.ts +2 -0
- lodash/fp/curry.d.ts +2 -0
- lodash/fp/curryN.d.ts +2 -0
- lodash/fp/curryRight.d.ts +2 -0
- lodash/fp/curryRightN.d.ts +2 -0
- lodash/fp/debounce.d.ts +2 -0
- lodash/fp/deburr.d.ts +2 -0
- lodash/fp/defaultTo.d.ts +2 -0
- lodash/fp/defaults.d.ts +2 -0
- lodash/fp/defaultsAll.d.ts +2 -0
- lodash/fp/defaultsDeep.d.ts +2 -0
- lodash/fp/defaultsDeepAll.d.ts +2 -0
- lodash/fp/defer.d.ts +2 -0
- lodash/fp/delay.d.ts +2 -0
- lodash/fp/difference.d.ts +2 -0
- lodash/fp/differenceBy.d.ts +2 -0
- lodash/fp/differenceWith.d.ts +2 -0
- lodash/fp/dissoc.d.ts +2 -0
- lodash/fp/dissocPath.d.ts +2 -0
- lodash/fp/divide.d.ts +2 -0
- lodash/fp/drop.d.ts +2 -0
- lodash/fp/dropLast.d.ts +2 -0
- lodash/fp/dropLastWhile.d.ts +2 -0
- lodash/fp/dropRight.d.ts +2 -0
- lodash/fp/dropRightWhile.d.ts +2 -0
- lodash/fp/dropWhile.d.ts +2 -0
- lodash/fp/each.d.ts +2 -0
- lodash/fp/eachRight.d.ts +2 -0
- lodash/fp/endsWith.d.ts +2 -0
- lodash/fp/entries.d.ts +2 -0
- lodash/fp/entriesIn.d.ts +2 -0
- lodash/fp/eq.d.ts +2 -0
- lodash/fp/equals.d.ts +2 -0
- lodash/fp/escape.d.ts +2 -0
- lodash/fp/escapeRegExp.d.ts +2 -0
- lodash/fp/every.d.ts +2 -0
- lodash/fp/extend.d.ts +2 -0
- lodash/fp/extendAll.d.ts +2 -0
- lodash/fp/extendAllWith.d.ts +2 -0
- lodash/fp/extendWith.d.ts +2 -0
- lodash/fp/fill.d.ts +2 -0
- lodash/fp/filter.d.ts +2 -0
- lodash/fp/find.d.ts +2 -0
- lodash/fp/findFrom.d.ts +2 -0
- lodash/fp/findIndex.d.ts +2 -0
- lodash/fp/findIndexFrom.d.ts +2 -0
- lodash/fp/findKey.d.ts +2 -0
- lodash/fp/findLast.d.ts +2 -0
- lodash/fp/findLastFrom.d.ts +2 -0
- lodash/fp/findLastIndex.d.ts +2 -0
- lodash/fp/findLastIndexFrom.d.ts +2 -0
- lodash/fp/findLastKey.d.ts +2 -0
- lodash/fp/first.d.ts +2 -0
- lodash/fp/flatMap.d.ts +2 -0
- lodash/fp/flatMapDeep.d.ts +2 -0
- lodash/fp/flatMapDepth.d.ts +2 -0
- lodash/fp/flatten.d.ts +2 -0
- lodash/fp/flattenDeep.d.ts +2 -0
- lodash/fp/flattenDepth.d.ts +2 -0
- lodash/fp/flip.d.ts +2 -0
- lodash/fp/floor.d.ts +2 -0
- lodash/fp/flow.d.ts +2 -0
- lodash/fp/flowRight.d.ts +2 -0
- lodash/fp/forEach.d.ts +2 -0
- lodash/fp/forEachRight.d.ts +2 -0
- lodash/fp/forIn.d.ts +2 -0
- lodash/fp/forInRight.d.ts +2 -0
- lodash/fp/forOwn.d.ts +2 -0
- lodash/fp/forOwnRight.d.ts +2 -0
- lodash/fp/fromPairs.d.ts +2 -0
- lodash/fp/functions.d.ts +2 -0
- lodash/fp/functionsIn.d.ts +2 -0
- lodash/fp/get.d.ts +2 -0
- lodash/fp/getOr.d.ts +2 -0
- lodash/fp/groupBy.d.ts +2 -0
- lodash/fp/gt.d.ts +2 -0
- lodash/fp/gte.d.ts +2 -0
- lodash/fp/has.d.ts +2 -0
- lodash/fp/hasIn.d.ts +2 -0
- lodash/fp/head.d.ts +2 -0
- lodash/fp/identical.d.ts +2 -0
- lodash/fp/identity.d.ts +2 -0
- lodash/fp/inRange.d.ts +2 -0
- lodash/fp/includes.d.ts +2 -0
- lodash/fp/includesFrom.d.ts +2 -0
- lodash/fp/indexBy.d.ts +2 -0
- lodash/fp/indexOf.d.ts +2 -0
- lodash/fp/indexOfFrom.d.ts +2 -0
- lodash/fp/init.d.ts +2 -0
- lodash/fp/initial.d.ts +2 -0
- lodash/fp/intersection.d.ts +2 -0
- lodash/fp/intersectionBy.d.ts +2 -0
- lodash/fp/intersectionWith.d.ts +2 -0
- lodash/fp/invert.d.ts +2 -0
- lodash/fp/invertBy.d.ts +2 -0
- lodash/fp/invertObj.d.ts +2 -0
- lodash/fp/invoke.d.ts +2 -0
- lodash/fp/invokeArgs.d.ts +2 -0
- lodash/fp/invokeArgsMap.d.ts +2 -0
- lodash/fp/invokeMap.d.ts +2 -0
- lodash/fp/isArguments.d.ts +2 -0
- lodash/fp/isArray.d.ts +2 -0
- lodash/fp/isArrayBuffer.d.ts +2 -0
- lodash/fp/isArrayLike.d.ts +2 -0
- lodash/fp/isArrayLikeObject.d.ts +2 -0
- lodash/fp/isBoolean.d.ts +2 -0
- lodash/fp/isBuffer.d.ts +2 -0
- lodash/fp/isDate.d.ts +2 -0
- lodash/fp/isElement.d.ts +2 -0
- lodash/fp/isEmpty.d.ts +2 -0
- lodash/fp/isEqual.d.ts +2 -0
- lodash/fp/isEqualWith.d.ts +2 -0
- lodash/fp/isError.d.ts +2 -0
- lodash/fp/isFinite.d.ts +2 -0
- lodash/fp/isFunction.d.ts +2 -0
- lodash/fp/isInteger.d.ts +2 -0
- lodash/fp/isLength.d.ts +2 -0
- lodash/fp/isMap.d.ts +2 -0
- lodash/fp/isMatch.d.ts +2 -0
- lodash/fp/isMatchWith.d.ts +2 -0
- lodash/fp/isNaN.d.ts +2 -0
- lodash/fp/isNative.d.ts +2 -0
- lodash/fp/isNil.d.ts +2 -0
- lodash/fp/isNull.d.ts +2 -0
- lodash/fp/isNumber.d.ts +2 -0
- lodash/fp/isObject.d.ts +2 -0
- lodash/fp/isObjectLike.d.ts +2 -0
- lodash/fp/isPlainObject.d.ts +2 -0
- lodash/fp/isRegExp.d.ts +2 -0
- lodash/fp/isSafeInteger.d.ts +2 -0
- lodash/fp/isSet.d.ts +2 -0
- lodash/fp/isString.d.ts +2 -0
- lodash/fp/isSymbol.d.ts +2 -0
- lodash/fp/isTypedArray.d.ts +2 -0
- lodash/fp/isUndefined.d.ts +2 -0
- lodash/fp/isWeakMap.d.ts +2 -0
- lodash/fp/isWeakSet.d.ts +2 -0
- lodash/fp/iteratee.d.ts +2 -0
- lodash/fp/join.d.ts +2 -0
- lodash/fp/juxt.d.ts +2 -0
- lodash/fp/kebabCase.d.ts +2 -0
- lodash/fp/keyBy.d.ts +2 -0
- lodash/fp/keys.d.ts +2 -0
- lodash/fp/keysIn.d.ts +2 -0
- lodash/fp/last.d.ts +2 -0
- lodash/fp/lastIndexOf.d.ts +2 -0
- lodash/fp/lastIndexOfFrom.d.ts +2 -0
- lodash/fp/lowerCase.d.ts +2 -0
- lodash/fp/lowerFirst.d.ts +2 -0
- lodash/fp/lt.d.ts +2 -0
- lodash/fp/lte.d.ts +2 -0
- lodash/fp/map.d.ts +2 -0
- lodash/fp/mapKeys.d.ts +2 -0
- lodash/fp/mapValues.d.ts +2 -0
- lodash/fp/matches.d.ts +2 -0
- lodash/fp/matchesProperty.d.ts +2 -0
- lodash/fp/max.d.ts +2 -0
- lodash/fp/maxBy.d.ts +2 -0
- lodash/fp/mean.d.ts +2 -0
- lodash/fp/meanBy.d.ts +2 -0
- lodash/fp/memoize.d.ts +2 -0
- lodash/fp/merge.d.ts +2 -0
- lodash/fp/mergeAll.d.ts +2 -0
- lodash/fp/mergeAllWith.d.ts +2 -0
- lodash/fp/mergeWith.d.ts +2 -0
- lodash/fp/method.d.ts +2 -0
- lodash/fp/methodOf.d.ts +2 -0
- lodash/fp/min.d.ts +2 -0
- lodash/fp/minBy.d.ts +2 -0
- lodash/fp/multiply.d.ts +2 -0
- lodash/fp/nAry.d.ts +2 -0
- lodash/fp/negate.d.ts +2 -0
- lodash/fp/noConflict.d.ts +2 -0
- lodash/fp/noop.d.ts +2 -0
- lodash/fp/now.d.ts +2 -0
- lodash/fp/nth.d.ts +2 -0
- lodash/fp/nthArg.d.ts +2 -0
- lodash/fp/omit.d.ts +2 -0
- lodash/fp/omitAll.d.ts +2 -0
- lodash/fp/omitBy.d.ts +2 -0
- lodash/fp/once.d.ts +2 -0
- lodash/fp/orderBy.d.ts +2 -0
- lodash/fp/over.d.ts +2 -0
- lodash/fp/overArgs.d.ts +2 -0
- lodash/fp/overEvery.d.ts +2 -0
- lodash/fp/overSome.d.ts +2 -0
- lodash/fp/pad.d.ts +2 -0
- lodash/fp/padChars.d.ts +2 -0
- lodash/fp/padCharsEnd.d.ts +2 -0
- lodash/fp/padCharsStart.d.ts +2 -0
- lodash/fp/padEnd.d.ts +2 -0
- lodash/fp/padStart.d.ts +2 -0
- lodash/fp/parseInt.d.ts +2 -0
- lodash/fp/partial.d.ts +2 -0
- lodash/fp/partialRight.d.ts +2 -0
- lodash/fp/partition.d.ts +2 -0
- lodash/fp/path.d.ts +2 -0
- lodash/fp/pathEq.d.ts +2 -0
- lodash/fp/pathOr.d.ts +2 -0
- lodash/fp/paths.d.ts +2 -0
- lodash/fp/pick.d.ts +2 -0
- lodash/fp/pickAll.d.ts +2 -0
- lodash/fp/pickBy.d.ts +2 -0
- lodash/fp/pipe.d.ts +2 -0
- lodash/fp/placeholder.d.ts +3 -0
- lodash/fp/pluck.d.ts +2 -0
- lodash/fp/prop.d.ts +2 -0
- lodash/fp/propEq.d.ts +2 -0
- lodash/fp/propOr.d.ts +2 -0
- lodash/fp/property.d.ts +2 -0
- lodash/fp/propertyOf.d.ts +2 -0
- lodash/fp/props.d.ts +2 -0
- lodash/fp/pull.d.ts +2 -0
- lodash/fp/pullAll.d.ts +2 -0
- lodash/fp/pullAllBy.d.ts +2 -0
- lodash/fp/pullAllWith.d.ts +2 -0
- lodash/fp/pullAt.d.ts +2 -0
- lodash/fp/random.d.ts +2 -0
- lodash/fp/range.d.ts +2 -0
- lodash/fp/rangeRight.d.ts +2 -0
- lodash/fp/rangeStep.d.ts +2 -0
- lodash/fp/rangeStepRight.d.ts +2 -0
- lodash/fp/rearg.d.ts +2 -0
- lodash/fp/reduce.d.ts +2 -0
- lodash/fp/reduceRight.d.ts +2 -0
- lodash/fp/reject.d.ts +2 -0
- lodash/fp/remove.d.ts +2 -0
- lodash/fp/repeat.d.ts +2 -0
- lodash/fp/replace.d.ts +2 -0
- lodash/fp/rest.d.ts +2 -0
- lodash/fp/restFrom.d.ts +2 -0
- lodash/fp/result.d.ts +2 -0
- lodash/fp/reverse.d.ts +2 -0
- lodash/fp/round.d.ts +2 -0
- lodash/fp/runInContext.d.ts +2 -0
- lodash/fp/sample.d.ts +2 -0
- lodash/fp/sampleSize.d.ts +2 -0
- lodash/fp/set.d.ts +2 -0
- lodash/fp/setWith.d.ts +2 -0
- lodash/fp/shuffle.d.ts +2 -0
- lodash/fp/size.d.ts +2 -0
- lodash/fp/slice.d.ts +2 -0
- lodash/fp/snakeCase.d.ts +2 -0
- lodash/fp/some.d.ts +2 -0
- lodash/fp/sortBy.d.ts +2 -0
- lodash/fp/sortedIndex.d.ts +2 -0
- lodash/fp/sortedIndexBy.d.ts +2 -0
- lodash/fp/sortedIndexOf.d.ts +2 -0
- lodash/fp/sortedLastIndex.d.ts +2 -0
- lodash/fp/sortedLastIndexBy.d.ts +2 -0
- lodash/fp/sortedLastIndexOf.d.ts +2 -0
- lodash/fp/sortedUniq.d.ts +2 -0
- lodash/fp/sortedUniqBy.d.ts +2 -0
- lodash/fp/split.d.ts +2 -0
- lodash/fp/spread.d.ts +2 -0
- lodash/fp/spreadFrom.d.ts +2 -0
- lodash/fp/startCase.d.ts +2 -0
- lodash/fp/startsWith.d.ts +2 -0
- lodash/fp/stubArray.d.ts +2 -0
- lodash/fp/stubFalse.d.ts +2 -0
- lodash/fp/stubObject.d.ts +2 -0
- lodash/fp/stubString.d.ts +2 -0
- lodash/fp/stubTrue.d.ts +2 -0
- lodash/fp/subtract.d.ts +2 -0
- lodash/fp/sum.d.ts +2 -0
- lodash/fp/sumBy.d.ts +2 -0
- lodash/fp/symmetricDifference.d.ts +2 -0
- lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- lodash/fp/tail.d.ts +2 -0
- lodash/fp/take.d.ts +2 -0
- lodash/fp/takeLast.d.ts +2 -0
- lodash/fp/takeLastWhile.d.ts +2 -0
- lodash/fp/takeRight.d.ts +2 -0
- lodash/fp/takeRightWhile.d.ts +2 -0
- lodash/fp/takeWhile.d.ts +2 -0
- lodash/fp/tap.d.ts +2 -0
- lodash/fp/template.d.ts +2 -0
- lodash/fp/throttle.d.ts +2 -0
- lodash/fp/thru.d.ts +2 -0
- lodash/fp/times.d.ts +2 -0
- lodash/fp/toArray.d.ts +2 -0
- lodash/fp/toFinite.d.ts +2 -0
- lodash/fp/toInteger.d.ts +2 -0
- lodash/fp/toLength.d.ts +2 -0
- lodash/fp/toLower.d.ts +2 -0
- lodash/fp/toNumber.d.ts +2 -0
- lodash/fp/toPairs.d.ts +2 -0
- lodash/fp/toPairsIn.d.ts +2 -0
- lodash/fp/toPath.d.ts +2 -0
- lodash/fp/toPlainObject.d.ts +2 -0
- lodash/fp/toSafeInteger.d.ts +2 -0
- lodash/fp/toString.d.ts +2 -0
- lodash/fp/toUpper.d.ts +2 -0
- lodash/fp/transform.d.ts +2 -0
- lodash/fp/trim.d.ts +2 -0
- lodash/fp/trimChars.d.ts +2 -0
- lodash/fp/trimCharsEnd.d.ts +2 -0
- lodash/fp/trimCharsStart.d.ts +2 -0
- lodash/fp/trimEnd.d.ts +2 -0
- lodash/fp/trimStart.d.ts +2 -0
- lodash/fp/truncate.d.ts +2 -0
- lodash/fp/unapply.d.ts +2 -0
- lodash/fp/unary.d.ts +2 -0
- lodash/fp/unescape.d.ts +2 -0
- lodash/fp/union.d.ts +2 -0
- lodash/fp/unionBy.d.ts +2 -0
- lodash/fp/unionWith.d.ts +2 -0
- lodash/fp/uniq.d.ts +2 -0
- lodash/fp/uniqBy.d.ts +2 -0
- lodash/fp/uniqWith.d.ts +2 -0
- lodash/fp/uniqueId.d.ts +2 -0
- lodash/fp/unnest.d.ts +2 -0
- lodash/fp/unset.d.ts +2 -0
- lodash/fp/unzip.d.ts +2 -0
- lodash/fp/unzipWith.d.ts +2 -0
- lodash/fp/update.d.ts +2 -0
- lodash/fp/updateWith.d.ts +2 -0
- lodash/fp/upperCase.d.ts +2 -0
- lodash/fp/upperFirst.d.ts +2 -0
- lodash/fp/useWith.d.ts +2 -0
- lodash/fp/values.d.ts +2 -0
- lodash/fp/valuesIn.d.ts +2 -0
- lodash/fp/where.d.ts +2 -0
- lodash/fp/whereEq.d.ts +2 -0
- lodash/fp/without.d.ts +2 -0
- lodash/fp/words.d.ts +2 -0
- lodash/fp/wrap.d.ts +2 -0
- lodash/fp/xor.d.ts +2 -0
- lodash/fp/xorBy.d.ts +2 -0
- lodash/fp/xorWith.d.ts +2 -0
- lodash/fp/zip.d.ts +2 -0
- lodash/fp/zipAll.d.ts +2 -0
- lodash/fp/zipObj.d.ts +2 -0
- lodash/fp/zipObject.d.ts +2 -0
- lodash/fp/zipObjectDeep.d.ts +2 -0
- lodash/fp/zipWith.d.ts +2 -0
- lodash/fp.d.ts +4765 -0
- lodash/package.json +3 -3
lodash/common/collection.d.ts
CHANGED
|
@@ -6,34 +6,15 @@ declare module "../index" {
|
|
|
6
6
|
/**
|
|
7
7
|
* Creates an object composed of keys generated from the results of running each element of collection through
|
|
8
8
|
* iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The
|
|
9
|
-
* iteratee is
|
|
10
|
-
* (value, index|key, collection).
|
|
11
|
-
*
|
|
12
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property
|
|
13
|
-
* value of the given element.
|
|
14
|
-
*
|
|
15
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
16
|
-
* elements that have a matching property value, else false.
|
|
17
|
-
*
|
|
18
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
19
|
-
* have the properties of the given object, else false.
|
|
9
|
+
* iteratee is invoked with one argument: (value).
|
|
20
10
|
*
|
|
21
11
|
* @param collection The collection to iterate over.
|
|
22
12
|
* @param iteratee The function invoked per iteration.
|
|
23
|
-
* @param thisArg The this binding of iteratee.
|
|
24
13
|
* @return Returns the composed aggregate object.
|
|
25
14
|
*/
|
|
26
|
-
countBy<T>(
|
|
27
|
-
collection: string | null | undefined,
|
|
28
|
-
iteratee?: StringIterator<T>
|
|
29
|
-
): Dictionary<number>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @see _.countBy
|
|
33
|
-
*/
|
|
34
15
|
countBy<T>(
|
|
35
16
|
collection: List<T> | null | undefined,
|
|
36
|
-
iteratee?:
|
|
17
|
+
iteratee?: ValueIteratee<T>
|
|
37
18
|
): Dictionary<number>;
|
|
38
19
|
|
|
39
20
|
/**
|
|
@@ -41,25 +22,17 @@ declare module "../index" {
|
|
|
41
22
|
*/
|
|
42
23
|
countBy<T extends object>(
|
|
43
24
|
collection: T | null | undefined,
|
|
44
|
-
iteratee?:
|
|
25
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
45
26
|
): Dictionary<number>;
|
|
46
27
|
}
|
|
47
28
|
|
|
48
29
|
interface LoDashImplicitWrapper<TValue> {
|
|
49
|
-
/**
|
|
50
|
-
* @see _.countBy
|
|
51
|
-
*/
|
|
52
|
-
countBy<T>(
|
|
53
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
54
|
-
iteratee?: StringIterator<T>
|
|
55
|
-
): LoDashImplicitWrapper<Dictionary<number>>;
|
|
56
|
-
|
|
57
30
|
/**
|
|
58
31
|
* @see _.countBy
|
|
59
32
|
*/
|
|
60
33
|
countBy<T>(
|
|
61
34
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
62
|
-
iteratee?:
|
|
35
|
+
iteratee?: ValueIteratee<T>
|
|
63
36
|
): LoDashImplicitWrapper<Dictionary<number>>;
|
|
64
37
|
|
|
65
38
|
/**
|
|
@@ -67,25 +40,17 @@ declare module "../index" {
|
|
|
67
40
|
*/
|
|
68
41
|
countBy<T extends object>(
|
|
69
42
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
70
|
-
iteratee?:
|
|
43
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
71
44
|
): LoDashImplicitWrapper<Dictionary<number>>;
|
|
72
45
|
}
|
|
73
46
|
|
|
74
47
|
interface LoDashExplicitWrapper<TValue> {
|
|
75
|
-
/**
|
|
76
|
-
* @see _.countBy
|
|
77
|
-
*/
|
|
78
|
-
countBy<T>(
|
|
79
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
80
|
-
iteratee?: StringIterator<T>
|
|
81
|
-
): LoDashExplicitWrapper<Dictionary<number>>;
|
|
82
|
-
|
|
83
48
|
/**
|
|
84
49
|
* @see _.countBy
|
|
85
50
|
*/
|
|
86
51
|
countBy<T>(
|
|
87
52
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
88
|
-
iteratee?:
|
|
53
|
+
iteratee?: ValueIteratee<T>
|
|
89
54
|
): LoDashExplicitWrapper<Dictionary<number>>;
|
|
90
55
|
|
|
91
56
|
/**
|
|
@@ -93,7 +58,7 @@ declare module "../index" {
|
|
|
93
58
|
*/
|
|
94
59
|
countBy<T extends object>(
|
|
95
60
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
96
|
-
iteratee?:
|
|
61
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
97
62
|
): LoDashExplicitWrapper<Dictionary<number>>;
|
|
98
63
|
}
|
|
99
64
|
|
|
@@ -243,20 +208,10 @@ declare module "../index" {
|
|
|
243
208
|
interface LoDashStatic {
|
|
244
209
|
/**
|
|
245
210
|
* Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The
|
|
246
|
-
* predicate is
|
|
247
|
-
*
|
|
248
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
249
|
-
* value of the given element.
|
|
250
|
-
*
|
|
251
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
252
|
-
* elements that have a matching property value, else false.
|
|
253
|
-
*
|
|
254
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
255
|
-
* have the properties of the given object, else false.
|
|
211
|
+
* predicate is invoked with three arguments: (value, index|key, collection).
|
|
256
212
|
*
|
|
257
213
|
* @param collection The collection to iterate over.
|
|
258
214
|
* @param predicate The function invoked per iteration.
|
|
259
|
-
* @param thisArg The this binding of predicate.
|
|
260
215
|
* @return Returns the new filtered array.
|
|
261
216
|
*/
|
|
262
217
|
filter(
|
|
@@ -386,16 +341,7 @@ declare module "../index" {
|
|
|
386
341
|
interface LoDashStatic {
|
|
387
342
|
/**
|
|
388
343
|
* Iterates over elements of collection, returning the first element predicate returns truthy for.
|
|
389
|
-
* The predicate is
|
|
390
|
-
*
|
|
391
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
392
|
-
* value of the given element.
|
|
393
|
-
*
|
|
394
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
395
|
-
* elements that have a matching property value, else false.
|
|
396
|
-
*
|
|
397
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
398
|
-
* have the properties of the given object, else false.
|
|
344
|
+
* The predicate is invoked with three arguments: (value, index|key, collection).
|
|
399
345
|
*
|
|
400
346
|
* @param collection The collection to search.
|
|
401
347
|
* @param predicate The function invoked per iteration.
|
|
@@ -516,13 +462,13 @@ declare module "../index" {
|
|
|
516
462
|
|
|
517
463
|
interface LoDashStatic {
|
|
518
464
|
/**
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
465
|
+
* This method is like _.find except that it iterates over elements of a collection from
|
|
466
|
+
* right to left.
|
|
467
|
+
* @param collection Searches for a value in this list.
|
|
468
|
+
* @param predicate The function called per iteration.
|
|
469
|
+
* @param fromIndex The index to search from.
|
|
470
|
+
* @return The found element, else undefined.
|
|
471
|
+
*/
|
|
526
472
|
findLast<T, S extends T>(
|
|
527
473
|
collection: List<T> | null | undefined,
|
|
528
474
|
predicate: ListIteratorTypeGuard<T, S>,
|
|
@@ -1070,8 +1016,7 @@ declare module "../index" {
|
|
|
1070
1016
|
|
|
1071
1017
|
interface LoDashStatic {
|
|
1072
1018
|
/**
|
|
1073
|
-
* Iterates over elements of collection invoking iteratee for each element. The iteratee is
|
|
1074
|
-
* and invoked with three arguments:
|
|
1019
|
+
* Iterates over elements of collection invoking iteratee for each element. The iteratee is invoked with three arguments:
|
|
1075
1020
|
* (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.
|
|
1076
1021
|
*
|
|
1077
1022
|
* Note: As with other "Collections" methods, objects with a "length" property are iterated like arrays. To
|
|
@@ -1081,7 +1026,6 @@ declare module "../index" {
|
|
|
1081
1026
|
*
|
|
1082
1027
|
* @param collection The collection to iterate over.
|
|
1083
1028
|
* @param iteratee The function invoked per iteration.
|
|
1084
|
-
* @param thisArg The this binding of iteratee.
|
|
1085
1029
|
*/
|
|
1086
1030
|
forEach<T>(
|
|
1087
1031
|
collection: T[],
|
|
@@ -1189,7 +1133,6 @@ declare module "../index" {
|
|
|
1189
1133
|
*
|
|
1190
1134
|
* @param collection The collection to iterate over.
|
|
1191
1135
|
* @param iteratee The function called per iteration.
|
|
1192
|
-
* @param thisArg The this binding of callback.
|
|
1193
1136
|
*/
|
|
1194
1137
|
forEachRight<T>(
|
|
1195
1138
|
collection: T[],
|
|
@@ -1293,34 +1236,15 @@ declare module "../index" {
|
|
|
1293
1236
|
/**
|
|
1294
1237
|
* Creates an object composed of keys generated from the results of running each element of collection through
|
|
1295
1238
|
* iteratee. The corresponding value of each key is an array of the elements responsible for generating the
|
|
1296
|
-
* key. The iteratee is
|
|
1297
|
-
* (value, index|key, collection).
|
|
1298
|
-
*
|
|
1299
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property
|
|
1300
|
-
* value of the given element.
|
|
1301
|
-
*
|
|
1302
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1303
|
-
* elements that have a matching property value, else false.
|
|
1304
|
-
*
|
|
1305
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
1306
|
-
* have the properties of the given object, else false.
|
|
1239
|
+
* key. The iteratee is invoked with one argument: (value).
|
|
1307
1240
|
*
|
|
1308
1241
|
* @param collection The collection to iterate over.
|
|
1309
1242
|
* @param iteratee The function invoked per iteration.
|
|
1310
|
-
* @param thisArg The this binding of iteratee.
|
|
1311
1243
|
* @return Returns the composed aggregate object.
|
|
1312
1244
|
*/
|
|
1313
|
-
groupBy(
|
|
1314
|
-
collection: string | null | undefined,
|
|
1315
|
-
iteratee?: StringIterator<NotVoid>
|
|
1316
|
-
): Dictionary<string[]>;
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* @see _.groupBy
|
|
1320
|
-
*/
|
|
1321
1245
|
groupBy<T>(
|
|
1322
1246
|
collection: List<T> | null | undefined,
|
|
1323
|
-
iteratee?:
|
|
1247
|
+
iteratee?: ValueIteratee<T>
|
|
1324
1248
|
): Dictionary<T[]>;
|
|
1325
1249
|
|
|
1326
1250
|
/**
|
|
@@ -1328,25 +1252,17 @@ declare module "../index" {
|
|
|
1328
1252
|
*/
|
|
1329
1253
|
groupBy<T extends object>(
|
|
1330
1254
|
collection: T | null | undefined,
|
|
1331
|
-
iteratee?:
|
|
1255
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
1332
1256
|
): Dictionary<Array<T[keyof T]>>;
|
|
1333
1257
|
}
|
|
1334
1258
|
|
|
1335
1259
|
interface LoDashImplicitWrapper<TValue> {
|
|
1336
|
-
/**
|
|
1337
|
-
* @see _.groupBy
|
|
1338
|
-
*/
|
|
1339
|
-
groupBy(
|
|
1340
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
1341
|
-
iteratee?: StringIterator<NotVoid>
|
|
1342
|
-
): LoDashImplicitWrapper<Dictionary<string[]>>;
|
|
1343
|
-
|
|
1344
1260
|
/**
|
|
1345
1261
|
* @see _.groupBy
|
|
1346
1262
|
*/
|
|
1347
1263
|
groupBy<T>(
|
|
1348
1264
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
1349
|
-
iteratee?:
|
|
1265
|
+
iteratee?: ValueIteratee<T>
|
|
1350
1266
|
): LoDashImplicitWrapper<Dictionary<T[]>>;
|
|
1351
1267
|
|
|
1352
1268
|
/**
|
|
@@ -1354,25 +1270,17 @@ declare module "../index" {
|
|
|
1354
1270
|
*/
|
|
1355
1271
|
groupBy<T extends object>(
|
|
1356
1272
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
1357
|
-
iteratee?:
|
|
1273
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
1358
1274
|
): LoDashImplicitWrapper<Dictionary<Array<T[keyof T]>>>;
|
|
1359
1275
|
}
|
|
1360
1276
|
|
|
1361
1277
|
interface LoDashExplicitWrapper<TValue> {
|
|
1362
|
-
/**
|
|
1363
|
-
* @see _.groupBy
|
|
1364
|
-
*/
|
|
1365
|
-
groupBy(
|
|
1366
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
1367
|
-
iteratee?: StringIterator<NotVoid>
|
|
1368
|
-
): LoDashExplicitWrapper<Dictionary<string[]>>;
|
|
1369
|
-
|
|
1370
1278
|
/**
|
|
1371
1279
|
* @see _.groupBy
|
|
1372
1280
|
*/
|
|
1373
1281
|
groupBy<T>(
|
|
1374
1282
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
1375
|
-
iteratee?:
|
|
1283
|
+
iteratee?: ValueIteratee<T>
|
|
1376
1284
|
): LoDashExplicitWrapper<Dictionary<T[]>>;
|
|
1377
1285
|
|
|
1378
1286
|
/**
|
|
@@ -1380,7 +1288,7 @@ declare module "../index" {
|
|
|
1380
1288
|
*/
|
|
1381
1289
|
groupBy<T extends object>(
|
|
1382
1290
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
1383
|
-
iteratee?:
|
|
1291
|
+
iteratee?: ValueIteratee<T[keyof T]>
|
|
1384
1292
|
): LoDashExplicitWrapper<Dictionary<Array<T[keyof T]>>>;
|
|
1385
1293
|
}
|
|
1386
1294
|
|
|
@@ -1489,34 +1397,15 @@ declare module "../index" {
|
|
|
1489
1397
|
/**
|
|
1490
1398
|
* Creates an object composed of keys generated from the results of running each element of collection through
|
|
1491
1399
|
* iteratee. The corresponding value of each key is the last element responsible for generating the key. The
|
|
1492
|
-
* iteratee function is
|
|
1493
|
-
* (value, index|key, collection).
|
|
1494
|
-
*
|
|
1495
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property
|
|
1496
|
-
* value of the given element.
|
|
1497
|
-
*
|
|
1498
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1499
|
-
* elements that have a matching property value, else false.
|
|
1500
|
-
*
|
|
1501
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
1502
|
-
* have the properties of the given object, else false.
|
|
1400
|
+
* iteratee function is invoked with one argument: (value).
|
|
1503
1401
|
*
|
|
1504
1402
|
* @param collection The collection to iterate over.
|
|
1505
1403
|
* @param iteratee The function invoked per iteration.
|
|
1506
|
-
* @param thisArg The this binding of iteratee.
|
|
1507
1404
|
* @return Returns the composed aggregate object.
|
|
1508
1405
|
*/
|
|
1509
|
-
keyBy(
|
|
1510
|
-
collection: string | null | undefined,
|
|
1511
|
-
iteratee?: StringIterator<PropertyName>
|
|
1512
|
-
): Dictionary<string>;
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* @see _.keyBy
|
|
1516
|
-
*/
|
|
1517
1406
|
keyBy<T>(
|
|
1518
1407
|
collection: List<T> | null | undefined,
|
|
1519
|
-
iteratee?:
|
|
1408
|
+
iteratee?: ValueIterateeCustom<T, PropertyName>
|
|
1520
1409
|
): Dictionary<T>;
|
|
1521
1410
|
|
|
1522
1411
|
/**
|
|
@@ -1524,25 +1413,17 @@ declare module "../index" {
|
|
|
1524
1413
|
*/
|
|
1525
1414
|
keyBy<T extends object>(
|
|
1526
1415
|
collection: T | null | undefined,
|
|
1527
|
-
iteratee?:
|
|
1416
|
+
iteratee?: ValueIterateeCustom<T[keyof T], PropertyName>
|
|
1528
1417
|
): Dictionary<T[keyof T]>;
|
|
1529
1418
|
}
|
|
1530
1419
|
|
|
1531
1420
|
interface LoDashImplicitWrapper<TValue> {
|
|
1532
|
-
/**
|
|
1533
|
-
* @see _.keyBy
|
|
1534
|
-
*/
|
|
1535
|
-
keyBy(
|
|
1536
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
1537
|
-
iteratee?: StringIterator<PropertyName>
|
|
1538
|
-
): LoDashImplicitWrapper<Dictionary<string>>;
|
|
1539
|
-
|
|
1540
1421
|
/**
|
|
1541
1422
|
* @see _.keyBy
|
|
1542
1423
|
*/
|
|
1543
1424
|
keyBy<T>(
|
|
1544
1425
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
1545
|
-
iteratee?:
|
|
1426
|
+
iteratee?: ValueIterateeCustom<T, PropertyName>
|
|
1546
1427
|
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
1547
1428
|
|
|
1548
1429
|
/**
|
|
@@ -1550,25 +1431,17 @@ declare module "../index" {
|
|
|
1550
1431
|
*/
|
|
1551
1432
|
keyBy<T extends object>(
|
|
1552
1433
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
1553
|
-
iteratee?:
|
|
1434
|
+
iteratee?: ValueIterateeCustom<T[keyof T], PropertyName>
|
|
1554
1435
|
): LoDashImplicitWrapper<Dictionary<T[keyof T]>>;
|
|
1555
1436
|
}
|
|
1556
1437
|
|
|
1557
1438
|
interface LoDashExplicitWrapper<TValue> {
|
|
1558
|
-
/**
|
|
1559
|
-
* @see _.keyBy
|
|
1560
|
-
*/
|
|
1561
|
-
keyBy(
|
|
1562
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
1563
|
-
iteratee?: StringIterator<PropertyName>
|
|
1564
|
-
): LoDashExplicitWrapper<Dictionary<string>>;
|
|
1565
|
-
|
|
1566
1439
|
/**
|
|
1567
1440
|
* @see _.keyBy
|
|
1568
1441
|
*/
|
|
1569
1442
|
keyBy<T>(
|
|
1570
1443
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
1571
|
-
iteratee?:
|
|
1444
|
+
iteratee?: ValueIterateeCustom<T, PropertyName>
|
|
1572
1445
|
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
1573
1446
|
|
|
1574
1447
|
/**
|
|
@@ -1576,7 +1449,7 @@ declare module "../index" {
|
|
|
1576
1449
|
*/
|
|
1577
1450
|
keyBy<T extends object>(
|
|
1578
1451
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
1579
|
-
iteratee?:
|
|
1452
|
+
iteratee?: ValueIterateeCustom<T[keyof T], PropertyName>
|
|
1580
1453
|
): LoDashExplicitWrapper<Dictionary<T[keyof T]>>;
|
|
1581
1454
|
}
|
|
1582
1455
|
|
|
@@ -1584,17 +1457,8 @@ declare module "../index" {
|
|
|
1584
1457
|
|
|
1585
1458
|
interface LoDashStatic {
|
|
1586
1459
|
/**
|
|
1587
|
-
* Creates an array of values by running each element in collection through iteratee. The iteratee is
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
* If a property name is provided for iteratee the created _.property style callback returns the property value
|
|
1591
|
-
* of the given element.
|
|
1592
|
-
*
|
|
1593
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1594
|
-
* elements that have a matching property value, else false.
|
|
1595
|
-
*
|
|
1596
|
-
* If an object is provided for iteratee the created _.matches style callback returns true for elements that
|
|
1597
|
-
* have the properties of the given object, else false.
|
|
1460
|
+
* Creates an array of values by running each element in collection through iteratee. The iteratee is
|
|
1461
|
+
* invoked with three arguments: (value, index|key, collection).
|
|
1598
1462
|
*
|
|
1599
1463
|
* Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues,
|
|
1600
1464
|
* _.reject, and _.some.
|
|
@@ -1606,7 +1470,6 @@ declare module "../index" {
|
|
|
1606
1470
|
*
|
|
1607
1471
|
* @param collection The collection to iterate over.
|
|
1608
1472
|
* @param iteratee The function invoked per iteration.
|
|
1609
|
-
* @param thisArg The this binding of iteratee.
|
|
1610
1473
|
* @return Returns the new mapped array.
|
|
1611
1474
|
*/
|
|
1612
1475
|
map<T, TResult>(
|
|
@@ -1908,20 +1771,10 @@ declare module "../index" {
|
|
|
1908
1771
|
/**
|
|
1909
1772
|
* Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for,
|
|
1910
1773
|
* while the second of which contains elements predicate returns falsey for.
|
|
1911
|
-
* The predicate is
|
|
1912
|
-
*
|
|
1913
|
-
* If a property name is provided for predicate the created _.property style callback
|
|
1914
|
-
* returns the property value of the given element.
|
|
1915
|
-
*
|
|
1916
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback
|
|
1917
|
-
* returns true for elements that have a matching property value, else false.
|
|
1918
|
-
*
|
|
1919
|
-
* If an object is provided for predicate the created _.matches style callback returns
|
|
1920
|
-
* true for elements that have the properties of the given object, else false.
|
|
1774
|
+
* The predicate is invoked with three arguments: (value, index|key, collection).
|
|
1921
1775
|
*
|
|
1922
1776
|
* @param collection The collection to iterate over.
|
|
1923
1777
|
* @param callback The function called per iteration.
|
|
1924
|
-
* @param thisArg The this binding of predicate.
|
|
1925
1778
|
* @return Returns the array of grouped elements.
|
|
1926
1779
|
**/
|
|
1927
1780
|
partition<T>(
|
|
@@ -1982,7 +1835,7 @@ declare module "../index" {
|
|
|
1982
1835
|
* element in the collection through the callback, where each successive callback execution
|
|
1983
1836
|
* consumes the return value of the previous execution. If accumulator is not provided the
|
|
1984
1837
|
* first element of the collection will be used as the initial accumulator value. The callback
|
|
1985
|
-
* is
|
|
1838
|
+
* is invoked with four arguments: (accumulator, value, index|key, collection).
|
|
1986
1839
|
* @param collection The collection to iterate over.
|
|
1987
1840
|
* @param callback The function called per iteration.
|
|
1988
1841
|
* @param accumulator Initial value of the accumulator.
|
|
@@ -2015,26 +1868,26 @@ declare module "../index" {
|
|
|
2015
1868
|
/**
|
|
2016
1869
|
* @see _.reduce
|
|
2017
1870
|
**/
|
|
2018
|
-
reduce<T
|
|
1871
|
+
reduce<T>(
|
|
2019
1872
|
collection: T[] | null | undefined,
|
|
2020
|
-
callback: MemoListIterator<T,
|
|
2021
|
-
):
|
|
1873
|
+
callback: MemoListIterator<T, T, T[]>
|
|
1874
|
+
): T | undefined;
|
|
2022
1875
|
|
|
2023
1876
|
/**
|
|
2024
1877
|
* @see _.reduce
|
|
2025
1878
|
**/
|
|
2026
|
-
reduce<T
|
|
1879
|
+
reduce<T>(
|
|
2027
1880
|
collection: List<T> | null | undefined,
|
|
2028
|
-
callback: MemoListIterator<T,
|
|
2029
|
-
):
|
|
1881
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
1882
|
+
): T | undefined;
|
|
2030
1883
|
|
|
2031
1884
|
/**
|
|
2032
1885
|
* @see _.reduce
|
|
2033
1886
|
**/
|
|
2034
|
-
reduce<T extends object
|
|
1887
|
+
reduce<T extends object>(
|
|
2035
1888
|
collection: T | null | undefined,
|
|
2036
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2037
|
-
):
|
|
1889
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
1890
|
+
): T[keyof T] | undefined;
|
|
2038
1891
|
}
|
|
2039
1892
|
|
|
2040
1893
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -2068,26 +1921,26 @@ declare module "../index" {
|
|
|
2068
1921
|
/**
|
|
2069
1922
|
* @see _.reduce
|
|
2070
1923
|
**/
|
|
2071
|
-
reduce<T
|
|
1924
|
+
reduce<T>(
|
|
2072
1925
|
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
2073
|
-
callback: MemoListIterator<T,
|
|
2074
|
-
):
|
|
1926
|
+
callback: MemoListIterator<T, T, T[]>
|
|
1927
|
+
): T | undefined;
|
|
2075
1928
|
|
|
2076
1929
|
/**
|
|
2077
1930
|
* @see _.reduce
|
|
2078
1931
|
**/
|
|
2079
|
-
reduce<T
|
|
1932
|
+
reduce<T>(
|
|
2080
1933
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
2081
|
-
callback: MemoListIterator<T,
|
|
2082
|
-
):
|
|
1934
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
1935
|
+
): T | undefined;
|
|
2083
1936
|
|
|
2084
1937
|
/**
|
|
2085
1938
|
* @see _.reduce
|
|
2086
1939
|
**/
|
|
2087
|
-
reduce<T extends object
|
|
1940
|
+
reduce<T extends object>(
|
|
2088
1941
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
2089
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2090
|
-
):
|
|
1942
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
1943
|
+
): T[keyof T] | undefined;
|
|
2091
1944
|
}
|
|
2092
1945
|
|
|
2093
1946
|
interface LoDashExplicitWrapper<TValue> {
|
|
@@ -2121,26 +1974,26 @@ declare module "../index" {
|
|
|
2121
1974
|
/**
|
|
2122
1975
|
* @see _.reduce
|
|
2123
1976
|
**/
|
|
2124
|
-
reduce<T
|
|
1977
|
+
reduce<T>(
|
|
2125
1978
|
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
2126
|
-
callback: MemoListIterator<T,
|
|
2127
|
-
): LoDashExplicitWrapper<
|
|
1979
|
+
callback: MemoListIterator<T, T, T[]>
|
|
1980
|
+
): LoDashExplicitWrapper<T | undefined>;
|
|
2128
1981
|
|
|
2129
1982
|
/**
|
|
2130
1983
|
* @see _.reduce
|
|
2131
1984
|
**/
|
|
2132
|
-
reduce<T
|
|
1985
|
+
reduce<T>(
|
|
2133
1986
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
2134
|
-
callback: MemoListIterator<T,
|
|
2135
|
-
): LoDashExplicitWrapper<
|
|
1987
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
1988
|
+
): LoDashExplicitWrapper<T | undefined>;
|
|
2136
1989
|
|
|
2137
1990
|
/**
|
|
2138
1991
|
* @see _.reduce
|
|
2139
1992
|
**/
|
|
2140
|
-
reduce<T extends object
|
|
1993
|
+
reduce<T extends object>(
|
|
2141
1994
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
2142
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2143
|
-
): LoDashExplicitWrapper<
|
|
1995
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
1996
|
+
): LoDashExplicitWrapper<T[keyof T] | undefined>;
|
|
2144
1997
|
}
|
|
2145
1998
|
|
|
2146
1999
|
// reduceRight
|
|
@@ -2181,26 +2034,26 @@ declare module "../index" {
|
|
|
2181
2034
|
/**
|
|
2182
2035
|
* @see _.reduceRight
|
|
2183
2036
|
**/
|
|
2184
|
-
reduceRight<T
|
|
2037
|
+
reduceRight<T>(
|
|
2185
2038
|
collection: T[] | null | undefined,
|
|
2186
|
-
callback: MemoListIterator<T,
|
|
2187
|
-
):
|
|
2039
|
+
callback: MemoListIterator<T, T, T[]>
|
|
2040
|
+
): T | undefined;
|
|
2188
2041
|
|
|
2189
2042
|
/**
|
|
2190
2043
|
* @see _.reduceRight
|
|
2191
2044
|
**/
|
|
2192
|
-
reduceRight<T
|
|
2045
|
+
reduceRight<T>(
|
|
2193
2046
|
collection: List<T> | null | undefined,
|
|
2194
|
-
callback: MemoListIterator<T,
|
|
2195
|
-
):
|
|
2047
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
2048
|
+
): T | undefined;
|
|
2196
2049
|
|
|
2197
2050
|
/**
|
|
2198
2051
|
* @see _.reduceRight
|
|
2199
2052
|
**/
|
|
2200
|
-
reduceRight<T extends object
|
|
2053
|
+
reduceRight<T extends object>(
|
|
2201
2054
|
collection: T | null | undefined,
|
|
2202
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2203
|
-
):
|
|
2055
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
2056
|
+
): T[keyof T] | undefined;
|
|
2204
2057
|
}
|
|
2205
2058
|
|
|
2206
2059
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -2234,26 +2087,26 @@ declare module "../index" {
|
|
|
2234
2087
|
/**
|
|
2235
2088
|
* @see _.reduceRight
|
|
2236
2089
|
**/
|
|
2237
|
-
reduceRight<T
|
|
2090
|
+
reduceRight<T>(
|
|
2238
2091
|
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
2239
|
-
callback: MemoListIterator<T,
|
|
2240
|
-
):
|
|
2092
|
+
callback: MemoListIterator<T, T, T[]>
|
|
2093
|
+
): T | undefined;
|
|
2241
2094
|
|
|
2242
2095
|
/**
|
|
2243
2096
|
* @see _.reduceRight
|
|
2244
2097
|
**/
|
|
2245
|
-
reduceRight<T
|
|
2098
|
+
reduceRight<T>(
|
|
2246
2099
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
2247
|
-
callback: MemoListIterator<T,
|
|
2248
|
-
):
|
|
2100
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
2101
|
+
): T | undefined;
|
|
2249
2102
|
|
|
2250
2103
|
/**
|
|
2251
2104
|
* @see _.reduceRight
|
|
2252
2105
|
**/
|
|
2253
|
-
reduceRight<T extends object
|
|
2106
|
+
reduceRight<T extends object>(
|
|
2254
2107
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
2255
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2256
|
-
):
|
|
2108
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
2109
|
+
): T[keyof T] | undefined;
|
|
2257
2110
|
}
|
|
2258
2111
|
|
|
2259
2112
|
interface LoDashExplicitWrapper<TValue> {
|
|
@@ -2287,26 +2140,26 @@ declare module "../index" {
|
|
|
2287
2140
|
/**
|
|
2288
2141
|
* @see _.reduceRight
|
|
2289
2142
|
**/
|
|
2290
|
-
reduceRight<T
|
|
2143
|
+
reduceRight<T>(
|
|
2291
2144
|
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
2292
|
-
callback: MemoListIterator<T,
|
|
2293
|
-
): LoDashExplicitWrapper<
|
|
2145
|
+
callback: MemoListIterator<T, T, T[]>
|
|
2146
|
+
): LoDashExplicitWrapper<T | undefined>;
|
|
2294
2147
|
|
|
2295
2148
|
/**
|
|
2296
2149
|
* @see _.reduceRight
|
|
2297
2150
|
**/
|
|
2298
|
-
reduceRight<T
|
|
2151
|
+
reduceRight<T>(
|
|
2299
2152
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
2300
|
-
callback: MemoListIterator<T,
|
|
2301
|
-
): LoDashExplicitWrapper<
|
|
2153
|
+
callback: MemoListIterator<T, T, List<T>>
|
|
2154
|
+
): LoDashExplicitWrapper<T | undefined>;
|
|
2302
2155
|
|
|
2303
2156
|
/**
|
|
2304
2157
|
* @see _.reduceRight
|
|
2305
2158
|
**/
|
|
2306
|
-
reduceRight<T extends object
|
|
2159
|
+
reduceRight<T extends object>(
|
|
2307
2160
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
2308
|
-
callback: MemoObjectIterator<T[keyof T],
|
|
2309
|
-
): LoDashExplicitWrapper<
|
|
2161
|
+
callback: MemoObjectIterator<T[keyof T], T[keyof T], T>
|
|
2162
|
+
): LoDashExplicitWrapper<T[keyof T] | undefined>;
|
|
2310
2163
|
}
|
|
2311
2164
|
|
|
2312
2165
|
// reject
|
|
@@ -2318,7 +2171,6 @@ declare module "../index" {
|
|
|
2318
2171
|
*
|
|
2319
2172
|
* @param collection The collection to iterate over.
|
|
2320
2173
|
* @param predicate The function invoked per iteration.
|
|
2321
|
-
* @param thisArg The this binding of predicate.
|
|
2322
2174
|
* @return Returns the new filtered array.
|
|
2323
2175
|
*/
|
|
2324
2176
|
reject(
|
|
@@ -2720,4 +2572,4 @@ declare module "../index" {
|
|
|
2720
2572
|
...iteratees: Array<Many<ObjectIteratee<T>>>
|
|
2721
2573
|
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
2722
2574
|
}
|
|
2723
|
-
}
|
|
2575
|
+
}
|