@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/object/mapValues.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an object with the same keys as object and values generated by running each own
|
|
6
|
-
* enumerable property of object through iteratee. The iteratee function is bound to thisArg
|
|
7
|
-
* and invoked with three arguments: (value, key, object).
|
|
8
|
-
*
|
|
9
|
-
* If a property name is provided iteratee the created "_.property" style callback returns
|
|
10
|
-
* the property value of the given element.
|
|
11
|
-
*
|
|
12
|
-
* If a value is also provided for thisArg the creted "_.matchesProperty" style callback returns
|
|
13
|
-
* true for elements that have a matching property value, else false;.
|
|
14
|
-
*
|
|
15
|
-
* If an object is provided for iteratee the created "_.matches" style callback returns true
|
|
16
|
-
* for elements that have the properties of the given object, else false.
|
|
17
|
-
*
|
|
18
|
-
* @param object The object to iterate over.
|
|
19
|
-
* @param [iteratee=_.identity] The function invoked per iteration.
|
|
20
|
-
* @param [thisArg] The `this` binding of `iteratee`.
|
|
21
|
-
* @return Returns the new mapped object.
|
|
22
|
-
*/
|
|
23
|
-
mapValues<T extends object, TResult>(obj: T | null | undefined, callback: ObjectIterator<T, TResult>): { [P in keyof T]: TResult };
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @see _.mapValues
|
|
27
|
-
*/
|
|
28
|
-
mapValues<T extends object>(obj: T | null | undefined, iteratee: object): { [P in keyof T]: boolean };
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @see _.mapValues
|
|
32
|
-
*/
|
|
33
|
-
mapValues<T, TKey extends keyof T>(obj: Dictionary<T> | null | undefined, iteratee: TKey): Dictionary<T[TKey]>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.mapValues
|
|
37
|
-
*/
|
|
38
|
-
mapValues<T extends object, TKey extends keyof T>(obj: T | null | undefined, iteratee: string): { [P in keyof T]: any };
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @see _.mapValues
|
|
42
|
-
*/
|
|
43
|
-
mapValues<TResult>(obj: string | null | undefined, callback: StringIterator<TResult>): NumericDictionary<TResult>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see _.mapValues
|
|
47
|
-
*/
|
|
48
|
-
mapValues<T>(obj: Dictionary<T> | null | undefined): Dictionary<T>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @see _.mapValues
|
|
52
|
-
*/
|
|
53
|
-
mapValues<T extends object>(obj: T): T;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @see _.mapValues
|
|
57
|
-
*/
|
|
58
|
-
mapValues<T extends object>(obj: T | null | undefined): T | {};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @see _.mapValues
|
|
62
|
-
*/
|
|
63
|
-
mapValues(obj: string | null | undefined): NumericDictionary<string>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
67
|
-
/**
|
|
68
|
-
* @see _.mapValues
|
|
69
|
-
*/
|
|
70
|
-
mapValues<T extends object, TResult>(
|
|
71
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
72
|
-
callback: ObjectIterator<T, TResult>
|
|
73
|
-
): LoDashImplicitWrapper<{ [P in keyof T]: TResult }>;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @see _.mapValues
|
|
77
|
-
*/
|
|
78
|
-
mapValues<T extends object>(
|
|
79
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
80
|
-
iteratee: object
|
|
81
|
-
): LoDashImplicitWrapper<{ [P in keyof T]: boolean }>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @see _.mapValues
|
|
85
|
-
*/
|
|
86
|
-
mapValues<T, TKey extends keyof T>(
|
|
87
|
-
this: LoDashImplicitWrapper<Dictionary<T> | null | undefined>,
|
|
88
|
-
iteratee: TKey
|
|
89
|
-
): LoDashImplicitWrapper<Dictionary<T[TKey]>>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @see _.mapValues
|
|
93
|
-
*/
|
|
94
|
-
mapValues<T extends object, TKey extends keyof T>(
|
|
95
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
96
|
-
iteratee: string
|
|
97
|
-
): LoDashImplicitWrapper<{ [P in keyof T]: any }>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @see _.mapValues
|
|
101
|
-
*/
|
|
102
|
-
mapValues<TResult>(
|
|
103
|
-
this: LoDashImplicitWrapper<string | null | undefined>,
|
|
104
|
-
callback: StringIterator<TResult>
|
|
105
|
-
): LoDashImplicitWrapper<NumericDictionary<TResult>>;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @see _.mapValues
|
|
109
|
-
*/
|
|
110
|
-
mapValues<T>(this: LoDashImplicitWrapper<Dictionary<T> | null | undefined>): LoDashImplicitWrapper<Dictionary<T>>;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @see _.mapValues
|
|
114
|
-
*/
|
|
115
|
-
mapValues<T extends object>(this: LoDashImplicitWrapper<T>): LoDashImplicitWrapper<T>;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @see _.mapValues
|
|
119
|
-
*/
|
|
120
|
-
mapValues<T extends object>(this: LoDashImplicitWrapper<T | null | undefined>): LoDashImplicitWrapper<T | {}>;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @see _.mapValues
|
|
124
|
-
*/
|
|
125
|
-
mapValues(this: LoDashImplicitWrapper<string | null | undefined>): LoDashImplicitWrapper<NumericDictionary<string>>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
129
|
-
/**
|
|
130
|
-
* @see _.mapValues
|
|
131
|
-
*/
|
|
132
|
-
mapValues<T extends object, TResult>(
|
|
133
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
134
|
-
callback: ObjectIterator<T, TResult>
|
|
135
|
-
): LoDashExplicitWrapper<{ [P in keyof T]: TResult }>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @see _.mapValues
|
|
139
|
-
*/
|
|
140
|
-
mapValues<T extends object>(
|
|
141
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
142
|
-
iteratee: object
|
|
143
|
-
): LoDashExplicitWrapper<{ [P in keyof T]: boolean }>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @see _.mapValues
|
|
147
|
-
*/
|
|
148
|
-
mapValues<T, TKey extends keyof T>(
|
|
149
|
-
this: LoDashExplicitWrapper<Dictionary<T> | null | undefined>,
|
|
150
|
-
iteratee: TKey
|
|
151
|
-
): LoDashExplicitWrapper<Dictionary<T[TKey]>>;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @see _.mapValues
|
|
155
|
-
*/
|
|
156
|
-
mapValues<T extends object, TKey extends keyof T>(
|
|
157
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
158
|
-
iteratee: string
|
|
159
|
-
): LoDashExplicitWrapper<{ [P in keyof T]: any }>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @see _.mapValues
|
|
163
|
-
*/
|
|
164
|
-
mapValues<TResult>(
|
|
165
|
-
this: LoDashExplicitWrapper<string | null | undefined>,
|
|
166
|
-
callback: StringIterator<TResult>
|
|
167
|
-
): LoDashExplicitWrapper<NumericDictionary<TResult>>;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @see _.mapValues
|
|
171
|
-
*/
|
|
172
|
-
mapValues<T>(this: LoDashExplicitWrapper<Dictionary<T> | null | undefined>): LoDashExplicitWrapper<Dictionary<T>>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @see _.mapValues
|
|
176
|
-
*/
|
|
177
|
-
mapValues<T extends object>(this: LoDashExplicitWrapper<T>): LoDashExplicitWrapper<T>;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @see _.mapValues
|
|
181
|
-
*/
|
|
182
|
-
mapValues<T extends object>(this: LoDashExplicitWrapper<T | null | undefined>): LoDashExplicitWrapper<T | {}>;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @see _.mapValues
|
|
186
|
-
*/
|
|
187
|
-
mapValues(this: LoDashExplicitWrapper<string | null | undefined>): LoDashExplicitWrapper<NumericDictionary<string>>;
|
|
188
|
-
}
|
|
189
|
-
}
|
lodash/object/merge.d.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Recursively merges own and inherited enumerable properties of source
|
|
6
|
-
* objects into the destination object, skipping source properties that resolve
|
|
7
|
-
* to `undefined`. Array and plain object properties are merged recursively.
|
|
8
|
-
* Other objects and value types are overridden by assignment. Source objects
|
|
9
|
-
* are applied from left to right. Subsequent sources overwrite property
|
|
10
|
-
* assignments of previous sources.
|
|
11
|
-
*
|
|
12
|
-
* **Note:** This method mutates `object`.
|
|
13
|
-
*
|
|
14
|
-
* @category Object
|
|
15
|
-
* @param object The destination object.
|
|
16
|
-
* @param [sources] The source objects.
|
|
17
|
-
* @returns Returns `object`.
|
|
18
|
-
* @example
|
|
19
|
-
*
|
|
20
|
-
* var users = {
|
|
21
|
-
* 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
|
|
22
|
-
* };
|
|
23
|
-
*
|
|
24
|
-
* var ages = {
|
|
25
|
-
* 'data': [{ 'age': 36 }, { 'age': 40 }]
|
|
26
|
-
* };
|
|
27
|
-
*
|
|
28
|
-
* _.merge(users, ages);
|
|
29
|
-
* // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
|
|
30
|
-
*/
|
|
31
|
-
merge<TObject, TSource>(
|
|
32
|
-
object: TObject,
|
|
33
|
-
source: TSource
|
|
34
|
-
): TObject & TSource;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see _.merge
|
|
38
|
-
*/
|
|
39
|
-
merge<TObject, TSource1, TSource2>(
|
|
40
|
-
object: TObject,
|
|
41
|
-
source1: TSource1,
|
|
42
|
-
source2: TSource2
|
|
43
|
-
): TObject & TSource1 & TSource2;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see _.merge
|
|
47
|
-
*/
|
|
48
|
-
merge<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 _.merge
|
|
57
|
-
*/
|
|
58
|
-
merge<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 _.merge
|
|
68
|
-
*/
|
|
69
|
-
merge(
|
|
70
|
-
object: any,
|
|
71
|
-
...otherArgs: any[]
|
|
72
|
-
): any;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
76
|
-
/**
|
|
77
|
-
* @see _.merge
|
|
78
|
-
*/
|
|
79
|
-
merge<TSource>(
|
|
80
|
-
source: TSource
|
|
81
|
-
): LoDashImplicitWrapper<TValue & TSource>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @see _.merge
|
|
85
|
-
*/
|
|
86
|
-
merge<TSource1, TSource2>(
|
|
87
|
-
source1: TSource1,
|
|
88
|
-
source2: TSource2
|
|
89
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @see _.merge
|
|
93
|
-
*/
|
|
94
|
-
merge<TSource1, TSource2, TSource3>(
|
|
95
|
-
source1: TSource1,
|
|
96
|
-
source2: TSource2,
|
|
97
|
-
source3: TSource3
|
|
98
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @see _.merge
|
|
102
|
-
*/
|
|
103
|
-
merge<TSource1, TSource2, TSource3, TSource4>(
|
|
104
|
-
source1: TSource1,
|
|
105
|
-
source2: TSource2,
|
|
106
|
-
source3: TSource3,
|
|
107
|
-
source4: TSource4
|
|
108
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @see _.merge
|
|
112
|
-
*/
|
|
113
|
-
merge(
|
|
114
|
-
...otherArgs: any[]
|
|
115
|
-
): LoDashImplicitWrapper<any>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
119
|
-
/**
|
|
120
|
-
* @see _.merge
|
|
121
|
-
*/
|
|
122
|
-
merge<TSource>(
|
|
123
|
-
source: TSource
|
|
124
|
-
): LoDashExplicitWrapper<TValue & TSource>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @see _.merge
|
|
128
|
-
*/
|
|
129
|
-
merge<TSource1, TSource2>(
|
|
130
|
-
source1: TSource1,
|
|
131
|
-
source2: TSource2
|
|
132
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @see _.merge
|
|
136
|
-
*/
|
|
137
|
-
merge<TSource1, TSource2, TSource3>(
|
|
138
|
-
source1: TSource1,
|
|
139
|
-
source2: TSource2,
|
|
140
|
-
source3: TSource3
|
|
141
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @see _.merge
|
|
145
|
-
*/
|
|
146
|
-
merge<TSource1, TSource2, TSource3, TSource4>(
|
|
147
|
-
): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @see _.merge
|
|
151
|
-
*/
|
|
152
|
-
merge(
|
|
153
|
-
...otherArgs: any[]
|
|
154
|
-
): LoDashExplicitWrapper<any>;
|
|
155
|
-
}
|
|
156
|
-
}
|
lodash/object/mergeWith.d.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"]
|
|
4
|
-
|
|
5
|
-
interface LoDashStatic {
|
|
6
|
-
/**
|
|
7
|
-
* This method is like `_.merge` except that it accepts `customizer` which
|
|
8
|
-
* is invoked to produce the merged values of the destination and source
|
|
9
|
-
* properties. If `customizer` returns `undefined` merging is handled by the
|
|
10
|
-
* method instead. The `customizer` is invoked with seven arguments:
|
|
11
|
-
* (objValue, srcValue, key, object, source, stack).
|
|
12
|
-
*
|
|
13
|
-
* @category Object
|
|
14
|
-
* @param object The destination object.
|
|
15
|
-
* @param sources The source objects.
|
|
16
|
-
* @param customizer The function to customize assigned values.
|
|
17
|
-
* @returns Returns `object`.
|
|
18
|
-
* @example
|
|
19
|
-
*
|
|
20
|
-
* function customizer(objValue, srcValue) {
|
|
21
|
-
* if (_.isArray(objValue)) {
|
|
22
|
-
* return objValue.concat(srcValue);
|
|
23
|
-
* }
|
|
24
|
-
* }
|
|
25
|
-
*
|
|
26
|
-
* var object = {
|
|
27
|
-
* 'fruits': ['apple'],
|
|
28
|
-
* 'vegetables': ['beet']
|
|
29
|
-
* };
|
|
30
|
-
*
|
|
31
|
-
* var other = {
|
|
32
|
-
* 'fruits': ['banana'],
|
|
33
|
-
* 'vegetables': ['carrot']
|
|
34
|
-
* };
|
|
35
|
-
*
|
|
36
|
-
* _.merge(object, other, customizer);
|
|
37
|
-
* // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
|
|
38
|
-
*/
|
|
39
|
-
mergeWith<TObject, TSource>(
|
|
40
|
-
object: TObject,
|
|
41
|
-
source: TSource,
|
|
42
|
-
customizer: MergeWithCustomizer
|
|
43
|
-
): TObject & TSource;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @see _.mergeWith
|
|
47
|
-
*/
|
|
48
|
-
mergeWith<TObject, TSource1, TSource2>(
|
|
49
|
-
object: TObject,
|
|
50
|
-
source1: TSource1,
|
|
51
|
-
source2: TSource2,
|
|
52
|
-
customizer: MergeWithCustomizer
|
|
53
|
-
): TObject & TSource1 & TSource2;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @see _.mergeWith
|
|
57
|
-
*/
|
|
58
|
-
mergeWith<TObject, TSource1, TSource2, TSource3>(
|
|
59
|
-
object: TObject,
|
|
60
|
-
source1: TSource1,
|
|
61
|
-
source2: TSource2,
|
|
62
|
-
source3: TSource3,
|
|
63
|
-
customizer: MergeWithCustomizer
|
|
64
|
-
): TObject & TSource1 & TSource2 & TSource3;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @see _.mergeWith
|
|
68
|
-
*/
|
|
69
|
-
mergeWith<TObject, TSource1, TSource2, TSource3, TSource4>(
|
|
70
|
-
object: TObject,
|
|
71
|
-
source1: TSource1,
|
|
72
|
-
source2: TSource2,
|
|
73
|
-
source3: TSource3,
|
|
74
|
-
source4: TSource4,
|
|
75
|
-
customizer: MergeWithCustomizer
|
|
76
|
-
): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @see _.mergeWith
|
|
80
|
-
*/
|
|
81
|
-
mergeWith(
|
|
82
|
-
object: any,
|
|
83
|
-
...otherArgs: any[]
|
|
84
|
-
): any;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
88
|
-
/**
|
|
89
|
-
* @see _.mergeWith
|
|
90
|
-
*/
|
|
91
|
-
mergeWith<TSource>(
|
|
92
|
-
source: TSource,
|
|
93
|
-
customizer: MergeWithCustomizer
|
|
94
|
-
): LoDashImplicitWrapper<TValue & TSource>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @see _.mergeWith
|
|
98
|
-
*/
|
|
99
|
-
mergeWith<TSource1, TSource2>(
|
|
100
|
-
source1: TSource1,
|
|
101
|
-
source2: TSource2,
|
|
102
|
-
customizer: MergeWithCustomizer
|
|
103
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @see _.mergeWith
|
|
107
|
-
*/
|
|
108
|
-
mergeWith<TSource1, TSource2, TSource3>(
|
|
109
|
-
source1: TSource1,
|
|
110
|
-
source2: TSource2,
|
|
111
|
-
source3: TSource3,
|
|
112
|
-
customizer: MergeWithCustomizer
|
|
113
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @see _.mergeWith
|
|
117
|
-
*/
|
|
118
|
-
mergeWith<TSource1, TSource2, TSource3, TSource4>(
|
|
119
|
-
source1: TSource1,
|
|
120
|
-
source2: TSource2,
|
|
121
|
-
source3: TSource3,
|
|
122
|
-
source4: TSource4,
|
|
123
|
-
customizer: MergeWithCustomizer
|
|
124
|
-
): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @see _.mergeWith
|
|
128
|
-
*/
|
|
129
|
-
mergeWith(
|
|
130
|
-
...otherArgs: any[]
|
|
131
|
-
): LoDashImplicitWrapper<any>;
|
|
132
|
-
}
|
|
133
|
-
}
|
lodash/object/omit.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* The opposite of `_.pick`; this method creates an object composed of the
|
|
6
|
-
* own and inherited enumerable properties of `object` that are not omitted.
|
|
7
|
-
*
|
|
8
|
-
* @category Object
|
|
9
|
-
* @param object The source object.
|
|
10
|
-
* @param [paths] The property names to omit, specified
|
|
11
|
-
* individually or in arrays..
|
|
12
|
-
* @returns Returns the new object.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
16
|
-
*
|
|
17
|
-
* _.omit(object, ['a', 'c']);
|
|
18
|
-
* // => { 'b': '2' }
|
|
19
|
-
*/
|
|
20
|
-
omit<T>(
|
|
21
|
-
object: Dictionary<T>,
|
|
22
|
-
...paths: PropertyPath[]
|
|
23
|
-
): Dictionary<T>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @see _.omit
|
|
27
|
-
*/
|
|
28
|
-
omit<T extends object>(
|
|
29
|
-
object: T | null | undefined,
|
|
30
|
-
...paths: PropertyPath[]
|
|
31
|
-
): PartialObject<T>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
35
|
-
/**
|
|
36
|
-
* @see _.omit
|
|
37
|
-
*/
|
|
38
|
-
omit<T>(
|
|
39
|
-
this: LoDashImplicitWrapper<Dictionary<T>>,
|
|
40
|
-
...paths: PropertyPath[]
|
|
41
|
-
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @see _.omit
|
|
45
|
-
*/
|
|
46
|
-
omit<T extends object>(
|
|
47
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
48
|
-
...paths: PropertyPath[]
|
|
49
|
-
): LoDashImplicitWrapper<PartialObject<T>>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
53
|
-
/**
|
|
54
|
-
* @see _.omit
|
|
55
|
-
*/
|
|
56
|
-
omit<T>(
|
|
57
|
-
this: LoDashExplicitWrapper<Dictionary<T>>,
|
|
58
|
-
...paths: PropertyPath[]
|
|
59
|
-
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @see _.omit
|
|
63
|
-
*/
|
|
64
|
-
omit<T extends object>(
|
|
65
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
66
|
-
...paths: PropertyPath[]
|
|
67
|
-
): LoDashExplicitWrapper<PartialObject<T>>;
|
|
68
|
-
}
|
|
69
|
-
}
|
lodash/object/omitBy.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* The opposite of `_.pickBy`; this method creates an object composed of the
|
|
6
|
-
* own and inherited enumerable properties of `object` that `predicate`
|
|
7
|
-
* doesn't return truthy for.
|
|
8
|
-
*
|
|
9
|
-
* @category Object
|
|
10
|
-
* @param object The source object.
|
|
11
|
-
* @param [predicate=_.identity] The function invoked per property.
|
|
12
|
-
* @returns Returns the new object.
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
16
|
-
*
|
|
17
|
-
* _.omitBy(object, _.isNumber);
|
|
18
|
-
* // => { 'b': '2' }
|
|
19
|
-
*/
|
|
20
|
-
omitBy<T extends object>(
|
|
21
|
-
object: T | null | undefined,
|
|
22
|
-
predicate: ValueKeyIteratee<T[keyof T]>
|
|
23
|
-
): PartialObject<T>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
27
|
-
/**
|
|
28
|
-
* @see _.omitBy
|
|
29
|
-
*/
|
|
30
|
-
omitBy<T extends object>(
|
|
31
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
32
|
-
predicate: ValueKeyIteratee<T[keyof T]>
|
|
33
|
-
): LoDashImplicitWrapper<PartialObject<T>>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
37
|
-
/**
|
|
38
|
-
* @see _.omitBy
|
|
39
|
-
*/
|
|
40
|
-
omitBy<T extends object>(
|
|
41
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
42
|
-
predicate: ValueKeyIteratee<T[keyof T]>
|
|
43
|
-
): LoDashExplicitWrapper<PartialObject<T>>;
|
|
44
|
-
}
|
|
45
|
-
}
|
lodash/object/pick.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an object composed of the picked `object` properties.
|
|
6
|
-
*
|
|
7
|
-
* @category Object
|
|
8
|
-
* @param object The source object.
|
|
9
|
-
* @param [props] The property names to pick, specified
|
|
10
|
-
* individually or in arrays.
|
|
11
|
-
* @returns Returns the new object.
|
|
12
|
-
* @example
|
|
13
|
-
*
|
|
14
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
15
|
-
*
|
|
16
|
-
* _.pick(object, ['a', 'c']);
|
|
17
|
-
* // => { 'a': 1, 'c': 3 }
|
|
18
|
-
*/
|
|
19
|
-
pick<T extends object, U extends keyof T>(
|
|
20
|
-
object: T,
|
|
21
|
-
...props: Array<Many<U>>
|
|
22
|
-
): Pick<T, U>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @see _.pick
|
|
26
|
-
*/
|
|
27
|
-
pick<T>(
|
|
28
|
-
object: T | null | undefined,
|
|
29
|
-
...props: PropertyPath[]
|
|
30
|
-
): PartialDeep<T>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
34
|
-
/**
|
|
35
|
-
* @see _.pick
|
|
36
|
-
*/
|
|
37
|
-
pick<T extends object, U extends keyof T>(
|
|
38
|
-
this: LoDashImplicitWrapper<T>,
|
|
39
|
-
...props: Array<Many<U>>
|
|
40
|
-
): LoDashImplicitWrapper<Pick<T, U>>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @see _.pick
|
|
44
|
-
*/
|
|
45
|
-
pick<T extends object>(
|
|
46
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
47
|
-
...props: PropertyPath[]
|
|
48
|
-
): LoDashImplicitWrapper<PartialObject<T>>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
52
|
-
/**
|
|
53
|
-
* @see _.pick
|
|
54
|
-
*/
|
|
55
|
-
pick<T extends object, U extends keyof T>(
|
|
56
|
-
this: LoDashExplicitWrapper<T>,
|
|
57
|
-
...props: Array<Many<U>>
|
|
58
|
-
): LoDashExplicitWrapper<Pick<T, U>>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @see _.pick
|
|
62
|
-
*/
|
|
63
|
-
pick<T extends object>(
|
|
64
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
65
|
-
...props: PropertyPath[]
|
|
66
|
-
): LoDashExplicitWrapper<PartialObject<T>>;
|
|
67
|
-
}
|
|
68
|
-
}
|