@types/lodash 4.14.100 → 4.14.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lodash/README.md +2 -2
- lodash/common/array.d.ts +3845 -0
- lodash/common/collection.d.ts +3091 -0
- lodash/common/common.d.ts +3 -3
- lodash/{date/now.d.ts → common/date.d.ts} +3 -1
- lodash/common/function.d.ts +1367 -0
- lodash/common/lang.d.ts +1937 -0
- lodash/common/math.d.ts +536 -0
- lodash/{number/random.d.ts → common/number.d.ts} +98 -1
- lodash/common/object.d.ts +3653 -0
- lodash/common/seq.d.ts +198 -0
- lodash/common/string.d.ts +1059 -0
- lodash/common/util.d.ts +1455 -0
- lodash/index.d.ts +11 -338
- lodash/package.json +2 -7
- lodash/array/chunk.d.ts +0 -37
- lodash/array/compact.d.ts +0 -27
- lodash/array/concat.d.ts +0 -39
- lodash/array/difference.d.ts +0 -37
- lodash/array/differenceBy.d.ts +0 -243
- lodash/array/differenceWith.d.ts +0 -132
- lodash/array/drop.d.ts +0 -27
- lodash/array/dropRight.d.ts +0 -30
- lodash/array/dropRightWhile.d.ts +0 -47
- lodash/array/dropWhile.d.ts +0 -47
- lodash/array/fill.d.ts +0 -124
- lodash/array/findIndex.d.ts +0 -50
- lodash/array/findLastIndex.d.ts +0 -49
- lodash/array/first.d.ts +0 -23
- lodash/array/flatten.d.ts +0 -43
- lodash/array/flattenDeep.d.ts +0 -26
- lodash/array/flattenDepth.d.ts +0 -27
- lodash/array/fromPairs.d.ts +0 -59
- lodash/array/head.d.ts +0 -28
- lodash/array/indexOf.d.ts +0 -53
- lodash/array/initial.d.ts +0 -26
- lodash/array/intersection.d.ts +0 -33
- lodash/array/intersectionBy.d.ts +0 -134
- lodash/array/intersectionWith.d.ts +0 -133
- lodash/array/join.d.ts +0 -30
- lodash/array/last.d.ts +0 -26
- lodash/array/lastIndexOf.d.ts +0 -40
- lodash/array/nth.d.ts +0 -36
- lodash/array/pull.d.ts +0 -46
- lodash/array/pullAll.d.ts +0 -54
- lodash/array/pullAllBy.d.ts +0 -77
- lodash/array/pullAllWith.d.ts +0 -77
- lodash/array/pullAt.d.ts +0 -34
- lodash/array/remove.d.ts +0 -49
- lodash/array/reverse.d.ts +0 -27
- lodash/array/slice.d.ts +0 -40
- lodash/array/sortedIndex.d.ts +0 -45
- lodash/array/sortedIndexBy.d.ts +0 -97
- lodash/array/sortedIndexOf.d.ts +0 -42
- lodash/array/sortedLastIndex.d.ts +0 -43
- lodash/array/sortedLastIndexBy.d.ts +0 -48
- lodash/array/sortedLastIndexOf.d.ts +0 -42
- lodash/array/sortedUniq.d.ts +0 -34
- lodash/array/sortedUniqBy.d.ts +0 -66
- lodash/array/tail.d.ts +0 -26
- lodash/array/take.d.ts +0 -36
- lodash/array/takeRight.d.ts +0 -36
- lodash/array/takeRightWhile.d.ts +0 -47
- lodash/array/takeWhile.d.ts +0 -47
- lodash/array/union.d.ts +0 -33
- lodash/array/unionBy.d.ts +0 -164
- lodash/array/unionWith.d.ts +0 -103
- lodash/array/uniq.d.ts +0 -36
- lodash/array/uniqBy.d.ts +0 -71
- lodash/array/uniqWith.d.ts +0 -45
- lodash/array/unzip.d.ts +0 -27
- lodash/array/unzipWith.d.ts +0 -60
- lodash/array/without.d.ts +0 -36
- lodash/array/xor.d.ts +0 -32
- lodash/array/xorBy.d.ts +0 -104
- lodash/array/xorWith.d.ts +0 -103
- lodash/array/zip.d.ts +0 -129
- lodash/array/zipObject.d.ts +0 -58
- lodash/array/zipObjectDeep.d.ts +0 -36
- lodash/array/zipWith.d.ts +0 -187
- lodash/collection/countBy.d.ts +0 -121
- lodash/collection/each.d.ts +0 -40
- lodash/collection/eachRight.d.ts +0 -40
- lodash/collection/every.d.ts +0 -85
- lodash/collection/filter.d.ts +0 -143
- lodash/collection/find.d.ts +0 -131
- lodash/collection/findLast.d.ts +0 -121
- lodash/collection/flatMap.d.ts +0 -164
- lodash/collection/flatMapDeep.d.ts +0 -164
- lodash/collection/flatMapDepth.d.ts +0 -180
- lodash/collection/forEach.d.ts +0 -113
- lodash/collection/forEachRight.d.ts +0 -108
- lodash/collection/groupBy.d.ts +0 -121
- lodash/collection/includes.d.ts +0 -41
- lodash/collection/invokeMap.d.ts +0 -58
- lodash/collection/keyBy.d.ts +0 -121
- lodash/collection/map.d.ts +0 -180
- lodash/collection/orderBy.d.ts +0 -192
- lodash/collection/partition.d.ts +0 -72
- lodash/collection/reduce.d.ts +0 -220
- lodash/collection/reduceRight.d.ts +0 -217
- lodash/collection/reject.d.ts +0 -86
- lodash/collection/sample.d.ts +0 -74
- lodash/collection/sampleSize.d.ts +0 -60
- lodash/collection/shuffle.d.ts +0 -41
- lodash/collection/size.d.ts +0 -27
- lodash/collection/some.d.ts +0 -85
- lodash/collection/sortBy.d.ts +0 -84
- lodash/function/after.d.ts +0 -30
- lodash/function/ary.d.ts +0 -30
- lodash/function/before.d.ts +0 -32
- lodash/function/bind.d.ts +0 -50
- lodash/function/bindKey.d.ts +0 -51
- lodash/function/curry.d.ts +0 -203
- lodash/function/curryRight.d.ts +0 -132
- lodash/function/debounce.d.ts +0 -67
- lodash/function/defer.d.ts +0 -31
- lodash/function/delay.d.ts +0 -38
- lodash/function/flip.d.ts +0 -28
- lodash/function/memoize.d.ts +0 -37
- lodash/function/negate.d.ts +0 -20
- lodash/function/once.d.ts +0 -20
- lodash/function/overArgs.d.ts +0 -31
- lodash/function/partial.d.ts +0 -159
- lodash/function/partialRight.d.ts +0 -150
- lodash/function/rearg.d.ts +0 -28
- lodash/function/rest.d.ts +0 -33
- lodash/function/spread.d.ts +0 -44
- lodash/function/throttle.d.ts +0 -58
- lodash/function/unary.d.ts +0 -32
- lodash/function/wrap.d.ts +0 -61
- lodash/lang/castArray.d.ts +0 -26
- lodash/lang/clone.d.ts +0 -31
- lodash/lang/cloneDeep.d.ts +0 -26
- lodash/lang/cloneDeepWith.d.ts +0 -51
- lodash/lang/cloneWith.d.ts +0 -74
- lodash/lang/conformsTo.d.ts +0 -31
- lodash/lang/eq.d.ts +0 -55
- lodash/lang/gt.d.ts +0 -30
- lodash/lang/gte.d.ts +0 -30
- lodash/lang/isArguments.d.ts +0 -26
- lodash/lang/isArray.d.ts +0 -31
- lodash/lang/isArrayBuffer.d.ts +0 -26
- lodash/lang/isArrayLike.d.ts +0 -52
- lodash/lang/isArrayLikeObject.d.ts +0 -53
- lodash/lang/isBoolean.d.ts +0 -26
- lodash/lang/isBuffer.d.ts +0 -26
- lodash/lang/isDate.d.ts +0 -26
- lodash/lang/isElement.d.ts +0 -26
- lodash/lang/isEmpty.d.ts +0 -27
- lodash/lang/isEqual.d.ts +0 -52
- lodash/lang/isEqualWith.d.ts +0 -61
- lodash/lang/isError.d.ts +0 -27
- lodash/lang/isFinite.d.ts +0 -28
- lodash/lang/isFunction.d.ts +0 -26
- lodash/lang/isInteger.d.ts +0 -42
- lodash/lang/isLength.d.ts +0 -42
- lodash/lang/isMap.d.ts +0 -26
- lodash/lang/isMatch.d.ts +0 -42
- lodash/lang/isMatchWith.d.ts +0 -51
- lodash/lang/isNaN.d.ts +0 -28
- lodash/lang/isNative.d.ts +0 -26
- lodash/lang/isNil.d.ts +0 -37
- lodash/lang/isNull.d.ts +0 -26
- lodash/lang/isNumber.d.ts +0 -28
- lodash/lang/isObject.d.ts +0 -27
- lodash/lang/isObjectLike.d.ts +0 -41
- lodash/lang/isPlainObject.d.ts +0 -29
- lodash/lang/isRegExp.d.ts +0 -26
- lodash/lang/isSafeInteger.d.ts +0 -43
- lodash/lang/isSet.d.ts +0 -26
- lodash/lang/isString.d.ts +0 -26
- lodash/lang/isSymbol.d.ts +0 -34
- lodash/lang/isTypedArray.d.ts +0 -26
- lodash/lang/isUndefined.d.ts +0 -26
- lodash/lang/isWeakMap.d.ts +0 -26
- lodash/lang/isWeakSet.d.ts +0 -26
- lodash/lang/lt.d.ts +0 -30
- lodash/lang/lte.d.ts +0 -30
- lodash/lang/toArray.d.ts +0 -46
- lodash/lang/toFinite.d.ts +0 -41
- lodash/lang/toInteger.d.ts +0 -42
- lodash/lang/toLength.d.ts +0 -43
- lodash/lang/toNumber.d.ts +0 -40
- lodash/lang/toPlainObject.d.ts +0 -27
- lodash/lang/toSafeInteger.d.ts +0 -41
- lodash/lang/toString.d.ts +0 -24
- lodash/math/add.d.ts +0 -30
- lodash/math/ceil.d.ts +0 -30
- lodash/math/divide.d.ts +0 -30
- lodash/math/floor.d.ts +0 -30
- lodash/math/max.d.ts +0 -30
- lodash/math/maxBy.d.ts +0 -49
- lodash/math/mean.d.ts +0 -33
- lodash/math/meanBy.d.ts +0 -41
- lodash/math/min.d.ts +0 -30
- lodash/math/minBy.d.ts +0 -49
- lodash/math/multiply.d.ts +0 -29
- lodash/math/round.d.ts +0 -30
- lodash/math/subtract.d.ts +0 -39
- lodash/math/sum.d.ts +0 -31
- lodash/math/sumBy.d.ts +0 -53
- lodash/number/clamp.d.ts +0 -56
- lodash/number/inRange.d.ts +0 -39
- lodash/object/assign.d.ts +0 -172
- lodash/object/assignIn.d.ts +0 -171
- lodash/object/assignInWith.d.ts +0 -183
- lodash/object/assignWith.d.ts +0 -180
- lodash/object/at.d.ts +0 -61
- lodash/object/create.d.ts +0 -31
- lodash/object/defaults.d.ts +0 -155
- lodash/object/defaultsDeep.d.ts +0 -28
- lodash/object/entries.d.ts +0 -38
- lodash/object/entriesIn.d.ts +0 -38
- lodash/object/extend.d.ts +0 -147
- lodash/object/extendWith.d.ts +0 -159
- lodash/object/findKey.d.ts +0 -47
- lodash/object/findLastKey.d.ts +0 -46
- lodash/object/forIn.d.ts +0 -37
- lodash/object/forInRight.d.ts +0 -35
- lodash/object/forOwn.d.ts +0 -37
- lodash/object/forOwnRight.d.ts +0 -35
- lodash/object/functions.d.ts +0 -39
- lodash/object/functionsIn.d.ts +0 -39
- lodash/object/get.d.ts +0 -238
- lodash/object/has.d.ts +0 -47
- lodash/object/hasIn.d.ts +0 -46
- lodash/object/invert.d.ts +0 -30
- lodash/object/invertBy.d.ts +0 -62
- lodash/object/invoke.d.ts +0 -33
- lodash/object/keys.d.ts +0 -28
- lodash/object/keysIn.d.ts +0 -28
- lodash/object/mapKeys.d.ts +0 -86
- lodash/object/mapValues.d.ts +0 -189
- lodash/object/merge.d.ts +0 -156
- lodash/object/mergeWith.d.ts +0 -133
- lodash/object/omit.d.ts +0 -69
- lodash/object/omitBy.d.ts +0 -45
- lodash/object/pick.d.ts +0 -68
- lodash/object/pickBy.d.ts +0 -44
- lodash/object/result.d.ts +0 -39
- lodash/object/set.d.ts +0 -65
- lodash/object/setWith.d.ts +0 -71
- lodash/object/toPairs.d.ts +0 -41
- lodash/object/toPairsIn.d.ts +0 -41
- lodash/object/transform.d.ts +0 -163
- lodash/object/unset.d.ts +0 -32
- lodash/object/update.d.ts +0 -39
- lodash/object/updateWith.d.ts +0 -83
- lodash/object/values.d.ts +0 -56
- lodash/object/valuesIn.d.ts +0 -41
- lodash/seq/chain.d.ts +0 -26
- lodash/seq/prototype.at.d.ts +0 -12
- lodash/seq/prototype.chain.d.ts +0 -26
- lodash/seq/prototype.commit.d.ts +0 -11
- lodash/seq/prototype.plant.d.ts +0 -18
- lodash/seq/prototype.reverse.d.ts +0 -14
- lodash/seq/prototype.toJSON.d.ts +0 -9
- lodash/seq/prototype.toString.d.ts +0 -11
- lodash/seq/prototype.value.d.ts +0 -13
- lodash/seq/prototype.valueOf.d.ts +0 -9
- lodash/seq/tap.d.ts +0 -28
- lodash/seq/thru.d.ts +0 -31
- lodash/string/camelCase.d.ts +0 -26
- lodash/string/capitalize.d.ts +0 -26
- lodash/string/deburr.d.ts +0 -27
- lodash/string/endsWith.d.ts +0 -38
- lodash/string/escape.d.ts +0 -37
- lodash/string/escapeRegExp.d.ts +0 -27
- lodash/string/kebabCase.d.ts +0 -26
- lodash/string/lowerCase.d.ts +0 -26
- lodash/string/lowerFirst.d.ts +0 -26
- lodash/string/pad.d.ts +0 -39
- lodash/string/padEnd.d.ts +0 -39
- lodash/string/padStart.d.ts +0 -39
- lodash/string/parseInt.d.ts +0 -33
- lodash/string/repeat.d.ts +0 -32
- lodash/string/replace.d.ts +0 -59
- lodash/string/snakeCase.d.ts +0 -26
- lodash/string/split.d.ts +0 -56
- lodash/string/startCase.d.ts +0 -26
- lodash/string/startsWith.d.ts +0 -38
- lodash/string/template.d.ts +0 -61
- lodash/string/toLower.d.ts +0 -26
- lodash/string/toUpper.d.ts +0 -26
- lodash/string/trim.d.ts +0 -44
- lodash/string/trimEnd.d.ts +0 -44
- lodash/string/trimStart.d.ts +0 -44
- lodash/string/truncate.d.ts +0 -40
- lodash/string/unescape.d.ts +0 -30
- lodash/string/upperCase.d.ts +0 -26
- lodash/string/upperFirst.d.ts +0 -26
- lodash/string/words.d.ts +0 -44
- lodash/util/attempt.d.ts +0 -27
- lodash/util/bindAll.d.ts +0 -28
- lodash/util/cond.d.ts +0 -33
- lodash/util/conforms.d.ts +0 -28
- lodash/util/constant.d.ts +0 -26
- lodash/util/defaultTo.d.ts +0 -53
- lodash/util/flow.d.ts +0 -171
- lodash/util/flowRight.d.ts +0 -156
- lodash/util/identity.d.ts +0 -31
- lodash/util/iteratee.d.ts +0 -58
- lodash/util/matches.d.ts +0 -36
- lodash/util/matchesProperty.d.ts +0 -59
- lodash/util/method.d.ts +0 -31
- lodash/util/methodOf.d.ts +0 -35
- lodash/util/mixin.d.ts +0 -69
- lodash/util/noConflict.d.ts +0 -25
- lodash/util/noop.d.ts +0 -25
- lodash/util/nthArg.d.ts +0 -26
- lodash/util/over.d.ts +0 -33
- lodash/util/overEvery.d.ts +0 -27
- lodash/util/overSome.d.ts +0 -27
- lodash/util/property.d.ts +0 -26
- lodash/util/propertyOf.d.ts +0 -27
- lodash/util/range.d.ts +0 -56
- lodash/util/rangeRight.d.ts +0 -77
- lodash/util/runInContext.d.ts +0 -19
- lodash/util/stubArray.d.ts +0 -25
- lodash/util/stubFalse.d.ts +0 -25
- lodash/util/stubObject.d.ts +0 -25
- lodash/util/stubString.d.ts +0 -25
- lodash/util/stubTrue.d.ts +0 -25
- lodash/util/times.d.ts +0 -50
- lodash/util/toPath.d.ts +0 -43
- lodash/util/uniqueId.d.ts +0 -26
lodash/collection/reduce.d.ts
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Reduces a collection to a value which is the accumulated result of running each
|
|
6
|
-
* element in the collection through the callback, where each successive callback execution
|
|
7
|
-
* consumes the return value of the previous execution. If accumulator is not provided the
|
|
8
|
-
* first element of the collection will be used as the initial accumulator value. The callback
|
|
9
|
-
* is bound to thisArg and invoked with four arguments; (accumulator, value, index|key, collection).
|
|
10
|
-
* @param collection The collection to iterate over.
|
|
11
|
-
* @param callback The function called per iteration.
|
|
12
|
-
* @param accumulator Initial value of the accumulator.
|
|
13
|
-
* @return Returns the accumulated value.
|
|
14
|
-
**/
|
|
15
|
-
reduce<T, TResult>(
|
|
16
|
-
collection: T[] | null | undefined,
|
|
17
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
18
|
-
accumulator: TResult
|
|
19
|
-
): TResult;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @see _.reduce
|
|
23
|
-
**/
|
|
24
|
-
reduce<T, TResult>(
|
|
25
|
-
collection: List<T> | null | undefined,
|
|
26
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
27
|
-
accumulator: TResult
|
|
28
|
-
): TResult;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @see _.reduce
|
|
32
|
-
**/
|
|
33
|
-
reduce<T extends object, TResult>(
|
|
34
|
-
collection: T | null | undefined,
|
|
35
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
36
|
-
accumulator: TResult
|
|
37
|
-
): TResult;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @see _.reduce
|
|
41
|
-
**/
|
|
42
|
-
reduce<T, TResult>(
|
|
43
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
44
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
45
|
-
accumulator: TResult
|
|
46
|
-
): TResult;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @see _.reduce
|
|
50
|
-
**/
|
|
51
|
-
reduce<T, TResult>(
|
|
52
|
-
collection: T[] | null | undefined,
|
|
53
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
54
|
-
): TResult | undefined;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @see _.reduce
|
|
58
|
-
**/
|
|
59
|
-
reduce<T, TResult>(
|
|
60
|
-
collection: List<T> | null | undefined,
|
|
61
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
62
|
-
): TResult | undefined;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @see _.reduce
|
|
66
|
-
**/
|
|
67
|
-
reduce<T extends object, TResult>(
|
|
68
|
-
collection: T | null | undefined,
|
|
69
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
70
|
-
): TResult | undefined;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @see _.reduce
|
|
74
|
-
**/
|
|
75
|
-
reduce<T, TResult>(
|
|
76
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
77
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
78
|
-
): TResult | undefined;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
82
|
-
/**
|
|
83
|
-
* @see _.reduce
|
|
84
|
-
**/
|
|
85
|
-
reduce<T, TResult>(
|
|
86
|
-
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
87
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
88
|
-
accumulator: TResult
|
|
89
|
-
): TResult;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @see _.reduce
|
|
93
|
-
**/
|
|
94
|
-
reduce<T, TResult>(
|
|
95
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
96
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
97
|
-
accumulator: TResult
|
|
98
|
-
): TResult;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @see _.reduce
|
|
102
|
-
**/
|
|
103
|
-
reduce<T extends object, TResult>(
|
|
104
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
105
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
106
|
-
accumulator: TResult
|
|
107
|
-
): TResult;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @see _.reduce
|
|
111
|
-
**/
|
|
112
|
-
reduce<T, TResult>(
|
|
113
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
114
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
115
|
-
accumulator: TResult
|
|
116
|
-
): TResult;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @see _.reduce
|
|
120
|
-
**/
|
|
121
|
-
reduce<T, TResult>(
|
|
122
|
-
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
123
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
124
|
-
): TResult | undefined;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @see _.reduce
|
|
128
|
-
**/
|
|
129
|
-
reduce<T, TResult>(
|
|
130
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
131
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
132
|
-
): TResult | undefined;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @see _.reduce
|
|
136
|
-
**/
|
|
137
|
-
reduce<T extends object, TResult>(
|
|
138
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
139
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
140
|
-
): TResult | undefined;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @see _.reduce
|
|
144
|
-
**/
|
|
145
|
-
reduce<T, TResult>(
|
|
146
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
147
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
148
|
-
): TResult | undefined;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
152
|
-
/**
|
|
153
|
-
* @see _.reduce
|
|
154
|
-
**/
|
|
155
|
-
reduce<T, TResult>(
|
|
156
|
-
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
157
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
158
|
-
accumulator: TResult
|
|
159
|
-
): LoDashExplicitWrapper<TResult>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @see _.reduce
|
|
163
|
-
**/
|
|
164
|
-
reduce<T, TResult>(
|
|
165
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
166
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
167
|
-
accumulator: TResult
|
|
168
|
-
): LoDashExplicitWrapper<TResult>;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @see _.reduce
|
|
172
|
-
**/
|
|
173
|
-
reduce<T extends object, TResult>(
|
|
174
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
175
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
176
|
-
accumulator: TResult
|
|
177
|
-
): LoDashExplicitWrapper<TResult>;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @see _.reduce
|
|
181
|
-
**/
|
|
182
|
-
reduce<T, TResult>(
|
|
183
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
184
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
185
|
-
accumulator: TResult
|
|
186
|
-
): LoDashExplicitWrapper<TResult>;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @see _.reduce
|
|
190
|
-
**/
|
|
191
|
-
reduce<T, TResult>(
|
|
192
|
-
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
193
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
194
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @see _.reduce
|
|
198
|
-
**/
|
|
199
|
-
reduce<T, TResult>(
|
|
200
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
201
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
202
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @see _.reduce
|
|
206
|
-
**/
|
|
207
|
-
reduce<T extends object, TResult>(
|
|
208
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
209
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
210
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @see _.reduce
|
|
214
|
-
**/
|
|
215
|
-
reduce<T, TResult>(
|
|
216
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
217
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
218
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like _.reduce except that it iterates over elements of a collection from
|
|
6
|
-
* right to left.
|
|
7
|
-
* @param collection The collection to iterate over.
|
|
8
|
-
* @param callback The function called per iteration.
|
|
9
|
-
* @param accumulator Initial value of the accumulator.
|
|
10
|
-
* @return The accumulated value.
|
|
11
|
-
**/
|
|
12
|
-
reduceRight<T, TResult>(
|
|
13
|
-
collection: T[] | null | undefined,
|
|
14
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
15
|
-
accumulator: TResult
|
|
16
|
-
): TResult;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.reduceRight
|
|
20
|
-
**/
|
|
21
|
-
reduceRight<T, TResult>(
|
|
22
|
-
collection: List<T> | null | undefined,
|
|
23
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
24
|
-
accumulator: TResult
|
|
25
|
-
): TResult;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @see _.reduceRight
|
|
29
|
-
**/
|
|
30
|
-
reduceRight<T extends object, TResult>(
|
|
31
|
-
collection: T | null | undefined,
|
|
32
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
33
|
-
accumulator: TResult
|
|
34
|
-
): TResult;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see _.reduceRight
|
|
38
|
-
**/
|
|
39
|
-
reduceRight<T, TResult>(
|
|
40
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
41
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
42
|
-
accumulator: TResult
|
|
43
|
-
): TResult;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see _.reduceRight
|
|
47
|
-
**/
|
|
48
|
-
reduceRight<T, TResult>(
|
|
49
|
-
collection: T[] | null | undefined,
|
|
50
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
51
|
-
): TResult | undefined;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @see _.reduceRight
|
|
55
|
-
**/
|
|
56
|
-
reduceRight<T, TResult>(
|
|
57
|
-
collection: List<T> | null | undefined,
|
|
58
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
59
|
-
): TResult | undefined;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @see _.reduceRight
|
|
63
|
-
**/
|
|
64
|
-
reduceRight<T extends object, TResult>(
|
|
65
|
-
collection: T | null | undefined,
|
|
66
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
67
|
-
): TResult | undefined;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @see _.reduceRight
|
|
71
|
-
**/
|
|
72
|
-
reduceRight<T, TResult>(
|
|
73
|
-
collection: NumericDictionary<T> | null | undefined,
|
|
74
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
75
|
-
): TResult | undefined;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
79
|
-
/**
|
|
80
|
-
* @see _.reduceRight
|
|
81
|
-
**/
|
|
82
|
-
reduceRight<T, TResult>(
|
|
83
|
-
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
84
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
85
|
-
accumulator: TResult
|
|
86
|
-
): TResult;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @see _.reduceRight
|
|
90
|
-
**/
|
|
91
|
-
reduceRight<T, TResult>(
|
|
92
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
93
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
94
|
-
accumulator: TResult
|
|
95
|
-
): TResult;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @see _.reduceRight
|
|
99
|
-
**/
|
|
100
|
-
reduceRight<T extends object, TResult>(
|
|
101
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
102
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
103
|
-
accumulator: TResult
|
|
104
|
-
): TResult;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @see _.reduceRight
|
|
108
|
-
**/
|
|
109
|
-
reduceRight<T, TResult>(
|
|
110
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
111
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
112
|
-
accumulator: TResult
|
|
113
|
-
): TResult;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @see _.reduceRight
|
|
117
|
-
**/
|
|
118
|
-
reduceRight<T, TResult>(
|
|
119
|
-
this: LoDashImplicitWrapper<T[] | null | undefined>,
|
|
120
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
121
|
-
): TResult | undefined;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @see _.reduceRight
|
|
125
|
-
**/
|
|
126
|
-
reduceRight<T, TResult>(
|
|
127
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
128
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
129
|
-
): TResult | undefined;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @see _.reduceRight
|
|
133
|
-
**/
|
|
134
|
-
reduceRight<T extends object, TResult>(
|
|
135
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
136
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
137
|
-
): TResult | undefined;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @see _.reduceRight
|
|
141
|
-
**/
|
|
142
|
-
reduceRight<T, TResult>(
|
|
143
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
144
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
145
|
-
): TResult | undefined;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
149
|
-
/**
|
|
150
|
-
* @see _.reduceRight
|
|
151
|
-
**/
|
|
152
|
-
reduceRight<T, TResult>(
|
|
153
|
-
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
154
|
-
callback: MemoListIterator<T, TResult, T[]>,
|
|
155
|
-
accumulator: TResult
|
|
156
|
-
): LoDashExplicitWrapper<TResult>;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @see _.reduceRight
|
|
160
|
-
**/
|
|
161
|
-
reduceRight<T, TResult>(
|
|
162
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
163
|
-
callback: MemoListIterator<T, TResult, List<T>>,
|
|
164
|
-
accumulator: TResult
|
|
165
|
-
): LoDashExplicitWrapper<TResult>;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @see _.reduceRight
|
|
169
|
-
**/
|
|
170
|
-
reduceRight<T extends object, TResult>(
|
|
171
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
172
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>,
|
|
173
|
-
accumulator: TResult
|
|
174
|
-
): LoDashExplicitWrapper<TResult>;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @see _.reduceRight
|
|
178
|
-
**/
|
|
179
|
-
reduceRight<T, TResult>(
|
|
180
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
181
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>,
|
|
182
|
-
accumulator: TResult
|
|
183
|
-
): LoDashExplicitWrapper<TResult>;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @see _.reduceRight
|
|
187
|
-
**/
|
|
188
|
-
reduceRight<T, TResult>(
|
|
189
|
-
this: LoDashExplicitWrapper<T[] | null | undefined>,
|
|
190
|
-
callback: MemoListIterator<T, TResult, T[]>
|
|
191
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* @see _.reduceRight
|
|
195
|
-
**/
|
|
196
|
-
reduceRight<T, TResult>(
|
|
197
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
198
|
-
callback: MemoListIterator<T, TResult, List<T>>
|
|
199
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @see _.reduceRight
|
|
203
|
-
**/
|
|
204
|
-
reduceRight<T extends object, TResult>(
|
|
205
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
206
|
-
callback: MemoObjectIterator<T[keyof T], TResult, T>
|
|
207
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @see _.reduceRight
|
|
211
|
-
**/
|
|
212
|
-
reduceRight<T, TResult>(
|
|
213
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
214
|
-
callback: MemoListIterator<T, TResult, NumericDictionary<T>>
|
|
215
|
-
): LoDashExplicitWrapper<TResult | undefined>;
|
|
216
|
-
}
|
|
217
|
-
}
|
lodash/collection/reject.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* The opposite of _.filter; this method returns the elements of collection that predicate does not return
|
|
6
|
-
* truthy for.
|
|
7
|
-
*
|
|
8
|
-
* @param collection The collection to iterate over.
|
|
9
|
-
* @param predicate The function invoked per iteration.
|
|
10
|
-
* @param thisArg The this binding of predicate.
|
|
11
|
-
* @return Returns the new filtered array.
|
|
12
|
-
*/
|
|
13
|
-
reject(
|
|
14
|
-
collection: string | null | undefined,
|
|
15
|
-
predicate?: StringIterator<boolean>
|
|
16
|
-
): string[];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.reject
|
|
20
|
-
*/
|
|
21
|
-
reject<T>(
|
|
22
|
-
collection: List<T> | null | undefined,
|
|
23
|
-
predicate?: ListIterateeCustom<T, boolean>
|
|
24
|
-
): T[];
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @see _.reject
|
|
28
|
-
*/
|
|
29
|
-
reject<T extends object>(
|
|
30
|
-
collection: T | null | undefined,
|
|
31
|
-
predicate?: ObjectIterateeCustom<T, boolean>
|
|
32
|
-
): Array<T[keyof T]>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
36
|
-
/**
|
|
37
|
-
* @see _.reject
|
|
38
|
-
*/
|
|
39
|
-
reject(
|
|
40
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
41
|
-
predicate?: StringIterator<boolean>
|
|
42
|
-
): LoDashImplicitWrapper<string[]>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @see _.reject
|
|
46
|
-
*/
|
|
47
|
-
reject<T>(
|
|
48
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
49
|
-
predicate?: ListIterateeCustom<T, boolean>
|
|
50
|
-
): LoDashImplicitWrapper<T[]>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @see _.reject
|
|
54
|
-
*/
|
|
55
|
-
reject<T extends object>(
|
|
56
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
57
|
-
predicate?: ObjectIterateeCustom<T, boolean>
|
|
58
|
-
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
62
|
-
/**
|
|
63
|
-
* @see _.reject
|
|
64
|
-
*/
|
|
65
|
-
reject(
|
|
66
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
67
|
-
predicate?: StringIterator<boolean>
|
|
68
|
-
): LoDashExplicitWrapper<string[]>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @see _.reject
|
|
72
|
-
*/
|
|
73
|
-
reject<T>(
|
|
74
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
75
|
-
predicate?: ListIterateeCustom<T, boolean>
|
|
76
|
-
): LoDashExplicitWrapper<T[]>;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @see _.reject
|
|
80
|
-
*/
|
|
81
|
-
reject<T extends object>(
|
|
82
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
83
|
-
predicate?: ObjectIterateeCustom<T, boolean>
|
|
84
|
-
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
85
|
-
}
|
|
86
|
-
}
|
lodash/collection/sample.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Gets a random element from collection.
|
|
6
|
-
*
|
|
7
|
-
* @param collection The collection to sample.
|
|
8
|
-
* @return Returns the random element.
|
|
9
|
-
*/
|
|
10
|
-
sample<T>(
|
|
11
|
-
collection: List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined
|
|
12
|
-
): T | undefined;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @see _.sample
|
|
16
|
-
*/
|
|
17
|
-
sample<T extends object>(
|
|
18
|
-
collection: T
|
|
19
|
-
): T[keyof T];
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @see _.sample
|
|
23
|
-
*/
|
|
24
|
-
sample<T extends object>(
|
|
25
|
-
collection: T | null | undefined
|
|
26
|
-
): T[keyof T] | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
30
|
-
/**
|
|
31
|
-
* @see _.sample
|
|
32
|
-
*/
|
|
33
|
-
sample<T>(
|
|
34
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>
|
|
35
|
-
): T | undefined;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @see _.sample
|
|
39
|
-
*/
|
|
40
|
-
sample<T extends object>(
|
|
41
|
-
this: LoDashImplicitWrapper<T>,
|
|
42
|
-
): T[keyof T];
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @see _.sample
|
|
46
|
-
*/
|
|
47
|
-
sample<T extends object>(
|
|
48
|
-
this: LoDashImplicitWrapper<T | null | undefined>
|
|
49
|
-
): T[keyof T] | undefined;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
53
|
-
/**
|
|
54
|
-
* @see _.sample
|
|
55
|
-
*/
|
|
56
|
-
sample<T>(
|
|
57
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>
|
|
58
|
-
): LoDashExplicitWrapper<T | undefined>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @see _.sample
|
|
62
|
-
*/
|
|
63
|
-
sample<T extends object>(
|
|
64
|
-
this: LoDashExplicitWrapper<T>,
|
|
65
|
-
): LoDashExplicitWrapper<T[keyof T]>;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @see _.sample
|
|
69
|
-
*/
|
|
70
|
-
sample<T extends object>(
|
|
71
|
-
this: LoDashExplicitWrapper<T | null | undefined>
|
|
72
|
-
): LoDashExplicitWrapper<T[keyof T] | undefined>;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Gets n random elements at unique keys from collection up to the size of collection.
|
|
6
|
-
*
|
|
7
|
-
* @param collection The collection to sample.
|
|
8
|
-
* @param n The number of elements to sample.
|
|
9
|
-
* @return Returns the random elements.
|
|
10
|
-
*/
|
|
11
|
-
sampleSize<T>(
|
|
12
|
-
collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
|
|
13
|
-
n?: number
|
|
14
|
-
): T[];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @see _.sampleSize
|
|
18
|
-
*/
|
|
19
|
-
sampleSize<T extends object>(
|
|
20
|
-
collection: T | null | undefined,
|
|
21
|
-
n?: number
|
|
22
|
-
): Array<T[keyof T]>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
26
|
-
/**
|
|
27
|
-
* @see _.sampleSize
|
|
28
|
-
*/
|
|
29
|
-
sampleSize<T>(
|
|
30
|
-
this: LoDashImplicitWrapper<List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined>,
|
|
31
|
-
n?: number
|
|
32
|
-
): LoDashImplicitWrapper<T[]>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @see _.sampleSize
|
|
36
|
-
*/
|
|
37
|
-
sampleSize<T extends object>(
|
|
38
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
39
|
-
n?: number
|
|
40
|
-
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
44
|
-
/**
|
|
45
|
-
* @see _.sampleSize
|
|
46
|
-
*/
|
|
47
|
-
sampleSize<T>(
|
|
48
|
-
this: LoDashExplicitWrapper<List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined>,
|
|
49
|
-
n?: number
|
|
50
|
-
): LoDashExplicitWrapper<T[]>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @see _.sampleSize
|
|
54
|
-
*/
|
|
55
|
-
sampleSize<T extends object>(
|
|
56
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
57
|
-
n?: number
|
|
58
|
-
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
59
|
-
}
|
|
60
|
-
}
|
lodash/collection/shuffle.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.
|
|
6
|
-
*
|
|
7
|
-
* @param collection The collection to shuffle.
|
|
8
|
-
* @return Returns the new shuffled array.
|
|
9
|
-
*/
|
|
10
|
-
shuffle<T>(collection: List<T> | null | undefined): T[];
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @see _.shuffle
|
|
14
|
-
*/
|
|
15
|
-
shuffle<T extends object>(collection: T | null | undefined): Array<T[keyof T]>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
19
|
-
/**
|
|
20
|
-
* @see _.shuffle
|
|
21
|
-
*/
|
|
22
|
-
shuffle<T>(this: LoDashImplicitWrapper<List<T> | null | undefined>): LoDashImplicitWrapper<T[]>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @see _.shuffle
|
|
26
|
-
*/
|
|
27
|
-
shuffle<T extends object>(this: LoDashImplicitWrapper<T | null | undefined>): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
31
|
-
/**
|
|
32
|
-
* @see _.shuffle
|
|
33
|
-
*/
|
|
34
|
-
shuffle<T>(this: LoDashExplicitWrapper<List<T> | null | undefined>): LoDashExplicitWrapper<T[]>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see _.shuffle
|
|
38
|
-
*/
|
|
39
|
-
shuffle<T extends object>(this: LoDashExplicitWrapper<T | null | undefined>): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
|
40
|
-
}
|
|
41
|
-
}
|