@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
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like _.partial except that partial arguments are appended to those provided
|
|
6
|
-
* to the new function.
|
|
7
|
-
* @param func The function to partially apply arguments to.
|
|
8
|
-
* @param args Arguments to be partially applied.
|
|
9
|
-
* @return The new partially applied function.
|
|
10
|
-
**/
|
|
11
|
-
partialRight: PartialRight;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
15
|
-
/**
|
|
16
|
-
* @see _.partialRight
|
|
17
|
-
*/
|
|
18
|
-
partialRight: ImplicitPartialRight;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
22
|
-
/**
|
|
23
|
-
* @see _.partialRight
|
|
24
|
-
*/
|
|
25
|
-
partialRight: ExplicitPartialRight;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface PartialRight {
|
|
29
|
-
// arity 0
|
|
30
|
-
<R>(func: Function0<R>): Function0<R>;
|
|
31
|
-
// arity 1
|
|
32
|
-
<T1, R>(func: Function1<T1, R>): Function1<T1, R>;
|
|
33
|
-
<T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
|
|
34
|
-
// arity 2
|
|
35
|
-
<T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
|
|
36
|
-
<T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, plc2: PH): Function1< T2, R>;
|
|
37
|
-
<T1, T2, R>(func: Function2<T1, T2, R>, arg2: T2): Function1<T1, R>;
|
|
38
|
-
<T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
|
|
39
|
-
// arity 3
|
|
40
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
|
|
41
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, plc3: PH): Function2< T2, T3, R>;
|
|
42
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, plc3: PH): Function2<T1, T3, R>;
|
|
43
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, plc3: PH): Function1< T3, R>;
|
|
44
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg3: T3): Function2<T1, T2, R>;
|
|
45
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
|
|
46
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, arg3: T3): Function1<T1, R>;
|
|
47
|
-
<T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
|
|
48
|
-
// arity 4
|
|
49
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
|
|
50
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): Function3< T2, T3, T4, R>;
|
|
51
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, plc4: PH): Function3<T1, T3, T4, R>;
|
|
52
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): Function2< T3, T4, R>;
|
|
53
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, plc4: PH): Function3<T1, T2, T4, R>;
|
|
54
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): Function2< T2, T4, R>;
|
|
55
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, plc4: PH): Function2<T1, T4, R>;
|
|
56
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): Function1< T4, R>;
|
|
57
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg4: T4): Function3<T1, T2, T3, R>;
|
|
58
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
|
|
59
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
|
|
60
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
|
|
61
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, arg4: T4): Function2<T1, T2, R>;
|
|
62
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
|
|
63
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
|
|
64
|
-
<T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
|
|
65
|
-
// catch-all
|
|
66
|
-
(func: (...args: any[]) => any, ...args: any[]): (...args: any[]) => any;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface ImplicitPartialRight {
|
|
70
|
-
// arity 0
|
|
71
|
-
<R>(this: LoDashImplicitWrapper<Function0<R>>): LoDashImplicitWrapper<Function0<R>>;
|
|
72
|
-
// arity 1
|
|
73
|
-
<T1, R>(this: LoDashImplicitWrapper<Function1<T1, R>>): LoDashImplicitWrapper<Function1<T1, R>>;
|
|
74
|
-
<T1, R>(this: LoDashImplicitWrapper<Function1<T1, R>>, arg1: T1): LoDashImplicitWrapper<Function0<R>>;
|
|
75
|
-
// arity 2
|
|
76
|
-
<T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>): LoDashImplicitWrapper<Function2<T1, T2, R>>;
|
|
77
|
-
<T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg1: T1, plc2: PH): LoDashImplicitWrapper<Function1< T2, R>>;
|
|
78
|
-
<T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg2: T2): LoDashImplicitWrapper<Function1<T1, R>>;
|
|
79
|
-
<T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg1: T1, arg2: T2): LoDashImplicitWrapper<Function0< R>>;
|
|
80
|
-
// arity 3
|
|
81
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>): LoDashImplicitWrapper<Function3<T1, T2, T3, R>>;
|
|
82
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, plc3: PH): LoDashImplicitWrapper<Function2< T2, T3, R>>;
|
|
83
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, plc3: PH): LoDashImplicitWrapper<Function2<T1, T3, R>>;
|
|
84
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, plc3: PH): LoDashImplicitWrapper<Function1< T3, R>>;
|
|
85
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg3: T3): LoDashImplicitWrapper<Function2<T1, T2, R>>;
|
|
86
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, arg3: T3): LoDashImplicitWrapper<Function1< T2, R>>;
|
|
87
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, arg3: T3): LoDashImplicitWrapper<Function1<T1, R>>;
|
|
88
|
-
<T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, arg3: T3): LoDashImplicitWrapper<Function0< R>>;
|
|
89
|
-
// arity 4
|
|
90
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>): LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>;
|
|
91
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function3< T2, T3, T4, R>>;
|
|
92
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function3<T1, T3, T4, R>>;
|
|
93
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function2< T3, T4, R>>;
|
|
94
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function3<T1, T2, T4, R>>;
|
|
95
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function2< T2, T4, R>>;
|
|
96
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function2<T1, T4, R>>;
|
|
97
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function1< T4, R>>;
|
|
98
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg4: T4): LoDashImplicitWrapper<Function3<T1, T2, T3, R>>;
|
|
99
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function2< T2, T3, R>>;
|
|
100
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function2<T1, T3, R>>;
|
|
101
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function1< T3, R>>;
|
|
102
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function2<T1, T2, R>>;
|
|
103
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function1< T2, R>>;
|
|
104
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function1<T1, R>>;
|
|
105
|
-
<T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function0< R>>;
|
|
106
|
-
// catch-all
|
|
107
|
-
(...args: any[]): LoDashImplicitWrapper<(...args: any[]) => any>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface ExplicitPartialRight {
|
|
111
|
-
// arity 0
|
|
112
|
-
<R>(this: LoDashExplicitWrapper<Function0<R>>): LoDashExplicitWrapper<Function0<R>>;
|
|
113
|
-
// arity 1
|
|
114
|
-
<T1, R>(this: LoDashExplicitWrapper<Function1<T1, R>>): LoDashExplicitWrapper<Function1<T1, R>>;
|
|
115
|
-
<T1, R>(this: LoDashExplicitWrapper<Function1<T1, R>>, arg1: T1): LoDashExplicitWrapper<Function0<R>>;
|
|
116
|
-
// arity 2
|
|
117
|
-
<T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>): LoDashExplicitWrapper<Function2<T1, T2, R>>;
|
|
118
|
-
<T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg1: T1, plc2: PH): LoDashExplicitWrapper<Function1< T2, R>>;
|
|
119
|
-
<T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg2: T2): LoDashExplicitWrapper<Function1<T1, R>>;
|
|
120
|
-
<T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg1: T1, arg2: T2): LoDashExplicitWrapper<Function0< R>>;
|
|
121
|
-
// arity 3
|
|
122
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>): LoDashExplicitWrapper<Function3<T1, T2, T3, R>>;
|
|
123
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, plc3: PH): LoDashExplicitWrapper<Function2< T2, T3, R>>;
|
|
124
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, plc3: PH): LoDashExplicitWrapper<Function2<T1, T3, R>>;
|
|
125
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, plc3: PH): LoDashExplicitWrapper<Function1< T3, R>>;
|
|
126
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg3: T3): LoDashExplicitWrapper<Function2<T1, T2, R>>;
|
|
127
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, arg3: T3): LoDashExplicitWrapper<Function1< T2, R>>;
|
|
128
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, arg3: T3): LoDashExplicitWrapper<Function1<T1, R>>;
|
|
129
|
-
<T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, arg3: T3): LoDashExplicitWrapper<Function0< R>>;
|
|
130
|
-
// arity 4
|
|
131
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>): LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>;
|
|
132
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function3< T2, T3, T4, R>>;
|
|
133
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function3<T1, T3, T4, R>>;
|
|
134
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function2< T3, T4, R>>;
|
|
135
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function3<T1, T2, T4, R>>;
|
|
136
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function2< T2, T4, R>>;
|
|
137
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function2<T1, T4, R>>;
|
|
138
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function1< T4, R>>;
|
|
139
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg4: T4): LoDashExplicitWrapper<Function3<T1, T2, T3, R>>;
|
|
140
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function2< T2, T3, R>>;
|
|
141
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function2<T1, T3, R>>;
|
|
142
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function1< T3, R>>;
|
|
143
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function2<T1, T2, R>>;
|
|
144
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function1< T2, R>>;
|
|
145
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function1<T1, R>>;
|
|
146
|
-
<T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function0< R>>;
|
|
147
|
-
// catch-all
|
|
148
|
-
(...args: any[]): LoDashExplicitWrapper<(...args: any[]) => any>;
|
|
149
|
-
}
|
|
150
|
-
}
|
lodash/function/rearg.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a function that invokes func with arguments arranged according to the specified indexes where the
|
|
6
|
-
* argument value at the first index is provided as the first argument, the argument value at the second index
|
|
7
|
-
* is provided as the second argument, and so on.
|
|
8
|
-
* @param func The function to rearrange arguments for.
|
|
9
|
-
* @param indexes The arranged argument indexes, specified as individual indexes or arrays of indexes.
|
|
10
|
-
* @return Returns the new function.
|
|
11
|
-
*/
|
|
12
|
-
rearg(func: (...args: any[]) => any, ...indexes: Array<Many<number>>): (...args: any[]) => any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
16
|
-
/**
|
|
17
|
-
* @see _.rearg
|
|
18
|
-
*/
|
|
19
|
-
rearg(...indexes: Array<Many<number>>): LoDashImplicitWrapper<(...args: any[]) => any>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
23
|
-
/**
|
|
24
|
-
* @see _.rearg
|
|
25
|
-
*/
|
|
26
|
-
rearg(...indexes: Array<Many<number>>): LoDashExplicitWrapper<(...args: any[]) => any>;
|
|
27
|
-
}
|
|
28
|
-
}
|
lodash/function/rest.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a function that invokes func with the this binding of the created function and arguments from start
|
|
6
|
-
* and beyond provided as an array.
|
|
7
|
-
*
|
|
8
|
-
* Note: This method is based on the rest parameter.
|
|
9
|
-
*
|
|
10
|
-
* @param func The function to apply a rest parameter to.
|
|
11
|
-
* @param start The start position of the rest parameter.
|
|
12
|
-
* @return Returns the new function.
|
|
13
|
-
*/
|
|
14
|
-
rest(
|
|
15
|
-
func: (...args: any[]) => any,
|
|
16
|
-
start?: number
|
|
17
|
-
): (...args: any[]) => any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.rest
|
|
23
|
-
*/
|
|
24
|
-
rest(start?: number): LoDashImplicitWrapper<(...args: any[]) => any>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.rest
|
|
30
|
-
*/
|
|
31
|
-
rest(start?: number): LoDashExplicitWrapper<(...args: any[]) => any>;
|
|
32
|
-
}
|
|
33
|
-
}
|
lodash/function/spread.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a function that invokes func with the this binding of the created function and an array of arguments
|
|
6
|
-
* much like Function#apply.
|
|
7
|
-
*
|
|
8
|
-
* Note: This method is based on the spread operator.
|
|
9
|
-
*
|
|
10
|
-
* @param func The function to spread arguments over.
|
|
11
|
-
* @return Returns the new function.
|
|
12
|
-
*/
|
|
13
|
-
spread<TResult>(func: (...args: any[]) => TResult): (...args: any[]) => TResult;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @see _.spread
|
|
17
|
-
*/
|
|
18
|
-
spread<TResult>(func: (...args: any[]) => TResult, start: number): (...args: any[]) => TResult;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
22
|
-
/**
|
|
23
|
-
* @see _.spread
|
|
24
|
-
*/
|
|
25
|
-
spread<TResult>(this: LoDashImplicitWrapper<(...args: any[]) => TResult>): LoDashImplicitWrapper<(...args: any[]) => TResult>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @see _.spread
|
|
29
|
-
*/
|
|
30
|
-
spread<TResult>(this: LoDashImplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashImplicitWrapper<(...args: any[]) => TResult>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
34
|
-
/**
|
|
35
|
-
* @see _.spread
|
|
36
|
-
*/
|
|
37
|
-
spread<TResult>(this: LoDashExplicitWrapper<(...args: any[]) => TResult>): LoDashExplicitWrapper<(...args: any[]) => TResult>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @see _.spread
|
|
41
|
-
*/
|
|
42
|
-
spread<TResult>(this: LoDashExplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashExplicitWrapper<(...args: any[]) => TResult>;
|
|
43
|
-
}
|
|
44
|
-
}
|
lodash/function/throttle.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface ThrottleSettings {
|
|
4
|
-
/**
|
|
5
|
-
* If you'd like to disable the leading-edge call, pass this as false.
|
|
6
|
-
*/
|
|
7
|
-
leading?: boolean;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* If you'd like to disable the execution on the trailing-edge, pass false.
|
|
11
|
-
*/
|
|
12
|
-
trailing?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface LoDashStatic {
|
|
16
|
-
/**
|
|
17
|
-
* Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled
|
|
18
|
-
* function comes with a cancel method to cancel delayed invocations and a flush method to immediately invoke
|
|
19
|
-
* them. Provide an options object to indicate that func should be invoked on the leading and/or trailing edge
|
|
20
|
-
* of the wait timeout. Subsequent calls to the throttled function return the result of the last func call.
|
|
21
|
-
*
|
|
22
|
-
* Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if
|
|
23
|
-
* the the throttled function is invoked more than once during the wait timeout.
|
|
24
|
-
*
|
|
25
|
-
* @param func The function to throttle.
|
|
26
|
-
* @param wait The number of milliseconds to throttle invocations to.
|
|
27
|
-
* @param options The options object.
|
|
28
|
-
* @param options.leading Specify invoking on the leading edge of the timeout.
|
|
29
|
-
* @param options.trailing Specify invoking on the trailing edge of the timeout.
|
|
30
|
-
* @return Returns the new throttled function.
|
|
31
|
-
*/
|
|
32
|
-
throttle<T extends (...args: any[]) => any>(
|
|
33
|
-
func: T,
|
|
34
|
-
wait?: number,
|
|
35
|
-
options?: ThrottleSettings
|
|
36
|
-
): T & Cancelable;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
40
|
-
/**
|
|
41
|
-
* @see _.throttle
|
|
42
|
-
*/
|
|
43
|
-
throttle(
|
|
44
|
-
wait?: number,
|
|
45
|
-
options?: ThrottleSettings
|
|
46
|
-
): LoDashImplicitWrapper<TValue & Cancelable>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
50
|
-
/**
|
|
51
|
-
* @see _.throttle
|
|
52
|
-
*/
|
|
53
|
-
throttle(
|
|
54
|
-
wait?: number,
|
|
55
|
-
options?: ThrottleSettings
|
|
56
|
-
): LoDashExplicitWrapper<TValue & Cancelable>;
|
|
57
|
-
}
|
|
58
|
-
}
|
lodash/function/unary.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a function that accepts up to one argument, ignoring any
|
|
6
|
-
* additional arguments.
|
|
7
|
-
*
|
|
8
|
-
* @category Function
|
|
9
|
-
* @param func The function to cap arguments for.
|
|
10
|
-
* @returns Returns the new function.
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* _.map(['6', '8', '10'], _.unary(parseInt));
|
|
14
|
-
* // => [6, 8, 10]
|
|
15
|
-
*/
|
|
16
|
-
unary<T, TResult>(func: (arg1: T, ...args: any[]) => TResult): (arg1: T) => TResult;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
20
|
-
/**
|
|
21
|
-
* @see _.unary
|
|
22
|
-
*/
|
|
23
|
-
unary<T, TResult>(this: LoDashImplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashImplicitWrapper<(arg1: T) => TResult>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
27
|
-
/**
|
|
28
|
-
* @see _.unary
|
|
29
|
-
*/
|
|
30
|
-
unary<T, TResult>(this: LoDashExplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashExplicitWrapper<(arg1: T) => TResult>;
|
|
31
|
-
}
|
|
32
|
-
}
|
lodash/function/wrap.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a function that provides value to the wrapper function as its first argument. Any additional
|
|
6
|
-
* arguments provided to the function are appended to those provided to the wrapper function. The wrapper is
|
|
7
|
-
* invoked with the this binding of the created function.
|
|
8
|
-
*
|
|
9
|
-
* @param value The value to wrap.
|
|
10
|
-
* @param wrapper The wrapper function.
|
|
11
|
-
* @return Returns the new function.
|
|
12
|
-
*/
|
|
13
|
-
wrap<T, TArgs, TResult>(
|
|
14
|
-
value: T,
|
|
15
|
-
wrapper: (value: T, ...args: TArgs[]) => TResult
|
|
16
|
-
): (...args: TArgs[]) => TResult;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.wrap
|
|
20
|
-
*/
|
|
21
|
-
wrap<T, TResult>(
|
|
22
|
-
value: T,
|
|
23
|
-
wrapper: (value: T, ...args: any[]) => TResult
|
|
24
|
-
): (...args: any[]) => TResult;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.wrap
|
|
30
|
-
*/
|
|
31
|
-
wrap<TArgs, TResult>(
|
|
32
|
-
wrapper: (value: TValue, ...args: TArgs[]) => TResult
|
|
33
|
-
): LoDashImplicitWrapper<(...args: TArgs[]) => TResult>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.wrap
|
|
37
|
-
*/
|
|
38
|
-
wrap<TResult>(
|
|
39
|
-
wrapper: (value: TValue, ...args: any[]) => TResult
|
|
40
|
-
): LoDashImplicitWrapper<(...args: any[]) => TResult>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
44
|
-
/**
|
|
45
|
-
* @see _.wrap
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @see _.wrap
|
|
49
|
-
*/
|
|
50
|
-
wrap<TArgs, TResult>(
|
|
51
|
-
wrapper: (value: TValue, ...args: TArgs[]) => TResult
|
|
52
|
-
): LoDashExplicitWrapper<(...args: TArgs[]) => TResult>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @see _.wrap
|
|
56
|
-
*/
|
|
57
|
-
wrap<TResult>(
|
|
58
|
-
wrapper: (value: TValue, ...args: any[]) => TResult
|
|
59
|
-
): LoDashExplicitWrapper<(...args: any[]) => TResult>;
|
|
60
|
-
}
|
|
61
|
-
}
|
lodash/lang/castArray.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Casts value as an array if it’s not one.
|
|
6
|
-
*
|
|
7
|
-
* @param value The value to inspect.
|
|
8
|
-
* @return Returns the cast array.
|
|
9
|
-
*/
|
|
10
|
-
castArray<T>(value?: Many<T>): T[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.castArray
|
|
16
|
-
*/
|
|
17
|
-
castArray<T>(this: LoDashImplicitWrapper<Many<T>>): LoDashImplicitWrapper<T[]>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.castArray
|
|
23
|
-
*/
|
|
24
|
-
castArray<T>(this: LoDashExplicitWrapper<Many<T>>): LoDashExplicitWrapper<T[]>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/lang/clone.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a shallow clone of value.
|
|
6
|
-
*
|
|
7
|
-
* Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
|
|
8
|
-
* array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
|
|
9
|
-
* and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
|
|
10
|
-
* object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
|
|
11
|
-
*
|
|
12
|
-
* @param value The value to clone.
|
|
13
|
-
* @return Returns the cloned value.
|
|
14
|
-
*/
|
|
15
|
-
clone<T>(value: T): T;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
19
|
-
/**
|
|
20
|
-
* @see _.clone
|
|
21
|
-
*/
|
|
22
|
-
clone(): TValue;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
26
|
-
/**
|
|
27
|
-
* @see _.clone
|
|
28
|
-
*/
|
|
29
|
-
clone(): this;
|
|
30
|
-
}
|
|
31
|
-
}
|
lodash/lang/cloneDeep.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like _.clone except that it recursively clones value.
|
|
6
|
-
*
|
|
7
|
-
* @param value The value to recursively clone.
|
|
8
|
-
* @return Returns the deep cloned value.
|
|
9
|
-
*/
|
|
10
|
-
cloneDeep<T>(value: T): T;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.cloneDeep
|
|
16
|
-
*/
|
|
17
|
-
cloneDeep(): TValue;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.cloneDeep
|
|
23
|
-
*/
|
|
24
|
-
cloneDeep(): this;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/lang/cloneDeepWith.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
type CloneDeepWithCustomizer<TObject> = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any;
|
|
4
|
-
|
|
5
|
-
interface LoDashStatic {
|
|
6
|
-
/**
|
|
7
|
-
* This method is like _.cloneWith except that it recursively clones value.
|
|
8
|
-
*
|
|
9
|
-
* @param value The value to recursively clone.
|
|
10
|
-
* @param customizer The function to customize cloning.
|
|
11
|
-
* @return Returns the deep cloned value.
|
|
12
|
-
*/
|
|
13
|
-
cloneDeepWith<T>(
|
|
14
|
-
value: T,
|
|
15
|
-
customizer: CloneDeepWithCustomizer<T>
|
|
16
|
-
): any;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.cloneDeepWith
|
|
20
|
-
*/
|
|
21
|
-
cloneDeepWith<T>(value: T): T;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
25
|
-
/**
|
|
26
|
-
* @see _.cloneDeepWith
|
|
27
|
-
*/
|
|
28
|
-
cloneDeepWith(
|
|
29
|
-
customizer: CloneDeepWithCustomizer<TValue>
|
|
30
|
-
): any;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @see _.cloneDeepWith
|
|
34
|
-
*/
|
|
35
|
-
cloneDeepWith(): TValue;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
39
|
-
/**
|
|
40
|
-
* @see _.cloneDeepWith
|
|
41
|
-
*/
|
|
42
|
-
cloneDeepWith(
|
|
43
|
-
customizer: CloneDeepWithCustomizer<TValue>
|
|
44
|
-
): LoDashExplicitWrapper<any>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @see _.cloneDeepWith
|
|
48
|
-
*/
|
|
49
|
-
cloneDeepWith(): this;
|
|
50
|
-
}
|
|
51
|
-
}
|
lodash/lang/cloneWith.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
type CloneWithCustomizer<TValue, TResult> = (value: TValue, key: number | string | undefined, object: any, stack: any) => TResult;
|
|
4
|
-
|
|
5
|
-
interface LoDashStatic {
|
|
6
|
-
/**
|
|
7
|
-
* This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
|
|
8
|
-
* If customizer returns undefined cloning is handled by the method instead.
|
|
9
|
-
*
|
|
10
|
-
* @param value The value to clone.
|
|
11
|
-
* @param customizer The function to customize cloning.
|
|
12
|
-
* @return Returns the cloned value.
|
|
13
|
-
*/
|
|
14
|
-
cloneWith<T, TResult extends object | string | number | boolean | null>(
|
|
15
|
-
value: T,
|
|
16
|
-
customizer: CloneWithCustomizer<T, TResult>
|
|
17
|
-
): TResult;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @see _.cloneWith
|
|
21
|
-
*/
|
|
22
|
-
cloneWith<T, TResult>(
|
|
23
|
-
value: T,
|
|
24
|
-
customizer: CloneWithCustomizer<T, TResult | undefined>
|
|
25
|
-
): TResult | T;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @see _.cloneWith
|
|
29
|
-
*/
|
|
30
|
-
cloneWith<T>(value: T): T;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
34
|
-
/**
|
|
35
|
-
* @see _.cloneWith
|
|
36
|
-
*/
|
|
37
|
-
cloneWith<TResult extends object | string | number | boolean | null>(
|
|
38
|
-
customizer: CloneWithCustomizer<TValue, TResult>
|
|
39
|
-
): TResult;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @see _.cloneWith
|
|
43
|
-
*/
|
|
44
|
-
cloneWith<TResult>(
|
|
45
|
-
customizer: CloneWithCustomizer<TValue, TResult | undefined>
|
|
46
|
-
): TResult | TValue;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @see _.cloneWith
|
|
50
|
-
*/
|
|
51
|
-
cloneWith(): TValue;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
55
|
-
/**
|
|
56
|
-
* @see _.cloneWith
|
|
57
|
-
*/
|
|
58
|
-
cloneWith<TResult extends object | string | number | boolean | null>(
|
|
59
|
-
customizer: CloneWithCustomizer<TValue, TResult>
|
|
60
|
-
): LoDashExplicitWrapper<TResult>;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @see _.cloneWith
|
|
64
|
-
*/
|
|
65
|
-
cloneWith<TResult>(
|
|
66
|
-
customizer: CloneWithCustomizer<TValue, TResult | undefined>
|
|
67
|
-
): LoDashExplicitWrapper<TResult | TValue>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @see _.cloneWith
|
|
71
|
-
*/
|
|
72
|
-
cloneWith(): this;
|
|
73
|
-
}
|
|
74
|
-
}
|
lodash/lang/conformsTo.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
|
|
4
|
-
interface LoDashStatic {
|
|
5
|
-
/**
|
|
6
|
-
* Checks if object conforms to source by invoking the predicate properties of source with the
|
|
7
|
-
* corresponding property values of object.
|
|
8
|
-
*
|
|
9
|
-
* Note: This method is equivalent to _.conforms when source is partially applied.
|
|
10
|
-
*/
|
|
11
|
-
conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
15
|
-
/**
|
|
16
|
-
* @see _.conformsTo
|
|
17
|
-
*/
|
|
18
|
-
conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): boolean;
|
|
19
|
-
// Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
23
|
-
/**
|
|
24
|
-
* @see _.conformsTo
|
|
25
|
-
*/
|
|
26
|
-
conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): LoDashExplicitWrapper<boolean>;
|
|
27
|
-
// Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
type CondPair<T, R> = [(val: T) => boolean, (val: T) => R]
|
|
31
|
-
}
|