@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/get.d.ts
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the property value at path of object. If the resolved value is undefined the defaultValue is used
|
|
6
|
-
* in its place.
|
|
7
|
-
*
|
|
8
|
-
* @param object The object to query.
|
|
9
|
-
* @param path The path of the property to get.
|
|
10
|
-
* @param defaultValue The value returned if the resolved value is undefined.
|
|
11
|
-
* @return Returns the resolved value.
|
|
12
|
-
*/
|
|
13
|
-
get<TObject extends object, TKey extends keyof TObject>(
|
|
14
|
-
object: TObject,
|
|
15
|
-
path: TKey | [TKey]
|
|
16
|
-
): TObject[TKey];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.get
|
|
20
|
-
*/
|
|
21
|
-
get<TObject extends object, TKey extends keyof TObject>(
|
|
22
|
-
object: TObject | null | undefined,
|
|
23
|
-
path: TKey | [TKey]
|
|
24
|
-
): TObject[TKey] | undefined;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @see _.get
|
|
28
|
-
*/
|
|
29
|
-
get<TObject extends object, TKey extends keyof TObject, TDefault>(
|
|
30
|
-
object: TObject | null | undefined,
|
|
31
|
-
path: TKey | [TKey],
|
|
32
|
-
defaultValue: TDefault
|
|
33
|
-
): TObject[TKey] | TDefault;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.get
|
|
37
|
-
*/
|
|
38
|
-
get<T>(
|
|
39
|
-
object: NumericDictionary<T>,
|
|
40
|
-
path: number
|
|
41
|
-
): T;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @see _.get
|
|
45
|
-
*/
|
|
46
|
-
get<T>(
|
|
47
|
-
object: NumericDictionary<T> | null | undefined,
|
|
48
|
-
path: number
|
|
49
|
-
): T | undefined;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @see _.get
|
|
53
|
-
*/
|
|
54
|
-
get<T, TDefault>(
|
|
55
|
-
object: NumericDictionary<T> | null | undefined,
|
|
56
|
-
path: number,
|
|
57
|
-
defaultValue: TDefault
|
|
58
|
-
): T | TDefault;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @see _.get
|
|
62
|
-
*/
|
|
63
|
-
get<TDefault>(
|
|
64
|
-
object: null | undefined,
|
|
65
|
-
path: PropertyPath,
|
|
66
|
-
defaultValue: TDefault
|
|
67
|
-
): TDefault;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @see _.get
|
|
71
|
-
*/
|
|
72
|
-
get(
|
|
73
|
-
object: null | undefined,
|
|
74
|
-
path: PropertyPath
|
|
75
|
-
): undefined;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @see _.get
|
|
79
|
-
*/
|
|
80
|
-
get(
|
|
81
|
-
object: any,
|
|
82
|
-
path: PropertyPath,
|
|
83
|
-
defaultValue?: any
|
|
84
|
-
): any;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
88
|
-
/**
|
|
89
|
-
* @see _.get
|
|
90
|
-
*/
|
|
91
|
-
get<TKey extends keyof TValue>(
|
|
92
|
-
path: TKey | [TKey]
|
|
93
|
-
): TValue[TKey];
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @see _.get
|
|
97
|
-
*/
|
|
98
|
-
get<TObject extends object, TKey extends keyof TObject>(
|
|
99
|
-
this: LoDashImplicitWrapper<TObject | null | undefined>,
|
|
100
|
-
path: TKey | [TKey],
|
|
101
|
-
): TObject[TKey] | undefined;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @see _.get
|
|
105
|
-
*/
|
|
106
|
-
get<TObject extends object, TKey extends keyof TObject, TDefault>(
|
|
107
|
-
this: LoDashImplicitWrapper<TObject | null | undefined>,
|
|
108
|
-
path: TKey | [TKey],
|
|
109
|
-
defaultValue: TDefault
|
|
110
|
-
): TObject[TKey] | TDefault;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @see _.get
|
|
114
|
-
*/
|
|
115
|
-
get<T>(
|
|
116
|
-
this: LoDashImplicitWrapper<NumericDictionary<T>>,
|
|
117
|
-
path: number
|
|
118
|
-
): T;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @see _.get
|
|
122
|
-
*/
|
|
123
|
-
get<T>(
|
|
124
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
125
|
-
path: number
|
|
126
|
-
): T | undefined;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @see _.get
|
|
130
|
-
*/
|
|
131
|
-
get<T, TDefault>(
|
|
132
|
-
this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
133
|
-
path: number,
|
|
134
|
-
defaultValue: TDefault
|
|
135
|
-
): T | TDefault;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @see _.get
|
|
139
|
-
*/
|
|
140
|
-
get<TDefault>(
|
|
141
|
-
this: LoDashImplicitWrapper<null | undefined>,
|
|
142
|
-
path: PropertyPath,
|
|
143
|
-
defaultValue: TDefault
|
|
144
|
-
): TDefault;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @see _.get
|
|
148
|
-
*/
|
|
149
|
-
get(
|
|
150
|
-
this: LoDashImplicitWrapper<null | undefined>,
|
|
151
|
-
path: PropertyPath
|
|
152
|
-
): undefined;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @see _.get
|
|
156
|
-
*/
|
|
157
|
-
get<TResult>(
|
|
158
|
-
path: PropertyPath,
|
|
159
|
-
defaultValue?: any
|
|
160
|
-
): any;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
164
|
-
/**
|
|
165
|
-
* @see _.get
|
|
166
|
-
*/
|
|
167
|
-
get<TKey extends keyof TValue>(
|
|
168
|
-
path: TKey | [TKey]
|
|
169
|
-
): LoDashExplicitWrapper<TValue[TKey]>;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @see _.get
|
|
173
|
-
*/
|
|
174
|
-
get<TObject extends object, TKey extends keyof TObject>(
|
|
175
|
-
this: LoDashExplicitWrapper<TObject | null | undefined>,
|
|
176
|
-
path: TKey | [TKey],
|
|
177
|
-
): LoDashExplicitWrapper<TObject[TKey] | undefined>;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @see _.get
|
|
181
|
-
*/
|
|
182
|
-
get<TObject extends object, TKey extends keyof TObject, TDefault>(
|
|
183
|
-
this: LoDashExplicitWrapper<TObject | null | undefined>,
|
|
184
|
-
path: TKey | [TKey],
|
|
185
|
-
defaultValue: TDefault
|
|
186
|
-
): LoDashExplicitWrapper<TObject[TKey] | TDefault>;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @see _.get
|
|
190
|
-
*/
|
|
191
|
-
get<T>(
|
|
192
|
-
this: LoDashExplicitWrapper<NumericDictionary<T>>,
|
|
193
|
-
path: number
|
|
194
|
-
): LoDashExplicitWrapper<T>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @see _.get
|
|
198
|
-
*/
|
|
199
|
-
get<T>(
|
|
200
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
201
|
-
path: number
|
|
202
|
-
): LoDashExplicitWrapper<T | undefined>;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @see _.get
|
|
206
|
-
*/
|
|
207
|
-
get<T, TDefault>(
|
|
208
|
-
this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
|
|
209
|
-
path: number,
|
|
210
|
-
defaultValue: TDefault
|
|
211
|
-
): LoDashExplicitWrapper<T | undefined>;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @see _.get
|
|
215
|
-
*/
|
|
216
|
-
get<TDefault>(
|
|
217
|
-
this: LoDashExplicitWrapper<null | undefined>,
|
|
218
|
-
path: PropertyPath,
|
|
219
|
-
defaultValue: TDefault
|
|
220
|
-
): LoDashExplicitWrapper<TDefault>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* @see _.get
|
|
224
|
-
*/
|
|
225
|
-
get(
|
|
226
|
-
this: LoDashExplicitWrapper<null | undefined>,
|
|
227
|
-
path: PropertyPath
|
|
228
|
-
): LoDashExplicitWrapper<undefined>;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @see _.get
|
|
232
|
-
*/
|
|
233
|
-
get(
|
|
234
|
-
path: PropertyPath,
|
|
235
|
-
defaultValue?: any
|
|
236
|
-
): LoDashExplicitWrapper<any>;
|
|
237
|
-
}
|
|
238
|
-
}
|
lodash/object/has.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Checks if `path` is a direct property of `object`.
|
|
6
|
-
*
|
|
7
|
-
* @category Object
|
|
8
|
-
* @param object The object to query.
|
|
9
|
-
* @param path The path to check.
|
|
10
|
-
* @returns Returns `true` if `path` exists, else `false`.
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* var object = { 'a': { 'b': { 'c': 3 } } };
|
|
14
|
-
* var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
|
|
15
|
-
*
|
|
16
|
-
* _.has(object, 'a');
|
|
17
|
-
* // => true
|
|
18
|
-
*
|
|
19
|
-
* _.has(object, 'a.b.c');
|
|
20
|
-
* // => true
|
|
21
|
-
*
|
|
22
|
-
* _.has(object, ['a', 'b', 'c']);
|
|
23
|
-
* // => true
|
|
24
|
-
*
|
|
25
|
-
* _.has(other, 'a');
|
|
26
|
-
* // => false
|
|
27
|
-
*/
|
|
28
|
-
has<T>(
|
|
29
|
-
object: T,
|
|
30
|
-
path: PropertyPath
|
|
31
|
-
): boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
35
|
-
/**
|
|
36
|
-
* @see _.has
|
|
37
|
-
*/
|
|
38
|
-
has(path: PropertyPath): boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
42
|
-
/**
|
|
43
|
-
* @see _.has
|
|
44
|
-
*/
|
|
45
|
-
has(path: PropertyPath): LoDashExplicitWrapper<boolean>;
|
|
46
|
-
}
|
|
47
|
-
}
|
lodash/object/hasIn.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Checks if `path` is a direct or inherited property of `object`.
|
|
6
|
-
*
|
|
7
|
-
* @category Object
|
|
8
|
-
* @param object The object to query.
|
|
9
|
-
* @param path The path to check.
|
|
10
|
-
* @returns Returns `true` if `path` exists, else `false`.
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
|
|
14
|
-
*
|
|
15
|
-
* _.hasIn(object, 'a');
|
|
16
|
-
* // => true
|
|
17
|
-
*
|
|
18
|
-
* _.hasIn(object, 'a.b.c');
|
|
19
|
-
* // => true
|
|
20
|
-
*
|
|
21
|
-
* _.hasIn(object, ['a', 'b', 'c']);
|
|
22
|
-
* // => true
|
|
23
|
-
*
|
|
24
|
-
* _.hasIn(object, 'b');
|
|
25
|
-
* // => false
|
|
26
|
-
*/
|
|
27
|
-
hasIn<T>(
|
|
28
|
-
object: T,
|
|
29
|
-
path: PropertyPath
|
|
30
|
-
): boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
34
|
-
/**
|
|
35
|
-
* @see _.hasIn
|
|
36
|
-
*/
|
|
37
|
-
hasIn(path: PropertyPath): boolean;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
41
|
-
/**
|
|
42
|
-
* @see _.hasIn
|
|
43
|
-
*/
|
|
44
|
-
hasIn(path: PropertyPath): LoDashExplicitWrapper<boolean>;
|
|
45
|
-
}
|
|
46
|
-
}
|
lodash/object/invert.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an object composed of the inverted keys and values of object. If object contains duplicate values,
|
|
6
|
-
* subsequent values overwrite property assignments of previous values unless multiValue is true.
|
|
7
|
-
*
|
|
8
|
-
* @param object The object to invert.
|
|
9
|
-
* @param multiValue Allow multiple values per key.
|
|
10
|
-
* @return Returns the new inverted object.
|
|
11
|
-
*/
|
|
12
|
-
invert(
|
|
13
|
-
object: object
|
|
14
|
-
): Dictionary<string>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
18
|
-
/**
|
|
19
|
-
* @see _.invert
|
|
20
|
-
*/
|
|
21
|
-
invert(): LoDashImplicitWrapper<Dictionary<string>>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
25
|
-
/**
|
|
26
|
-
* @see _.invert
|
|
27
|
-
*/
|
|
28
|
-
invert(): LoDashExplicitWrapper<Dictionary<string>>;
|
|
29
|
-
}
|
|
30
|
-
}
|
lodash/object/invertBy.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* This method is like _.invert except that the inverted object is generated from the results of running each
|
|
6
|
-
* element of object through iteratee. The corresponding inverted value of each inverted key is an array of
|
|
7
|
-
* keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).
|
|
8
|
-
*
|
|
9
|
-
* @param object The object to invert.
|
|
10
|
-
* @param interatee The iteratee invoked per element.
|
|
11
|
-
* @return Returns the new inverted object.
|
|
12
|
-
*/
|
|
13
|
-
invertBy<T>(
|
|
14
|
-
object: List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined,
|
|
15
|
-
interatee?: ValueIteratee<T>
|
|
16
|
-
): Dictionary<string[]>;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.invertBy
|
|
20
|
-
*/
|
|
21
|
-
invertBy<T extends object>(
|
|
22
|
-
object: T | null | undefined,
|
|
23
|
-
interatee?: ValueIteratee<T[keyof T]>
|
|
24
|
-
): Dictionary<string[]>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.invertBy
|
|
30
|
-
*/
|
|
31
|
-
invertBy<T>(
|
|
32
|
-
this: LoDashImplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
33
|
-
interatee?: ValueIteratee<T>
|
|
34
|
-
): LoDashImplicitWrapper<Dictionary<string[]>>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see _.invertBy
|
|
38
|
-
*/
|
|
39
|
-
invertBy<T extends object>(
|
|
40
|
-
this: LoDashImplicitWrapper<T | null | undefined>,
|
|
41
|
-
interatee?: ValueIteratee<T[keyof T]>
|
|
42
|
-
): LoDashImplicitWrapper<Dictionary<string[]>>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
46
|
-
/**
|
|
47
|
-
* @see _.invertBy
|
|
48
|
-
*/
|
|
49
|
-
invertBy<T>(
|
|
50
|
-
this: LoDashExplicitWrapper<List<T> | Dictionary<T> | NumericDictionary<T> | null | undefined>,
|
|
51
|
-
interatee?: ValueIteratee<T>
|
|
52
|
-
): LoDashExplicitWrapper<Dictionary<string[]>>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @see _.invertBy
|
|
56
|
-
*/
|
|
57
|
-
invertBy<T extends object>(
|
|
58
|
-
this: LoDashExplicitWrapper<T | null | undefined>,
|
|
59
|
-
interatee?: ValueIteratee<T[keyof T]>
|
|
60
|
-
): LoDashExplicitWrapper<Dictionary<string[]>>;
|
|
61
|
-
}
|
|
62
|
-
}
|
lodash/object/invoke.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Invokes the method at path of object.
|
|
6
|
-
* @param object The object to query.
|
|
7
|
-
* @param path The path of the method to invoke.
|
|
8
|
-
* @param args The arguments to invoke the method with.
|
|
9
|
-
**/
|
|
10
|
-
invoke(
|
|
11
|
-
object: any,
|
|
12
|
-
path: PropertyPath,
|
|
13
|
-
...args: any[]): any;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
17
|
-
/**
|
|
18
|
-
* @see _.invoke
|
|
19
|
-
**/
|
|
20
|
-
invoke(
|
|
21
|
-
path: PropertyPath,
|
|
22
|
-
...args: any[]): any;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
26
|
-
/**
|
|
27
|
-
* @see _.invoke
|
|
28
|
-
**/
|
|
29
|
-
invoke(
|
|
30
|
-
path: PropertyPath,
|
|
31
|
-
...args: any[]): LoDashExplicitWrapper<any>;
|
|
32
|
-
}
|
|
33
|
-
}
|
lodash/object/keys.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an array of the own enumerable property names of object.
|
|
6
|
-
*
|
|
7
|
-
* Note: Non-object values are coerced to objects. See the ES spec for more details.
|
|
8
|
-
*
|
|
9
|
-
* @param object The object to query.
|
|
10
|
-
* @return Returns the array of property names.
|
|
11
|
-
*/
|
|
12
|
-
keys(object?: any): string[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
16
|
-
/**
|
|
17
|
-
* @see _.keys
|
|
18
|
-
*/
|
|
19
|
-
keys(): LoDashImplicitWrapper<string[]>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
23
|
-
/**
|
|
24
|
-
* @see _.keys
|
|
25
|
-
*/
|
|
26
|
-
keys(): LoDashExplicitWrapper<string[]>;
|
|
27
|
-
}
|
|
28
|
-
}
|
lodash/object/keysIn.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Creates an array of the own and inherited enumerable property names of object.
|
|
6
|
-
*
|
|
7
|
-
* Note: Non-object values are coerced to objects.
|
|
8
|
-
*
|
|
9
|
-
* @param object The object to query.
|
|
10
|
-
* @return An array of property names.
|
|
11
|
-
*/
|
|
12
|
-
keysIn(object?: any): string[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
16
|
-
/**
|
|
17
|
-
* @see _.keysIn
|
|
18
|
-
*/
|
|
19
|
-
keysIn(): LoDashImplicitWrapper<string[]>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
23
|
-
/**
|
|
24
|
-
* @see _.keysIn
|
|
25
|
-
*/
|
|
26
|
-
keysIn(): LoDashExplicitWrapper<string[]>;
|
|
27
|
-
}
|
|
28
|
-
}
|
lodash/object/mapKeys.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* The opposite of _.mapValues; this method creates an object with the same values as object and keys generated
|
|
6
|
-
* by running each own enumerable property of object through iteratee.
|
|
7
|
-
*
|
|
8
|
-
* @param object The object to iterate over.
|
|
9
|
-
* @param iteratee The function invoked per iteration.
|
|
10
|
-
* @param thisArg The this binding of iteratee.
|
|
11
|
-
* @return Returns the new mapped object.
|
|
12
|
-
*/
|
|
13
|
-
mapKeys<T>(
|
|
14
|
-
object: List<T> | null | undefined,
|
|
15
|
-
iteratee?: ListIteratee<T>
|
|
16
|
-
): Dictionary<T>;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @see _.mapKeys
|
|
20
|
-
*/
|
|
21
|
-
mapKeys<T>(
|
|
22
|
-
object: Dictionary<T> | null | undefined,
|
|
23
|
-
iteratee?: DictionaryIteratee<T>
|
|
24
|
-
): Dictionary<T>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @see _.mapKeys
|
|
28
|
-
*/
|
|
29
|
-
mapKeys(
|
|
30
|
-
object: object | null | undefined,
|
|
31
|
-
iteratee?: ObjectIteratee<any>
|
|
32
|
-
): Dictionary<any>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
36
|
-
/**
|
|
37
|
-
* @see _.mapKeys
|
|
38
|
-
*/
|
|
39
|
-
mapKeys<T>(
|
|
40
|
-
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
|
41
|
-
iteratee?: ListIteratee<T>
|
|
42
|
-
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @see _.mapKeys
|
|
46
|
-
*/
|
|
47
|
-
mapKeys<T>(
|
|
48
|
-
this: LoDashImplicitWrapper<Dictionary<T> | null | undefined>,
|
|
49
|
-
iteratee?: DictionaryIteratee<T>
|
|
50
|
-
): LoDashImplicitWrapper<Dictionary<T>>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @see _.mapKeys
|
|
54
|
-
*/
|
|
55
|
-
mapKeys(
|
|
56
|
-
this: LoDashImplicitWrapper<object | null | undefined>,
|
|
57
|
-
iteratee?: ObjectIteratee<any>
|
|
58
|
-
): LoDashImplicitWrapper<Dictionary<any>>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
62
|
-
/**
|
|
63
|
-
* @see _.mapKeys
|
|
64
|
-
*/
|
|
65
|
-
mapKeys<T>(
|
|
66
|
-
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
|
67
|
-
iteratee?: ListIteratee<T>
|
|
68
|
-
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @see _.mapKeys
|
|
72
|
-
*/
|
|
73
|
-
mapKeys<T>(
|
|
74
|
-
this: LoDashExplicitWrapper<Dictionary<T> | null | undefined>,
|
|
75
|
-
iteratee?: DictionaryIteratee<T>
|
|
76
|
-
): LoDashExplicitWrapper<Dictionary<T>>;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @see _.mapKeys
|
|
80
|
-
*/
|
|
81
|
-
mapKeys(
|
|
82
|
-
this: LoDashExplicitWrapper<object | null | undefined>,
|
|
83
|
-
iteratee?: ObjectIteratee<any>
|
|
84
|
-
): LoDashExplicitWrapper<Dictionary<any>>;
|
|
85
|
-
}
|
|
86
|
-
}
|