@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/lang.d.ts
CHANGED
|
@@ -210,7 +210,6 @@ declare module "../index" {
|
|
|
210
210
|
|
|
211
211
|
// conformsTo
|
|
212
212
|
|
|
213
|
-
|
|
214
213
|
interface LoDashStatic {
|
|
215
214
|
/**
|
|
216
215
|
* Checks if object conforms to source by invoking the predicate properties of source with the
|
|
@@ -233,11 +232,11 @@ declare module "../index" {
|
|
|
233
232
|
/**
|
|
234
233
|
* @see _.conformsTo
|
|
235
234
|
*/
|
|
236
|
-
conformsTo<T>(this:
|
|
235
|
+
conformsTo<T>(this: LoDashExplicitWrapper<T>, source: ConformsPredicateObject<T>): LoDashExplicitWrapper<boolean>;
|
|
237
236
|
// Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
|
|
238
237
|
}
|
|
239
238
|
|
|
240
|
-
type CondPair<T, R> = [(val: T) => boolean, (val: T) => R]
|
|
239
|
+
type CondPair<T, R> = [(val: T) => boolean, (val: T) => R];
|
|
241
240
|
|
|
242
241
|
// eq
|
|
243
242
|
|
|
@@ -1934,4 +1933,4 @@ declare module "../index" {
|
|
|
1934
1933
|
*/
|
|
1935
1934
|
toString(value: any): string;
|
|
1936
1935
|
}
|
|
1937
|
-
}
|
|
1936
|
+
}
|
lodash/common/math.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ declare module "../index" {
|
|
|
160
160
|
*
|
|
161
161
|
* @category Math
|
|
162
162
|
* @param array The array to iterate over.
|
|
163
|
-
* @param
|
|
163
|
+
* @param iteratee The iteratee invoked per element.
|
|
164
164
|
* @returns Returns the maximum value.
|
|
165
165
|
* @example
|
|
166
166
|
*
|
|
@@ -175,7 +175,7 @@ declare module "../index" {
|
|
|
175
175
|
*/
|
|
176
176
|
maxBy<T>(
|
|
177
177
|
collection: List<T> | null | undefined,
|
|
178
|
-
iteratee?:
|
|
178
|
+
iteratee?: ValueIteratee<T>
|
|
179
179
|
): T | undefined;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -185,7 +185,7 @@ declare module "../index" {
|
|
|
185
185
|
*/
|
|
186
186
|
maxBy<T>(
|
|
187
187
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
188
|
-
iteratee?:
|
|
188
|
+
iteratee?: ValueIteratee<T>
|
|
189
189
|
): T | undefined;
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -195,7 +195,7 @@ declare module "../index" {
|
|
|
195
195
|
*/
|
|
196
196
|
maxBy<T>(
|
|
197
197
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
198
|
-
iteratee?:
|
|
198
|
+
iteratee?: ValueIteratee<T>
|
|
199
199
|
): LoDashExplicitWrapper<T | undefined>;
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -240,7 +240,7 @@ declare module "../index" {
|
|
|
240
240
|
*
|
|
241
241
|
* @category Math
|
|
242
242
|
* @param array The array to iterate over.
|
|
243
|
-
* @param
|
|
243
|
+
* @param iteratee The iteratee invoked per element.
|
|
244
244
|
* @returns Returns the mean.
|
|
245
245
|
* @example
|
|
246
246
|
*
|
|
@@ -249,7 +249,7 @@ declare module "../index" {
|
|
|
249
249
|
*/
|
|
250
250
|
meanBy<T>(
|
|
251
251
|
collection: List<T> | null | undefined,
|
|
252
|
-
iteratee?:
|
|
252
|
+
iteratee?: ValueIteratee<T>
|
|
253
253
|
): number;
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -259,7 +259,7 @@ declare module "../index" {
|
|
|
259
259
|
*/
|
|
260
260
|
meanBy<T>(
|
|
261
261
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
262
|
-
iteratee?:
|
|
262
|
+
iteratee?: ValueIteratee<T>
|
|
263
263
|
): number;
|
|
264
264
|
}
|
|
265
265
|
|
|
@@ -269,7 +269,7 @@ declare module "../index" {
|
|
|
269
269
|
*/
|
|
270
270
|
meanBy<T>(
|
|
271
271
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
272
|
-
iteratee?:
|
|
272
|
+
iteratee?: ValueIteratee<T>
|
|
273
273
|
): LoDashExplicitWrapper<number>;
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -313,7 +313,7 @@ declare module "../index" {
|
|
|
313
313
|
*
|
|
314
314
|
* @category Math
|
|
315
315
|
* @param array The array to iterate over.
|
|
316
|
-
* @param
|
|
316
|
+
* @param iteratee The iteratee invoked per element.
|
|
317
317
|
* @returns Returns the minimum value.
|
|
318
318
|
* @example
|
|
319
319
|
*
|
|
@@ -328,7 +328,7 @@ declare module "../index" {
|
|
|
328
328
|
*/
|
|
329
329
|
minBy<T>(
|
|
330
330
|
collection: List<T> | null | undefined,
|
|
331
|
-
iteratee?:
|
|
331
|
+
iteratee?: ValueIteratee<T>
|
|
332
332
|
): T | undefined;
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -338,7 +338,7 @@ declare module "../index" {
|
|
|
338
338
|
*/
|
|
339
339
|
minBy<T>(
|
|
340
340
|
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
341
|
-
iteratee?:
|
|
341
|
+
iteratee?: ValueIteratee<T>
|
|
342
342
|
): T | undefined;
|
|
343
343
|
}
|
|
344
344
|
|
|
@@ -348,7 +348,7 @@ declare module "../index" {
|
|
|
348
348
|
*/
|
|
349
349
|
minBy<T>(
|
|
350
350
|
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
351
|
-
iteratee?:
|
|
351
|
+
iteratee?: ValueIteratee<T>
|
|
352
352
|
): LoDashExplicitWrapper<T | undefined>;
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -529,8 +529,4 @@ declare module "../index" {
|
|
|
529
529
|
iteratee?: ((value: T) => number) | string
|
|
530
530
|
): LoDashExplicitWrapper<number>;
|
|
531
531
|
}
|
|
532
|
-
|
|
533
|
-
/**********
|
|
534
|
-
* Number *
|
|
535
|
-
**********/
|
|
536
|
-
}
|
|
532
|
+
}
|
lodash/common/number.d.ts
CHANGED
lodash/common/object.d.ts
CHANGED
|
@@ -1370,18 +1370,8 @@ declare module "../index" {
|
|
|
1370
1370
|
* This method is like _.find except that it returns the key of the first element predicate returns truthy for
|
|
1371
1371
|
* instead of the element itself.
|
|
1372
1372
|
*
|
|
1373
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
1374
|
-
* value of the given element.
|
|
1375
|
-
*
|
|
1376
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1377
|
-
* elements that have a matching property value, else false.
|
|
1378
|
-
*
|
|
1379
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
1380
|
-
* have the properties of the given object, else false.
|
|
1381
|
-
*
|
|
1382
1373
|
* @param object The object to search.
|
|
1383
1374
|
* @param predicate The function invoked per iteration.
|
|
1384
|
-
* @param thisArg The this binding of predicate.
|
|
1385
1375
|
* @return Returns the key of the matched element, else undefined.
|
|
1386
1376
|
*/
|
|
1387
1377
|
findKey<T>(
|
|
@@ -1416,18 +1406,8 @@ declare module "../index" {
|
|
|
1416
1406
|
/**
|
|
1417
1407
|
* This method is like _.findKey except that it iterates over elements of a collection in the opposite order.
|
|
1418
1408
|
*
|
|
1419
|
-
* If a property name is provided for predicate the created _.property style callback returns the property
|
|
1420
|
-
* value of the given element.
|
|
1421
|
-
*
|
|
1422
|
-
* If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
|
|
1423
|
-
* elements that have a matching property value, else false.
|
|
1424
|
-
*
|
|
1425
|
-
* If an object is provided for predicate the created _.matches style callback returns true for elements that
|
|
1426
|
-
* have the properties of the given object, else false.
|
|
1427
|
-
*
|
|
1428
1409
|
* @param object The object to search.
|
|
1429
1410
|
* @param predicate The function invoked per iteration.
|
|
1430
|
-
* @param thisArg The this binding of predicate.
|
|
1431
1411
|
* @return Returns the key of the matched element, else undefined.
|
|
1432
1412
|
*/
|
|
1433
1413
|
findLastKey<T>(
|
|
@@ -1461,12 +1441,11 @@ declare module "../index" {
|
|
|
1461
1441
|
interface LoDashStatic {
|
|
1462
1442
|
/**
|
|
1463
1443
|
* Iterates over own and inherited enumerable properties of an object invoking iteratee for each property. The
|
|
1464
|
-
* iteratee is
|
|
1444
|
+
* iteratee is invoked with three arguments: (value, key, object). Iteratee functions may
|
|
1465
1445
|
* exit iteration early by explicitly returning false.
|
|
1466
1446
|
*
|
|
1467
1447
|
* @param object The object to iterate over.
|
|
1468
1448
|
* @param iteratee The function invoked per iteration.
|
|
1469
|
-
* @param thisArg The this binding of iteratee.
|
|
1470
1449
|
* @return Returns object.
|
|
1471
1450
|
*/
|
|
1472
1451
|
forIn<T>(
|
|
@@ -1501,7 +1480,6 @@ declare module "../index" {
|
|
|
1501
1480
|
*
|
|
1502
1481
|
* @param object The object to iterate over.
|
|
1503
1482
|
* @param iteratee The function invoked per iteration.
|
|
1504
|
-
* @param thisArg The this binding of iteratee.
|
|
1505
1483
|
* @return Returns object.
|
|
1506
1484
|
*/
|
|
1507
1485
|
forInRight<T>(
|
|
@@ -1533,12 +1511,11 @@ declare module "../index" {
|
|
|
1533
1511
|
interface LoDashStatic {
|
|
1534
1512
|
/**
|
|
1535
1513
|
* Iterates over own enumerable properties of an object invoking iteratee for each property. The iteratee is
|
|
1536
|
-
*
|
|
1514
|
+
* invoked with three arguments: (value, key, object). Iteratee functions may exit
|
|
1537
1515
|
* iteration early by explicitly returning false.
|
|
1538
1516
|
*
|
|
1539
1517
|
* @param object The object to iterate over.
|
|
1540
1518
|
* @param iteratee The function invoked per iteration.
|
|
1541
|
-
* @param thisArg The this binding of iteratee.
|
|
1542
1519
|
* @return Returns object.
|
|
1543
1520
|
*/
|
|
1544
1521
|
forOwn<T>(
|
|
@@ -1573,7 +1550,6 @@ declare module "../index" {
|
|
|
1573
1550
|
*
|
|
1574
1551
|
* @param object The object to iterate over.
|
|
1575
1552
|
* @param iteratee The function invoked per iteration.
|
|
1576
|
-
* @param thisArg The this binding of iteratee.
|
|
1577
1553
|
* @return Returns object.
|
|
1578
1554
|
*/
|
|
1579
1555
|
forOwnRight<T>(
|
|
@@ -2199,7 +2175,6 @@ declare module "../index" {
|
|
|
2199
2175
|
*
|
|
2200
2176
|
* @param object The object to iterate over.
|
|
2201
2177
|
* @param iteratee The function invoked per iteration.
|
|
2202
|
-
* @param thisArg The this binding of iteratee.
|
|
2203
2178
|
* @return Returns the new mapped object.
|
|
2204
2179
|
*/
|
|
2205
2180
|
mapKeys<T>(
|
|
@@ -2257,21 +2232,11 @@ declare module "../index" {
|
|
|
2257
2232
|
interface LoDashStatic {
|
|
2258
2233
|
/**
|
|
2259
2234
|
* Creates an object with the same keys as object and values generated by running each own
|
|
2260
|
-
* enumerable property of object through iteratee. The iteratee function is
|
|
2261
|
-
*
|
|
2262
|
-
*
|
|
2263
|
-
* If a property name is provided iteratee the created "_.property" style callback returns
|
|
2264
|
-
* the property value of the given element.
|
|
2265
|
-
*
|
|
2266
|
-
* If a value is also provided for thisArg the creted "_.matchesProperty" style callback returns
|
|
2267
|
-
* true for elements that have a matching property value, else false;.
|
|
2268
|
-
*
|
|
2269
|
-
* If an object is provided for iteratee the created "_.matches" style callback returns true
|
|
2270
|
-
* for elements that have the properties of the given object, else false.
|
|
2235
|
+
* enumerable property of object through iteratee. The iteratee function is
|
|
2236
|
+
* invoked with three arguments: (value, key, object).
|
|
2271
2237
|
*
|
|
2272
2238
|
* @param object The object to iterate over.
|
|
2273
|
-
* @param
|
|
2274
|
-
* @param [thisArg] The `this` binding of `iteratee`.
|
|
2239
|
+
* @param iteratee The function invoked per iteration.
|
|
2275
2240
|
* @return Returns the new mapped object.
|
|
2276
2241
|
*/
|
|
2277
2242
|
mapValues<TResult>(obj: string | null | undefined, callback: StringIterator<TResult>): NumericDictionary<TResult>;
|
|
@@ -2281,7 +2246,7 @@ declare module "../index" {
|
|
|
2281
2246
|
* TODO: This would be better if we had a separate overload for obj: NumericDictionary that returned a NumericDictionary,
|
|
2282
2247
|
* but TypeScript cannot select overload signatures based on number vs string index key type.
|
|
2283
2248
|
*/
|
|
2284
|
-
mapValues<T, TResult>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined, callback:
|
|
2249
|
+
mapValues<T, TResult>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined, callback: DictionaryIterator<T, TResult>): Dictionary<TResult>;
|
|
2285
2250
|
|
|
2286
2251
|
/**
|
|
2287
2252
|
* @see _.mapValues
|
|
@@ -2358,7 +2323,7 @@ declare module "../index" {
|
|
|
2358
2323
|
*/
|
|
2359
2324
|
mapValues<T, TResult>(
|
|
2360
2325
|
this: LoDashImplicitWrapper<Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
2361
|
-
callback:
|
|
2326
|
+
callback: DictionaryIterator<T, TResult>
|
|
2362
2327
|
): LoDashImplicitWrapper<Dictionary<TResult>>;
|
|
2363
2328
|
|
|
2364
2329
|
/**
|
|
@@ -2454,7 +2419,7 @@ declare module "../index" {
|
|
|
2454
2419
|
*/
|
|
2455
2420
|
mapValues<T, TResult>(
|
|
2456
2421
|
this: LoDashExplicitWrapper<Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
2457
|
-
callback:
|
|
2422
|
+
callback: DictionaryIterator<T, TResult>
|
|
2458
2423
|
): LoDashExplicitWrapper<Dictionary<TResult>>;
|
|
2459
2424
|
|
|
2460
2425
|
/**
|
|
@@ -2680,6 +2645,10 @@ declare module "../index" {
|
|
|
2680
2645
|
* @see _.merge
|
|
2681
2646
|
*/
|
|
2682
2647
|
merge<TSource1, TSource2, TSource3, TSource4>(
|
|
2648
|
+
source1: TSource1,
|
|
2649
|
+
source2: TSource2,
|
|
2650
|
+
source3: TSource3,
|
|
2651
|
+
source4: TSource4
|
|
2683
2652
|
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
2684
2653
|
|
|
2685
2654
|
/**
|
|
@@ -2692,7 +2661,7 @@ declare module "../index" {
|
|
|
2692
2661
|
|
|
2693
2662
|
// mergeWith
|
|
2694
2663
|
|
|
2695
|
-
type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"]
|
|
2664
|
+
type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"];
|
|
2696
2665
|
|
|
2697
2666
|
interface LoDashStatic {
|
|
2698
2667
|
/**
|
|
@@ -2823,6 +2792,53 @@ declare module "../index" {
|
|
|
2823
2792
|
): LoDashImplicitWrapper<any>;
|
|
2824
2793
|
}
|
|
2825
2794
|
|
|
2795
|
+
interface LoDashExplicitWrapper<TValue> {
|
|
2796
|
+
/**
|
|
2797
|
+
* @see _.mergeWith
|
|
2798
|
+
*/
|
|
2799
|
+
mergeWith<TSource>(
|
|
2800
|
+
source: TSource,
|
|
2801
|
+
customizer: MergeWithCustomizer
|
|
2802
|
+
): LoDashExplicitWrapper<TValue & TSource>;
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* @see _.mergeWith
|
|
2806
|
+
*/
|
|
2807
|
+
mergeWith<TSource1, TSource2>(
|
|
2808
|
+
source1: TSource1,
|
|
2809
|
+
source2: TSource2,
|
|
2810
|
+
customizer: MergeWithCustomizer
|
|
2811
|
+
): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* @see _.mergeWith
|
|
2815
|
+
*/
|
|
2816
|
+
mergeWith<TSource1, TSource2, TSource3>(
|
|
2817
|
+
source1: TSource1,
|
|
2818
|
+
source2: TSource2,
|
|
2819
|
+
source3: TSource3,
|
|
2820
|
+
customizer: MergeWithCustomizer
|
|
2821
|
+
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* @see _.mergeWith
|
|
2825
|
+
*/
|
|
2826
|
+
mergeWith<TSource1, TSource2, TSource3, TSource4>(
|
|
2827
|
+
source1: TSource1,
|
|
2828
|
+
source2: TSource2,
|
|
2829
|
+
source3: TSource3,
|
|
2830
|
+
source4: TSource4,
|
|
2831
|
+
customizer: MergeWithCustomizer
|
|
2832
|
+
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* @see _.mergeWith
|
|
2836
|
+
*/
|
|
2837
|
+
mergeWith(
|
|
2838
|
+
...otherArgs: any[]
|
|
2839
|
+
): LoDashExplicitWrapper<any>;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2826
2842
|
// omit
|
|
2827
2843
|
|
|
2828
2844
|
interface LoDashStatic {
|
|
@@ -2844,15 +2860,23 @@ declare module "../index" {
|
|
|
2844
2860
|
*/
|
|
2845
2861
|
omit<T extends AnyKindOfDictionary>(
|
|
2846
2862
|
object: T | null | undefined,
|
|
2847
|
-
...paths:
|
|
2863
|
+
...paths: Array<Many<PropertyName>>
|
|
2848
2864
|
): T;
|
|
2849
2865
|
|
|
2866
|
+
/**
|
|
2867
|
+
* @see _.omit
|
|
2868
|
+
*/
|
|
2869
|
+
omit<T extends object, K extends keyof T>(
|
|
2870
|
+
object: T | null | undefined,
|
|
2871
|
+
...paths: Array<Many<K>>
|
|
2872
|
+
): Omit<T, K>;
|
|
2873
|
+
|
|
2850
2874
|
/**
|
|
2851
2875
|
* @see _.omit
|
|
2852
2876
|
*/
|
|
2853
2877
|
omit<T extends object>(
|
|
2854
2878
|
object: T | null | undefined,
|
|
2855
|
-
...paths:
|
|
2879
|
+
...paths: Array<Many<PropertyName>>
|
|
2856
2880
|
): PartialObject<T>;
|
|
2857
2881
|
}
|
|
2858
2882
|
|
|
@@ -2862,15 +2886,23 @@ declare module "../index" {
|
|
|
2862
2886
|
*/
|
|
2863
2887
|
omit<T extends AnyKindOfDictionary>(
|
|
2864
2888
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
2865
|
-
...paths:
|
|
2889
|
+
...paths: Array<Many<PropertyName>>
|
|
2866
2890
|
): LoDashImplicitWrapper<T>;
|
|
2867
2891
|
|
|
2892
|
+
/**
|
|
2893
|
+
* @see _.omit
|
|
2894
|
+
*/
|
|
2895
|
+
omit<T extends object, K extends keyof T>(
|
|
2896
|
+
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
2897
|
+
...paths: Array<Many<K>>
|
|
2898
|
+
): LoDashImplicitWrapper<Omit<T, K>>;
|
|
2899
|
+
|
|
2868
2900
|
/**
|
|
2869
2901
|
* @see _.omit
|
|
2870
2902
|
*/
|
|
2871
2903
|
omit<T extends object>(
|
|
2872
2904
|
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
2873
|
-
...paths:
|
|
2905
|
+
...paths: Array<Many<PropertyName>>
|
|
2874
2906
|
): LoDashImplicitWrapper<PartialObject<T>>;
|
|
2875
2907
|
}
|
|
2876
2908
|
|
|
@@ -2880,15 +2912,23 @@ declare module "../index" {
|
|
|
2880
2912
|
*/
|
|
2881
2913
|
omit<T extends AnyKindOfDictionary>(
|
|
2882
2914
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
2883
|
-
...paths:
|
|
2915
|
+
...paths: Array<Many<PropertyName>>
|
|
2884
2916
|
): LoDashExplicitWrapper<T>;
|
|
2885
2917
|
|
|
2918
|
+
/**
|
|
2919
|
+
* @see _.omit
|
|
2920
|
+
*/
|
|
2921
|
+
omit<T extends object, K extends keyof T>(
|
|
2922
|
+
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
2923
|
+
...paths: Array<Many<K>>
|
|
2924
|
+
): LoDashExplicitWrapper<Omit<T, K>>;
|
|
2925
|
+
|
|
2886
2926
|
/**
|
|
2887
2927
|
* @see _.omit
|
|
2888
2928
|
*/
|
|
2889
2929
|
omit<T extends object>(
|
|
2890
2930
|
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
2891
|
-
...paths:
|
|
2931
|
+
...paths: Array<Many<PropertyName>>
|
|
2892
2932
|
): LoDashExplicitWrapper<PartialObject<T>>;
|
|
2893
2933
|
}
|
|
2894
2934
|
|
|
@@ -3166,7 +3206,7 @@ declare module "../index" {
|
|
|
3166
3206
|
* @param object The object to modify.
|
|
3167
3207
|
* @param path The path of the property to set.
|
|
3168
3208
|
* @param value The value to set.
|
|
3169
|
-
* @
|
|
3209
|
+
* @param customizer The function to customize assigned values.
|
|
3170
3210
|
* @return Returns object.
|
|
3171
3211
|
*/
|
|
3172
3212
|
setWith<T extends object>(
|
|
@@ -3312,13 +3352,12 @@ declare module "../index" {
|
|
|
3312
3352
|
/**
|
|
3313
3353
|
* An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of
|
|
3314
3354
|
* running each of its own enumerable properties through iteratee, with each invocation potentially mutating
|
|
3315
|
-
* the accumulator object. The iteratee is
|
|
3355
|
+
* the accumulator object. The iteratee is invoked with four arguments: (accumulator,
|
|
3316
3356
|
* value, key, object). Iteratee functions may exit iteration early by explicitly returning false.
|
|
3317
3357
|
*
|
|
3318
3358
|
* @param object The object to iterate over.
|
|
3319
3359
|
* @param iteratee The function invoked per iteration.
|
|
3320
3360
|
* @param accumulator The custom accumulator value.
|
|
3321
|
-
* @param thisArg The this binding of iteratee.
|
|
3322
3361
|
* @return Returns the accumulated value.
|
|
3323
3362
|
*/
|
|
3324
3363
|
transform<T, TResult>(
|
|
@@ -3719,4 +3758,4 @@ declare module "../index" {
|
|
|
3719
3758
|
*/
|
|
3720
3759
|
valuesIn<T extends object>(this: LoDashExplicitWrapper<T | null | undefined>): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
3721
3760
|
}
|
|
3722
|
-
}
|
|
3761
|
+
}
|
lodash/common/seq.d.ts
CHANGED
|
@@ -141,13 +141,12 @@ declare module "../index" {
|
|
|
141
141
|
|
|
142
142
|
interface LoDashStatic {
|
|
143
143
|
/**
|
|
144
|
-
* This method invokes interceptor and returns value. The interceptor is
|
|
144
|
+
* This method invokes interceptor and returns value. The interceptor is invoked with one
|
|
145
145
|
* argument; (value). The purpose of this method is to "tap into" a method chain in order to perform operations
|
|
146
146
|
* on intermediate results within the chain.
|
|
147
147
|
*
|
|
148
148
|
* @param value The value to provide to interceptor.
|
|
149
149
|
* @param interceptor The function to invoke.
|
|
150
|
-
* @parem thisArg The this binding of interceptor.
|
|
151
150
|
* @return Returns value.
|
|
152
151
|
**/
|
|
153
152
|
tap<T>(
|
|
@@ -173,7 +172,6 @@ declare module "../index" {
|
|
|
173
172
|
*
|
|
174
173
|
* @param value The value to provide to interceptor.
|
|
175
174
|
* @param interceptor The function to invoke.
|
|
176
|
-
* @param thisArg The this binding of interceptor.
|
|
177
175
|
* @return Returns the result of interceptor.
|
|
178
176
|
*/
|
|
179
177
|
thru<T, TResult>(
|
|
@@ -195,4 +193,4 @@ declare module "../index" {
|
|
|
195
193
|
*/
|
|
196
194
|
thru<TResult>(interceptor: (value: TValue) => TResult): LoDashExplicitWrapper<TResult>;
|
|
197
195
|
}
|
|
198
|
-
}
|
|
196
|
+
}
|
lodash/common/string.d.ts
CHANGED
lodash/common/util.d.ts
CHANGED
|
@@ -584,9 +584,17 @@ declare module "../index" {
|
|
|
584
584
|
* // => [{ 'user': 'fred', 'age': 40 }]
|
|
585
585
|
*/
|
|
586
586
|
iteratee<TFunction extends (...args: any[]) => any>(
|
|
587
|
-
func: TFunction
|
|
587
|
+
func: TFunction
|
|
588
588
|
): TFunction;
|
|
589
589
|
|
|
590
|
+
/**
|
|
591
|
+
* @see _.iteratee
|
|
592
|
+
*/
|
|
593
|
+
// tslint:disable-next-line:unified-signatures Tests fail in TS2.3 if the overloads are joined
|
|
594
|
+
iteratee(
|
|
595
|
+
func: string | object
|
|
596
|
+
): (...args: any[]) => any;
|
|
597
|
+
|
|
590
598
|
/**
|
|
591
599
|
* @see _.iteratee
|
|
592
600
|
*/
|
|
@@ -1199,14 +1207,14 @@ declare module "../index" {
|
|
|
1199
1207
|
* @param context The context object.
|
|
1200
1208
|
* @return Returns a new lodash function.
|
|
1201
1209
|
*/
|
|
1202
|
-
runInContext(context?: object):
|
|
1210
|
+
runInContext(context?: object): LoDashStatic;
|
|
1203
1211
|
}
|
|
1204
1212
|
|
|
1205
1213
|
interface LoDashImplicitWrapper<TValue> {
|
|
1206
1214
|
/**
|
|
1207
1215
|
* @see _.runInContext
|
|
1208
1216
|
*/
|
|
1209
|
-
runInContext():
|
|
1217
|
+
runInContext(): LoDashStatic;
|
|
1210
1218
|
}
|
|
1211
1219
|
|
|
1212
1220
|
// stubArray
|
|
@@ -1242,21 +1250,21 @@ declare module "../index" {
|
|
|
1242
1250
|
*
|
|
1243
1251
|
* @returns Returns `false`.
|
|
1244
1252
|
*/
|
|
1245
|
-
stubFalse():
|
|
1253
|
+
stubFalse(): false;
|
|
1246
1254
|
}
|
|
1247
1255
|
|
|
1248
1256
|
interface LoDashImplicitWrapper<TValue> {
|
|
1249
1257
|
/**
|
|
1250
1258
|
* @see _.stubFalse
|
|
1251
1259
|
*/
|
|
1252
|
-
stubFalse():
|
|
1260
|
+
stubFalse(): false;
|
|
1253
1261
|
}
|
|
1254
1262
|
|
|
1255
1263
|
interface LoDashExplicitWrapper<TValue> {
|
|
1256
1264
|
/**
|
|
1257
1265
|
* @see _.stubFalse
|
|
1258
1266
|
*/
|
|
1259
|
-
stubFalse(): LoDashExplicitWrapper<
|
|
1267
|
+
stubFalse(): LoDashExplicitWrapper<false>;
|
|
1260
1268
|
}
|
|
1261
1269
|
|
|
1262
1270
|
// stubObject
|
|
@@ -1317,21 +1325,21 @@ declare module "../index" {
|
|
|
1317
1325
|
*
|
|
1318
1326
|
* @returns Returns `true`.
|
|
1319
1327
|
*/
|
|
1320
|
-
stubTrue():
|
|
1328
|
+
stubTrue(): true;
|
|
1321
1329
|
}
|
|
1322
1330
|
|
|
1323
1331
|
interface LoDashImplicitWrapper<TValue> {
|
|
1324
1332
|
/**
|
|
1325
1333
|
* @see _.stubTrue
|
|
1326
1334
|
*/
|
|
1327
|
-
stubTrue():
|
|
1335
|
+
stubTrue(): true;
|
|
1328
1336
|
}
|
|
1329
1337
|
|
|
1330
1338
|
interface LoDashExplicitWrapper<TValue> {
|
|
1331
1339
|
/**
|
|
1332
1340
|
* @see _.stubTrue
|
|
1333
1341
|
*/
|
|
1334
|
-
stubTrue(): LoDashExplicitWrapper<
|
|
1342
|
+
stubTrue(): LoDashExplicitWrapper<true>;
|
|
1335
1343
|
}
|
|
1336
1344
|
|
|
1337
1345
|
// times
|
|
@@ -1452,4 +1460,4 @@ declare module "../index" {
|
|
|
1452
1460
|
*/
|
|
1453
1461
|
uniqueId(): LoDashExplicitWrapper<string>;
|
|
1454
1462
|
}
|
|
1455
|
-
}
|
|
1463
|
+
}
|
lodash/fp/F.d.ts
ADDED
lodash/fp/T.d.ts
ADDED
lodash/fp/__.d.ts
ADDED
lodash/fp/add.d.ts
ADDED
lodash/fp/after.d.ts
ADDED
lodash/fp/all.d.ts
ADDED
lodash/fp/allPass.d.ts
ADDED
lodash/fp/always.d.ts
ADDED
lodash/fp/any.d.ts
ADDED
lodash/fp/anyPass.d.ts
ADDED
lodash/fp/apply.d.ts
ADDED
lodash/fp/ary.d.ts
ADDED
lodash/fp/assign.d.ts
ADDED
lodash/fp/assignAll.d.ts
ADDED
lodash/fp/assignIn.d.ts
ADDED