@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/math/minBy.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like `_.min` except that it accepts `iteratee` which is
|
|
6
|
-
* invoked for each element in `array` to generate the criterion by which
|
|
7
|
-
* the value is ranked. The iteratee is invoked with one argument: (value).
|
|
8
|
-
*
|
|
9
|
-
* @category Math
|
|
10
|
-
* @param array The array to iterate over.
|
|
11
|
-
* @param [iteratee=_.identity] The iteratee invoked per element.
|
|
12
|
-
* @returns Returns the minimum value.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* var objects = [{ 'n': 1 }, { 'n': 2 }];
|
|
16
|
-
*
|
|
17
|
-
* _.minBy(objects, function(o) { return o.a; });
|
|
18
|
-
* // => { 'n': 1 }
|
|
19
|
-
*
|
|
20
|
-
* // using the `_.property` iteratee shorthand
|
|
21
|
-
* _.minBy(objects, 'n');
|
|
22
|
-
* // => { 'n': 1 }
|
|
23
|
-
*/
|
|
24
|
-
minBy<T>(
|
|
25
|
-
collection: List<T> | null | undefined,
|
|
26
|
-
iteratee?: ListIteratee<T>
|
|
27
|
-
): T | undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
31
|
-
/**
|
|
32
|
-
* @see _.minBy
|
|
33
|
-
*/
|
|
34
|
-
minBy<T>(
|
|
35
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
36
|
-
iteratee?: ListIteratee<T>
|
|
37
|
-
): T | undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
41
|
-
/**
|
|
42
|
-
* @see _.minBy
|
|
43
|
-
*/
|
|
44
|
-
minBy<T>(
|
|
45
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
46
|
-
iteratee?: ListIteratee<T>
|
|
47
|
-
): LoDashExplicitWrapper<T | undefined>;
|
|
48
|
-
}
|
|
49
|
-
}
|
lodash/math/multiply.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Multiply two numbers.
|
|
6
|
-
* @param multiplier The first number in a multiplication.
|
|
7
|
-
* @param multiplicand The second number in a multiplication.
|
|
8
|
-
* @returns Returns the product.
|
|
9
|
-
*/
|
|
10
|
-
multiply(
|
|
11
|
-
multiplier: number,
|
|
12
|
-
multiplicand: number
|
|
13
|
-
): number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
17
|
-
/**
|
|
18
|
-
* @see _.multiply
|
|
19
|
-
*/
|
|
20
|
-
multiply(multiplicand: number): number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
24
|
-
/**
|
|
25
|
-
* @see _.multiply
|
|
26
|
-
*/
|
|
27
|
-
multiply(multiplicand: number): LoDashExplicitWrapper<number>;
|
|
28
|
-
}
|
|
29
|
-
}
|
lodash/math/round.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Calculates n rounded to precision.
|
|
6
|
-
*
|
|
7
|
-
* @param n The number to round.
|
|
8
|
-
* @param precision The precision to round to.
|
|
9
|
-
* @return Returns the rounded number.
|
|
10
|
-
*/
|
|
11
|
-
round(
|
|
12
|
-
n: number,
|
|
13
|
-
precision?: number
|
|
14
|
-
): number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
18
|
-
/**
|
|
19
|
-
* @see _.round
|
|
20
|
-
*/
|
|
21
|
-
round(precision?: number): number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
25
|
-
/**
|
|
26
|
-
* @see _.round
|
|
27
|
-
*/
|
|
28
|
-
round(precision?: number): LoDashExplicitWrapper<number>;
|
|
29
|
-
}
|
|
30
|
-
}
|
lodash/math/subtract.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Subtract two numbers.
|
|
6
|
-
*
|
|
7
|
-
* @category Math
|
|
8
|
-
* @param minuend The first number in a subtraction.
|
|
9
|
-
* @param subtrahend The second number in a subtraction.
|
|
10
|
-
* @returns Returns the difference.
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* _.subtract(6, 4);
|
|
14
|
-
* // => 2
|
|
15
|
-
*/
|
|
16
|
-
subtract(
|
|
17
|
-
minuend: number,
|
|
18
|
-
subtrahend: number
|
|
19
|
-
): number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
23
|
-
/**
|
|
24
|
-
* @see _.subtract
|
|
25
|
-
*/
|
|
26
|
-
subtract(
|
|
27
|
-
subtrahend: number
|
|
28
|
-
): number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.subtract
|
|
34
|
-
*/
|
|
35
|
-
subtract(
|
|
36
|
-
subtrahend: number
|
|
37
|
-
): LoDashExplicitWrapper<number>;
|
|
38
|
-
}
|
|
39
|
-
}
|
lodash/math/sum.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Computes the sum of the values in `array`.
|
|
6
|
-
*
|
|
7
|
-
* @category Math
|
|
8
|
-
* @param array The array to iterate over.
|
|
9
|
-
* @returns Returns the sum.
|
|
10
|
-
* @example
|
|
11
|
-
*
|
|
12
|
-
* _.sum([4, 2, 8, 6]);
|
|
13
|
-
* // => 20
|
|
14
|
-
*/
|
|
15
|
-
sum(collection: List<any> | null | undefined): number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
19
|
-
/**
|
|
20
|
-
* @see _.sum
|
|
21
|
-
*/
|
|
22
|
-
sum(): number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
26
|
-
/**
|
|
27
|
-
* @see _.sum
|
|
28
|
-
*/
|
|
29
|
-
sum(): LoDashExplicitWrapper<number>;
|
|
30
|
-
}
|
|
31
|
-
}
|
lodash/math/sumBy.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like `_.sum` except that it accepts `iteratee` which is
|
|
6
|
-
* invoked for each element in `array` to generate the value to be summed.
|
|
7
|
-
* The iteratee is invoked with one argument: (value).
|
|
8
|
-
*
|
|
9
|
-
* @category Math
|
|
10
|
-
* @param array The array to iterate over.
|
|
11
|
-
* @param [iteratee=_.identity] The iteratee invoked per element.
|
|
12
|
-
* @returns Returns the sum.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
|
|
16
|
-
*
|
|
17
|
-
* _.sumBy(objects, function(o) { return o.n; });
|
|
18
|
-
* // => 20
|
|
19
|
-
*
|
|
20
|
-
* // using the `_.property` iteratee shorthand
|
|
21
|
-
* _.sumBy(objects, 'n');
|
|
22
|
-
* // => 20
|
|
23
|
-
*/
|
|
24
|
-
sumBy<T>(
|
|
25
|
-
collection: List<T> | null | undefined,
|
|
26
|
-
iteratee?: ((value: T) => number) | string
|
|
27
|
-
): number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
31
|
-
/**
|
|
32
|
-
* @see _.sumBy
|
|
33
|
-
*/
|
|
34
|
-
sumBy<T>(
|
|
35
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
36
|
-
iteratee?: ((value: T) => number) | string
|
|
37
|
-
): number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
41
|
-
/**
|
|
42
|
-
* @see _.sumBy
|
|
43
|
-
*/
|
|
44
|
-
sumBy<T>(
|
|
45
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
46
|
-
iteratee?: ((value: T) => number) | string
|
|
47
|
-
): LoDashExplicitWrapper<number>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**********
|
|
51
|
-
* Number *
|
|
52
|
-
**********/
|
|
53
|
-
}
|
lodash/number/clamp.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Clamps `number` within the inclusive `lower` and `upper` bounds.
|
|
6
|
-
*
|
|
7
|
-
* @category Number
|
|
8
|
-
* @param number The number to clamp.
|
|
9
|
-
* @param [lower] The lower bound.
|
|
10
|
-
* @param upper The upper bound.
|
|
11
|
-
* @returns Returns the clamped number.
|
|
12
|
-
* @example
|
|
13
|
-
*
|
|
14
|
-
* _.clamp(-10, -5, 5);
|
|
15
|
-
* // => -5
|
|
16
|
-
*
|
|
17
|
-
* _.clamp(10, -5, 5);
|
|
18
|
-
* // => 5
|
|
19
|
-
*/
|
|
20
|
-
clamp(
|
|
21
|
-
number: number,
|
|
22
|
-
lower: number,
|
|
23
|
-
upper: number
|
|
24
|
-
): number;
|
|
25
|
-
clamp(
|
|
26
|
-
number: number,
|
|
27
|
-
upper: number
|
|
28
|
-
): number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.clamp
|
|
34
|
-
*/
|
|
35
|
-
clamp(
|
|
36
|
-
lower: number,
|
|
37
|
-
upper: number
|
|
38
|
-
): number;
|
|
39
|
-
clamp(
|
|
40
|
-
upper: number
|
|
41
|
-
): number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
45
|
-
/**
|
|
46
|
-
* @see _.clamp
|
|
47
|
-
*/
|
|
48
|
-
clamp(
|
|
49
|
-
lower: number,
|
|
50
|
-
upper: number
|
|
51
|
-
): LoDashExplicitWrapper<number>;
|
|
52
|
-
clamp(
|
|
53
|
-
upper: number
|
|
54
|
-
): LoDashExplicitWrapper<number>;
|
|
55
|
-
}
|
|
56
|
-
}
|
lodash/number/inRange.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Checks if n is between start and up to but not including, end. If end is not specified it’s set to start
|
|
6
|
-
* with start then set to 0.
|
|
7
|
-
*
|
|
8
|
-
* @param n The number to check.
|
|
9
|
-
* @param start The start of the range.
|
|
10
|
-
* @param end The end of the range.
|
|
11
|
-
* @return Returns true if n is in the range, else false.
|
|
12
|
-
*/
|
|
13
|
-
inRange(
|
|
14
|
-
n: number,
|
|
15
|
-
start: number,
|
|
16
|
-
end?: number
|
|
17
|
-
): boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.inRange
|
|
23
|
-
*/
|
|
24
|
-
inRange(
|
|
25
|
-
start: number,
|
|
26
|
-
end?: number
|
|
27
|
-
): boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
31
|
-
/**
|
|
32
|
-
* @see _.inRange
|
|
33
|
-
*/
|
|
34
|
-
inRange(
|
|
35
|
-
start: number,
|
|
36
|
-
end?: number
|
|
37
|
-
): LoDashExplicitWrapper<boolean>;
|
|
38
|
-
}
|
|
39
|
-
}
|
lodash/object/assign.d.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Assigns own enumerable properties of source objects to the destination
|
|
6
|
-
* object. Source objects are applied from left to right. Subsequent sources
|
|
7
|
-
* overwrite property assignments of previous sources.
|
|
8
|
-
*
|
|
9
|
-
* **Note:** This method mutates `object` and is loosely based on
|
|
10
|
-
* [`Object.assign`](https://mdn.io/Object/assign).
|
|
11
|
-
*
|
|
12
|
-
* @category Object
|
|
13
|
-
* @param object The destination object.
|
|
14
|
-
* @param [sources] The source objects.
|
|
15
|
-
* @returns Returns `object`.
|
|
16
|
-
* @example
|
|
17
|
-
*
|
|
18
|
-
* function Foo() {
|
|
19
|
-
* this.c = 3;
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* function Bar() {
|
|
23
|
-
* this.e = 5;
|
|
24
|
-
* }
|
|
25
|
-
*
|
|
26
|
-
* Foo.prototype.d = 4;
|
|
27
|
-
* Bar.prototype.f = 6;
|
|
28
|
-
*
|
|
29
|
-
* _.assign({ 'a': 1 }, new Foo, new Bar);
|
|
30
|
-
* // => { 'a': 1, 'c': 3, 'e': 5 }
|
|
31
|
-
*/
|
|
32
|
-
assign<TObject, TSource>(
|
|
33
|
-
object: TObject,
|
|
34
|
-
source: TSource
|
|
35
|
-
): TObject & TSource;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @see assign
|
|
39
|
-
*/
|
|
40
|
-
assign<TObject, TSource1, TSource2>(
|
|
41
|
-
object: TObject,
|
|
42
|
-
source1: TSource1,
|
|
43
|
-
source2: TSource2
|
|
44
|
-
): TObject & TSource1 & TSource2;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @see assign
|
|
48
|
-
*/
|
|
49
|
-
assign<TObject, TSource1, TSource2, TSource3>(
|
|
50
|
-
object: TObject,
|
|
51
|
-
source1: TSource1,
|
|
52
|
-
source2: TSource2,
|
|
53
|
-
source3: TSource3
|
|
54
|
-
): TObject & TSource1 & TSource2 & TSource3;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @see assign
|
|
58
|
-
*/
|
|
59
|
-
assign<TObject, TSource1, TSource2, TSource3, TSource4>(
|
|
60
|
-
object: TObject,
|
|
61
|
-
source1: TSource1,
|
|
62
|
-
source2: TSource2,
|
|
63
|
-
source3: TSource3,
|
|
64
|
-
source4: TSource4
|
|
65
|
-
): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @see _.assign
|
|
69
|
-
*/
|
|
70
|
-
assign<TObject>(object: TObject): TObject;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @see _.assign
|
|
74
|
-
*/
|
|
75
|
-
assign(
|
|
76
|
-
object: any,
|
|
77
|
-
...otherArgs: any[]
|
|
78
|
-
): any;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
82
|
-
/**
|
|
83
|
-
* @see _.assign
|
|
84
|
-
*/
|
|
85
|
-
assign<TSource>(
|
|
86
|
-
source: TSource
|
|
87
|
-
): LoDashImplicitWrapper<TValue & TSource>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @see assign
|
|
91
|
-
*/
|
|
92
|
-
assign<TSource1, TSource2>(
|
|
93
|
-
source1: TSource1,
|
|
94
|
-
source2: TSource2
|
|
95
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @see assign
|
|
99
|
-
*/
|
|
100
|
-
assign<TSource1, TSource2, TSource3>(
|
|
101
|
-
source1: TSource1,
|
|
102
|
-
source2: TSource2,
|
|
103
|
-
source3: TSource3
|
|
104
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @see assign
|
|
108
|
-
*/
|
|
109
|
-
assign<TSource1, TSource2, TSource3, TSource4>(
|
|
110
|
-
source1: TSource1,
|
|
111
|
-
source2: TSource2,
|
|
112
|
-
source3: TSource3,
|
|
113
|
-
source4: TSource4
|
|
114
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @see _.assign
|
|
118
|
-
*/
|
|
119
|
-
assign(): LoDashImplicitWrapper<TValue>;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @see _.assign
|
|
123
|
-
*/
|
|
124
|
-
assign(...otherArgs: any[]): LoDashImplicitWrapper<any>;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
128
|
-
/**
|
|
129
|
-
* @see _.assign
|
|
130
|
-
*/
|
|
131
|
-
assign<TSource>(
|
|
132
|
-
source: TSource
|
|
133
|
-
): LoDashExplicitWrapper<TValue & TSource>;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @see assign
|
|
137
|
-
*/
|
|
138
|
-
assign<TSource1, TSource2>(
|
|
139
|
-
source1: TSource1,
|
|
140
|
-
source2: TSource2
|
|
141
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @see assign
|
|
145
|
-
*/
|
|
146
|
-
assign<TSource1, TSource2, TSource3>(
|
|
147
|
-
source1: TSource1,
|
|
148
|
-
source2: TSource2,
|
|
149
|
-
source3: TSource3
|
|
150
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @see assign
|
|
154
|
-
*/
|
|
155
|
-
assign<TSource1, TSource2, TSource3, TSource4>(
|
|
156
|
-
source1: TSource1,
|
|
157
|
-
source2: TSource2,
|
|
158
|
-
source3: TSource3,
|
|
159
|
-
source4: TSource4
|
|
160
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* @see _.assign
|
|
164
|
-
*/
|
|
165
|
-
assign(): LoDashExplicitWrapper<TValue>;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @see _.assign
|
|
169
|
-
*/
|
|
170
|
-
assign(...otherArgs: any[]): LoDashExplicitWrapper<any>;
|
|
171
|
-
}
|
|
172
|
-
}
|
lodash/object/assignIn.d.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like `_.assign` except that it iterates over own and
|
|
6
|
-
* inherited source properties.
|
|
7
|
-
*
|
|
8
|
-
* **Note:** This method mutates `object`.
|
|
9
|
-
*
|
|
10
|
-
* @alias extend
|
|
11
|
-
* @category Object
|
|
12
|
-
* @param object The destination object.
|
|
13
|
-
* @param [sources] The source objects.
|
|
14
|
-
* @returns Returns `object`.
|
|
15
|
-
* @example
|
|
16
|
-
*
|
|
17
|
-
* function Foo() {
|
|
18
|
-
* this.b = 2;
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* function Bar() {
|
|
22
|
-
* this.d = 4;
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* Foo.prototype.c = 3;
|
|
26
|
-
* Bar.prototype.e = 5;
|
|
27
|
-
*
|
|
28
|
-
* _.assignIn({ 'a': 1 }, new Foo, new Bar);
|
|
29
|
-
* // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
|
|
30
|
-
*/
|
|
31
|
-
assignIn<TObject, TSource>(
|
|
32
|
-
object: TObject,
|
|
33
|
-
source: TSource
|
|
34
|
-
): TObject & TSource;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see assignIn
|
|
38
|
-
*/
|
|
39
|
-
assignIn<TObject, TSource1, TSource2>(
|
|
40
|
-
object: TObject,
|
|
41
|
-
source1: TSource1,
|
|
42
|
-
source2: TSource2
|
|
43
|
-
): TObject & TSource1 & TSource2;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see assignIn
|
|
47
|
-
*/
|
|
48
|
-
assignIn<TObject, TSource1, TSource2, TSource3>(
|
|
49
|
-
object: TObject,
|
|
50
|
-
source1: TSource1,
|
|
51
|
-
source2: TSource2,
|
|
52
|
-
source3: TSource3
|
|
53
|
-
): TObject & TSource1 & TSource2 & TSource3;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @see assignIn
|
|
57
|
-
*/
|
|
58
|
-
assignIn<TObject, TSource1, TSource2, TSource3, TSource4>(
|
|
59
|
-
object: TObject,
|
|
60
|
-
source1: TSource1,
|
|
61
|
-
source2: TSource2,
|
|
62
|
-
source3: TSource3,
|
|
63
|
-
source4: TSource4
|
|
64
|
-
): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @see _.assignIn
|
|
68
|
-
*/
|
|
69
|
-
assignIn<TObject>(object: TObject): TObject;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @see _.assignIn
|
|
73
|
-
*/
|
|
74
|
-
assignIn<TResult>(
|
|
75
|
-
object: any,
|
|
76
|
-
...otherArgs: any[]
|
|
77
|
-
): TResult;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
81
|
-
/**
|
|
82
|
-
* @see _.assignIn
|
|
83
|
-
*/
|
|
84
|
-
assignIn<TSource>(
|
|
85
|
-
source: TSource
|
|
86
|
-
): LoDashImplicitWrapper<TValue & TSource>;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @see assignIn
|
|
90
|
-
*/
|
|
91
|
-
assignIn<TSource1, TSource2>(
|
|
92
|
-
source1: TSource1,
|
|
93
|
-
source2: TSource2
|
|
94
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @see assignIn
|
|
98
|
-
*/
|
|
99
|
-
assignIn<TSource1, TSource2, TSource3>(
|
|
100
|
-
source1: TSource1,
|
|
101
|
-
source2: TSource2,
|
|
102
|
-
source3: TSource3
|
|
103
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @see assignIn
|
|
107
|
-
*/
|
|
108
|
-
assignIn<TSource1, TSource2, TSource3, TSource4>(
|
|
109
|
-
source1: TSource1,
|
|
110
|
-
source2: TSource2,
|
|
111
|
-
source3: TSource3,
|
|
112
|
-
source4: TSource4
|
|
113
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @see _.assignIn
|
|
117
|
-
*/
|
|
118
|
-
assignIn(): LoDashImplicitWrapper<TValue>;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @see _.assignIn
|
|
122
|
-
*/
|
|
123
|
-
assignIn<TResult>(...otherArgs: any[]): LoDashImplicitWrapper<TResult>;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
127
|
-
/**
|
|
128
|
-
* @see _.assignIn
|
|
129
|
-
*/
|
|
130
|
-
assignIn<TSource>(
|
|
131
|
-
source: TSource
|
|
132
|
-
): LoDashExplicitWrapper<TValue & TSource>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @see assignIn
|
|
136
|
-
*/
|
|
137
|
-
assignIn<TSource1, TSource2>(
|
|
138
|
-
source1: TSource1,
|
|
139
|
-
source2: TSource2
|
|
140
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @see assignIn
|
|
144
|
-
*/
|
|
145
|
-
assignIn<TSource1, TSource2, TSource3>(
|
|
146
|
-
source1: TSource1,
|
|
147
|
-
source2: TSource2,
|
|
148
|
-
source3: TSource3
|
|
149
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @see assignIn
|
|
153
|
-
*/
|
|
154
|
-
assignIn<TSource1, TSource2, TSource3, TSource4>(
|
|
155
|
-
source1: TSource1,
|
|
156
|
-
source2: TSource2,
|
|
157
|
-
source3: TSource3,
|
|
158
|
-
source4: TSource4
|
|
159
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @see _.assignIn
|
|
163
|
-
*/
|
|
164
|
-
assignIn(): LoDashExplicitWrapper<TValue>;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* @see _.assignIn
|
|
168
|
-
*/
|
|
169
|
-
assignIn(...otherArgs: any[]): LoDashExplicitWrapper<any>;
|
|
170
|
-
}
|
|
171
|
-
}
|