aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@types
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/@types
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
downloadwallet-core-363723fc84f7b8477592e0105aeb331ec9a017af.tar.xz
node_modules
Diffstat (limited to 'node_modules/@types')
-rw-r--r--node_modules/@types/fs-extra/LICENSE42
-rw-r--r--node_modules/@types/fs-extra/README.md2
-rw-r--r--node_modules/@types/fs-extra/index.d.ts597
-rw-r--r--node_modules/@types/fs-extra/package.json4
-rw-r--r--node_modules/@types/glob/README.md18
-rw-r--r--node_modules/@types/glob/index.d.ts109
-rw-r--r--node_modules/@types/glob/package.json19
-rw-r--r--node_modules/@types/glob/types-metadata.json32
-rw-r--r--node_modules/@types/handlebars/LICENSE21
-rw-r--r--node_modules/@types/handlebars/README.md4
-rw-r--r--node_modules/@types/handlebars/index.d.ts614
-rw-r--r--node_modules/@types/handlebars/package.json6
-rw-r--r--node_modules/@types/lodash/LICENSE42
-rw-r--r--node_modules/@types/lodash/README.md4
-rw-r--r--node_modules/@types/lodash/add.d.ts2
-rw-r--r--node_modules/@types/lodash/add/index.d.ts2
-rw-r--r--node_modules/@types/lodash/after.d.ts2
-rw-r--r--node_modules/@types/lodash/after/index.d.ts2
-rw-r--r--node_modules/@types/lodash/ary.d.ts2
-rw-r--r--node_modules/@types/lodash/ary/index.d.ts2
-rw-r--r--node_modules/@types/lodash/assign.d.ts2
-rw-r--r--node_modules/@types/lodash/assign/index.d.ts2
-rw-r--r--node_modules/@types/lodash/assignIn.d.ts2
-rw-r--r--node_modules/@types/lodash/assignIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/assignInWith.d.ts2
-rw-r--r--node_modules/@types/lodash/assignInWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/assignWith.d.ts2
-rw-r--r--node_modules/@types/lodash/assignWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/at.d.ts2
-rw-r--r--node_modules/@types/lodash/at/index.d.ts2
-rw-r--r--node_modules/@types/lodash/attempt.d.ts2
-rw-r--r--node_modules/@types/lodash/attempt/index.d.ts2
-rw-r--r--node_modules/@types/lodash/before.d.ts2
-rw-r--r--node_modules/@types/lodash/before/index.d.ts2
-rw-r--r--node_modules/@types/lodash/bind.d.ts2
-rw-r--r--node_modules/@types/lodash/bind/index.d.ts2
-rw-r--r--node_modules/@types/lodash/bindAll.d.ts2
-rw-r--r--node_modules/@types/lodash/bindAll/index.d.ts2
-rw-r--r--node_modules/@types/lodash/bindKey.d.ts2
-rw-r--r--node_modules/@types/lodash/bindKey/index.d.ts2
-rw-r--r--node_modules/@types/lodash/camelCase.d.ts2
-rw-r--r--node_modules/@types/lodash/camelCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/capitalize.d.ts2
-rw-r--r--node_modules/@types/lodash/capitalize/index.d.ts2
-rw-r--r--node_modules/@types/lodash/castArray.d.ts2
-rw-r--r--node_modules/@types/lodash/castArray/index.d.ts2
-rw-r--r--node_modules/@types/lodash/ceil.d.ts2
-rw-r--r--node_modules/@types/lodash/ceil/index.d.ts2
-rw-r--r--node_modules/@types/lodash/chain.d.ts2
-rw-r--r--node_modules/@types/lodash/chain/index.d.ts2
-rw-r--r--node_modules/@types/lodash/chunk.d.ts2
-rw-r--r--node_modules/@types/lodash/chunk/index.d.ts2
-rw-r--r--node_modules/@types/lodash/clamp.d.ts2
-rw-r--r--node_modules/@types/lodash/clamp/index.d.ts2
-rw-r--r--node_modules/@types/lodash/clone.d.ts2
-rw-r--r--node_modules/@types/lodash/clone/index.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneDeep.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneDeep/index.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneDeepWith.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneDeepWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneWith.d.ts2
-rw-r--r--node_modules/@types/lodash/cloneWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/compact.d.ts2
-rw-r--r--node_modules/@types/lodash/compact/index.d.ts2
-rw-r--r--node_modules/@types/lodash/concat.d.ts2
-rw-r--r--node_modules/@types/lodash/concat/index.d.ts2
-rw-r--r--node_modules/@types/lodash/constant.d.ts2
-rw-r--r--node_modules/@types/lodash/constant/index.d.ts2
-rw-r--r--node_modules/@types/lodash/countBy.d.ts2
-rw-r--r--node_modules/@types/lodash/countBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/create.d.ts2
-rw-r--r--node_modules/@types/lodash/create/index.d.ts2
-rw-r--r--node_modules/@types/lodash/curry.d.ts2
-rw-r--r--node_modules/@types/lodash/curry/index.d.ts2
-rw-r--r--node_modules/@types/lodash/curryRight.d.ts2
-rw-r--r--node_modules/@types/lodash/curryRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/debounce.d.ts2
-rw-r--r--node_modules/@types/lodash/debounce/index.d.ts2
-rw-r--r--node_modules/@types/lodash/deburr.d.ts2
-rw-r--r--node_modules/@types/lodash/deburr/index.d.ts2
-rw-r--r--node_modules/@types/lodash/defaults.d.ts2
-rw-r--r--node_modules/@types/lodash/defaults/index.d.ts2
-rw-r--r--node_modules/@types/lodash/defaultsDeep.d.ts2
-rw-r--r--node_modules/@types/lodash/defaultsDeep/index.d.ts2
-rw-r--r--node_modules/@types/lodash/defer.d.ts2
-rw-r--r--node_modules/@types/lodash/defer/index.d.ts2
-rw-r--r--node_modules/@types/lodash/delay.d.ts2
-rw-r--r--node_modules/@types/lodash/delay/index.d.ts2
-rw-r--r--node_modules/@types/lodash/difference.d.ts2
-rw-r--r--node_modules/@types/lodash/difference/index.d.ts2
-rw-r--r--node_modules/@types/lodash/differenceBy.d.ts2
-rw-r--r--node_modules/@types/lodash/differenceBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/differenceWith.d.ts2
-rw-r--r--node_modules/@types/lodash/differenceWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/drop.d.ts2
-rw-r--r--node_modules/@types/lodash/drop/index.d.ts2
-rw-r--r--node_modules/@types/lodash/dropRight.d.ts2
-rw-r--r--node_modules/@types/lodash/dropRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/dropRightWhile.d.ts2
-rw-r--r--node_modules/@types/lodash/dropRightWhile/index.d.ts2
-rw-r--r--node_modules/@types/lodash/dropWhile.d.ts2
-rw-r--r--node_modules/@types/lodash/dropWhile/index.d.ts2
-rw-r--r--node_modules/@types/lodash/each.d.ts2
-rw-r--r--node_modules/@types/lodash/each/index.d.ts2
-rw-r--r--node_modules/@types/lodash/eachRight.d.ts2
-rw-r--r--node_modules/@types/lodash/eachRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/endsWith.d.ts2
-rw-r--r--node_modules/@types/lodash/endsWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/eq.d.ts2
-rw-r--r--node_modules/@types/lodash/eq/index.d.ts2
-rw-r--r--node_modules/@types/lodash/escape.d.ts2
-rw-r--r--node_modules/@types/lodash/escape/index.d.ts2
-rw-r--r--node_modules/@types/lodash/escapeRegExp.d.ts2
-rw-r--r--node_modules/@types/lodash/escapeRegExp/index.d.ts2
-rw-r--r--node_modules/@types/lodash/every.d.ts2
-rw-r--r--node_modules/@types/lodash/every/index.d.ts2
-rw-r--r--node_modules/@types/lodash/extend.d.ts2
-rw-r--r--node_modules/@types/lodash/extend/index.d.ts2
-rw-r--r--node_modules/@types/lodash/extendWith.d.ts2
-rw-r--r--node_modules/@types/lodash/extendWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/fb/index.d.ts2
-rw-r--r--node_modules/@types/lodash/fill.d.ts2
-rw-r--r--node_modules/@types/lodash/fill/index.d.ts2
-rw-r--r--node_modules/@types/lodash/filter.d.ts2
-rw-r--r--node_modules/@types/lodash/filter/index.d.ts2
-rw-r--r--node_modules/@types/lodash/find.d.ts2
-rw-r--r--node_modules/@types/lodash/find/index.d.ts2
-rw-r--r--node_modules/@types/lodash/findIndex.d.ts2
-rw-r--r--node_modules/@types/lodash/findIndex/index.d.ts2
-rw-r--r--node_modules/@types/lodash/findKey.d.ts2
-rw-r--r--node_modules/@types/lodash/findKey/index.d.ts2
-rw-r--r--node_modules/@types/lodash/findLast.d.ts2
-rw-r--r--node_modules/@types/lodash/findLast/index.d.ts2
-rw-r--r--node_modules/@types/lodash/findLastIndex.d.ts2
-rw-r--r--node_modules/@types/lodash/findLastIndex/index.d.ts2
-rw-r--r--node_modules/@types/lodash/findLastKey.d.ts2
-rw-r--r--node_modules/@types/lodash/findLastKey/index.d.ts2
-rw-r--r--node_modules/@types/lodash/first.d.ts2
-rw-r--r--node_modules/@types/lodash/first/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flatMap.d.ts2
-rw-r--r--node_modules/@types/lodash/flatMap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flatten.d.ts2
-rw-r--r--node_modules/@types/lodash/flatten/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flattenDeep.d.ts2
-rw-r--r--node_modules/@types/lodash/flattenDeep/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flattenDepth.d.ts2
-rw-r--r--node_modules/@types/lodash/flattenDepth/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flip.d.ts2
-rw-r--r--node_modules/@types/lodash/flip/index.d.ts2
-rw-r--r--node_modules/@types/lodash/floor.d.ts2
-rw-r--r--node_modules/@types/lodash/floor/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flow.d.ts2
-rw-r--r--node_modules/@types/lodash/flow/index.d.ts2
-rw-r--r--node_modules/@types/lodash/flowRight.d.ts2
-rw-r--r--node_modules/@types/lodash/flowRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forEach.d.ts2
-rw-r--r--node_modules/@types/lodash/forEach/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forEachRight.d.ts2
-rw-r--r--node_modules/@types/lodash/forEachRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forIn.d.ts2
-rw-r--r--node_modules/@types/lodash/forIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forInRight.d.ts2
-rw-r--r--node_modules/@types/lodash/forInRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forOwn.d.ts2
-rw-r--r--node_modules/@types/lodash/forOwn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/forOwnRight.d.ts2
-rw-r--r--node_modules/@types/lodash/forOwnRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/fromPairs.d.ts2
-rw-r--r--node_modules/@types/lodash/fromPairs/index.d.ts2
-rw-r--r--node_modules/@types/lodash/functions.d.ts2
-rw-r--r--node_modules/@types/lodash/functions/index.d.ts2
-rw-r--r--node_modules/@types/lodash/functionsIn.d.ts2
-rw-r--r--node_modules/@types/lodash/functionsIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/get.d.ts2
-rw-r--r--node_modules/@types/lodash/get/index.d.ts2
-rw-r--r--node_modules/@types/lodash/groupBy.d.ts2
-rw-r--r--node_modules/@types/lodash/groupBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/gt.d.ts2
-rw-r--r--node_modules/@types/lodash/gt/index.d.ts2
-rw-r--r--node_modules/@types/lodash/gte.d.ts2
-rw-r--r--node_modules/@types/lodash/gte/index.d.ts2
-rw-r--r--node_modules/@types/lodash/has.d.ts2
-rw-r--r--node_modules/@types/lodash/has/index.d.ts2
-rw-r--r--node_modules/@types/lodash/hasIn.d.ts2
-rw-r--r--node_modules/@types/lodash/hasIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/head.d.ts2
-rw-r--r--node_modules/@types/lodash/head/index.d.ts2
-rw-r--r--node_modules/@types/lodash/identity.d.ts2
-rw-r--r--node_modules/@types/lodash/identity/index.d.ts2
-rw-r--r--node_modules/@types/lodash/inRange.d.ts2
-rw-r--r--node_modules/@types/lodash/inRange/index.d.ts2
-rw-r--r--node_modules/@types/lodash/includes.d.ts2
-rw-r--r--node_modules/@types/lodash/includes/index.d.ts2
-rw-r--r--node_modules/@types/lodash/index.d.ts39642
-rw-r--r--node_modules/@types/lodash/indexOf.d.ts2
-rw-r--r--node_modules/@types/lodash/indexOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/initial.d.ts2
-rw-r--r--node_modules/@types/lodash/initial/index.d.ts2
-rw-r--r--node_modules/@types/lodash/intersection.d.ts2
-rw-r--r--node_modules/@types/lodash/intersection/index.d.ts2
-rw-r--r--node_modules/@types/lodash/intersectionBy.d.ts2
-rw-r--r--node_modules/@types/lodash/intersectionBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/intersectionWith.d.ts2
-rw-r--r--node_modules/@types/lodash/intersectionWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/invert.d.ts2
-rw-r--r--node_modules/@types/lodash/invert/index.d.ts2
-rw-r--r--node_modules/@types/lodash/invertBy.d.ts2
-rw-r--r--node_modules/@types/lodash/invertBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/invoke.d.ts2
-rw-r--r--node_modules/@types/lodash/invoke/index.d.ts2
-rw-r--r--node_modules/@types/lodash/invokeMap.d.ts2
-rw-r--r--node_modules/@types/lodash/invokeMap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isArguments.d.ts2
-rw-r--r--node_modules/@types/lodash/isArguments/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isArray.d.ts2
-rw-r--r--node_modules/@types/lodash/isArray/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayBuffer.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayBuffer/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayLike.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayLike/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayLikeObject.d.ts2
-rw-r--r--node_modules/@types/lodash/isArrayLikeObject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isBoolean.d.ts2
-rw-r--r--node_modules/@types/lodash/isBoolean/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isBuffer.d.ts2
-rw-r--r--node_modules/@types/lodash/isBuffer/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isDate.d.ts2
-rw-r--r--node_modules/@types/lodash/isDate/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isElement.d.ts2
-rw-r--r--node_modules/@types/lodash/isElement/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isEmpty.d.ts2
-rw-r--r--node_modules/@types/lodash/isEmpty/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isEqual.d.ts2
-rw-r--r--node_modules/@types/lodash/isEqual/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isEqualWith.d.ts2
-rw-r--r--node_modules/@types/lodash/isEqualWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isError.d.ts2
-rw-r--r--node_modules/@types/lodash/isError/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isFinite.d.ts2
-rw-r--r--node_modules/@types/lodash/isFinite/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isFunction.d.ts2
-rw-r--r--node_modules/@types/lodash/isFunction/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isInteger.d.ts2
-rw-r--r--node_modules/@types/lodash/isInteger/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isLength.d.ts2
-rw-r--r--node_modules/@types/lodash/isLength/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isMap.d.ts2
-rw-r--r--node_modules/@types/lodash/isMap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isMatch.d.ts2
-rw-r--r--node_modules/@types/lodash/isMatch/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isMatchWith.d.ts2
-rw-r--r--node_modules/@types/lodash/isMatchWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isNaN.d.ts2
-rw-r--r--node_modules/@types/lodash/isNaN/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isNative.d.ts2
-rw-r--r--node_modules/@types/lodash/isNative/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isNil.d.ts2
-rw-r--r--node_modules/@types/lodash/isNil/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isNull.d.ts2
-rw-r--r--node_modules/@types/lodash/isNull/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isNumber.d.ts2
-rw-r--r--node_modules/@types/lodash/isNumber/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isObject.d.ts2
-rw-r--r--node_modules/@types/lodash/isObject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isObjectLike.d.ts2
-rw-r--r--node_modules/@types/lodash/isObjectLike/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isPlainObject.d.ts2
-rw-r--r--node_modules/@types/lodash/isPlainObject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isRegExp.d.ts2
-rw-r--r--node_modules/@types/lodash/isRegExp/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isSafeInteger.d.ts2
-rw-r--r--node_modules/@types/lodash/isSafeInteger/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isSet.d.ts2
-rw-r--r--node_modules/@types/lodash/isSet/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isString.d.ts2
-rw-r--r--node_modules/@types/lodash/isString/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isSymbol.d.ts2
-rw-r--r--node_modules/@types/lodash/isSymbol/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isTypedArray.d.ts2
-rw-r--r--node_modules/@types/lodash/isTypedArray/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isUndefined.d.ts2
-rw-r--r--node_modules/@types/lodash/isUndefined/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isWeakMap.d.ts2
-rw-r--r--node_modules/@types/lodash/isWeakMap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/isWeakSet.d.ts2
-rw-r--r--node_modules/@types/lodash/isWeakSet/index.d.ts2
-rw-r--r--node_modules/@types/lodash/iteratee.d.ts2
-rw-r--r--node_modules/@types/lodash/iteratee/index.d.ts2
-rw-r--r--node_modules/@types/lodash/join.d.ts2
-rw-r--r--node_modules/@types/lodash/join/index.d.ts2
-rw-r--r--node_modules/@types/lodash/kebabCase.d.ts2
-rw-r--r--node_modules/@types/lodash/kebabCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/keyBy.d.ts2
-rw-r--r--node_modules/@types/lodash/keyBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/keys.d.ts2
-rw-r--r--node_modules/@types/lodash/keys/index.d.ts2
-rw-r--r--node_modules/@types/lodash/keysIn.d.ts2
-rw-r--r--node_modules/@types/lodash/keysIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/last.d.ts2
-rw-r--r--node_modules/@types/lodash/last/index.d.ts2
-rw-r--r--node_modules/@types/lodash/lastIndexOf.d.ts2
-rw-r--r--node_modules/@types/lodash/lastIndexOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/lowerCase.d.ts2
-rw-r--r--node_modules/@types/lodash/lowerCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/lowerFirst.d.ts2
-rw-r--r--node_modules/@types/lodash/lowerFirst/index.d.ts2
-rw-r--r--node_modules/@types/lodash/lt.d.ts2
-rw-r--r--node_modules/@types/lodash/lt/index.d.ts2
-rw-r--r--node_modules/@types/lodash/lte.d.ts2
-rw-r--r--node_modules/@types/lodash/lte/index.d.ts2
-rw-r--r--node_modules/@types/lodash/map.d.ts2
-rw-r--r--node_modules/@types/lodash/map/index.d.ts2
-rw-r--r--node_modules/@types/lodash/mapKeys.d.ts2
-rw-r--r--node_modules/@types/lodash/mapKeys/index.d.ts2
-rw-r--r--node_modules/@types/lodash/mapValues.d.ts2
-rw-r--r--node_modules/@types/lodash/mapValues/index.d.ts2
-rw-r--r--node_modules/@types/lodash/matches.d.ts2
-rw-r--r--node_modules/@types/lodash/matches/index.d.ts2
-rw-r--r--node_modules/@types/lodash/matchesProperty.d.ts2
-rw-r--r--node_modules/@types/lodash/matchesProperty/index.d.ts2
-rw-r--r--node_modules/@types/lodash/max.d.ts2
-rw-r--r--node_modules/@types/lodash/max/index.d.ts2
-rw-r--r--node_modules/@types/lodash/maxBy.d.ts2
-rw-r--r--node_modules/@types/lodash/maxBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/mean.d.ts2
-rw-r--r--node_modules/@types/lodash/mean/index.d.ts2
-rw-r--r--node_modules/@types/lodash/meanBy.d.ts2
-rw-r--r--node_modules/@types/lodash/meanBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/memoize.d.ts2
-rw-r--r--node_modules/@types/lodash/memoize/index.d.ts2
-rw-r--r--node_modules/@types/lodash/merge.d.ts2
-rw-r--r--node_modules/@types/lodash/merge/index.d.ts2
-rw-r--r--node_modules/@types/lodash/mergeWith.d.ts2
-rw-r--r--node_modules/@types/lodash/mergeWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/method.d.ts2
-rw-r--r--node_modules/@types/lodash/method/index.d.ts2
-rw-r--r--node_modules/@types/lodash/methodOf.d.ts2
-rw-r--r--node_modules/@types/lodash/methodOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/min.d.ts2
-rw-r--r--node_modules/@types/lodash/min/index.d.ts2
-rw-r--r--node_modules/@types/lodash/minBy.d.ts2
-rw-r--r--node_modules/@types/lodash/minBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/mixin.d.ts2
-rw-r--r--node_modules/@types/lodash/mixin/index.d.ts2
-rw-r--r--node_modules/@types/lodash/negate.d.ts2
-rw-r--r--node_modules/@types/lodash/negate/index.d.ts2
-rw-r--r--node_modules/@types/lodash/noConflict.d.ts2
-rw-r--r--node_modules/@types/lodash/noConflict/index.d.ts2
-rw-r--r--node_modules/@types/lodash/noop.d.ts2
-rw-r--r--node_modules/@types/lodash/noop/index.d.ts2
-rw-r--r--node_modules/@types/lodash/now.d.ts2
-rw-r--r--node_modules/@types/lodash/now/index.d.ts2
-rw-r--r--node_modules/@types/lodash/nth/index.d.ts2
-rw-r--r--node_modules/@types/lodash/nthArg.d.ts2
-rw-r--r--node_modules/@types/lodash/nthArg/index.d.ts2
-rw-r--r--node_modules/@types/lodash/omit.d.ts2
-rw-r--r--node_modules/@types/lodash/omit/index.d.ts2
-rw-r--r--node_modules/@types/lodash/omitBy.d.ts2
-rw-r--r--node_modules/@types/lodash/omitBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/once.d.ts2
-rw-r--r--node_modules/@types/lodash/once/index.d.ts2
-rw-r--r--node_modules/@types/lodash/orderBy.d.ts2
-rw-r--r--node_modules/@types/lodash/orderBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/over.d.ts2
-rw-r--r--node_modules/@types/lodash/over/index.d.ts2
-rw-r--r--node_modules/@types/lodash/overArgs.d.ts2
-rw-r--r--node_modules/@types/lodash/overArgs/index.d.ts2
-rw-r--r--node_modules/@types/lodash/overEvery.d.ts2
-rw-r--r--node_modules/@types/lodash/overEvery/index.d.ts2
-rw-r--r--node_modules/@types/lodash/overSome.d.ts2
-rw-r--r--node_modules/@types/lodash/overSome/index.d.ts2
-rw-r--r--node_modules/@types/lodash/package.json12
-rw-r--r--node_modules/@types/lodash/pad.d.ts2
-rw-r--r--node_modules/@types/lodash/pad/index.d.ts2
-rw-r--r--node_modules/@types/lodash/padEnd.d.ts2
-rw-r--r--node_modules/@types/lodash/padEnd/index.d.ts2
-rw-r--r--node_modules/@types/lodash/padStart.d.ts2
-rw-r--r--node_modules/@types/lodash/padStart/index.d.ts2
-rw-r--r--node_modules/@types/lodash/parseInt.d.ts2
-rw-r--r--node_modules/@types/lodash/parseInt/index.d.ts2
-rw-r--r--node_modules/@types/lodash/partial.d.ts2
-rw-r--r--node_modules/@types/lodash/partial/index.d.ts2
-rw-r--r--node_modules/@types/lodash/partialRight.d.ts2
-rw-r--r--node_modules/@types/lodash/partialRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/partition.d.ts2
-rw-r--r--node_modules/@types/lodash/partition/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pick.d.ts2
-rw-r--r--node_modules/@types/lodash/pick/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pickBy.d.ts2
-rw-r--r--node_modules/@types/lodash/pickBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/property.d.ts2
-rw-r--r--node_modules/@types/lodash/property/index.d.ts2
-rw-r--r--node_modules/@types/lodash/propertyOf.d.ts2
-rw-r--r--node_modules/@types/lodash/propertyOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pull.d.ts2
-rw-r--r--node_modules/@types/lodash/pull/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAll.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAll/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAllBy.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAllBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAt.d.ts2
-rw-r--r--node_modules/@types/lodash/pullAt/index.d.ts2
-rw-r--r--node_modules/@types/lodash/random.d.ts2
-rw-r--r--node_modules/@types/lodash/random/index.d.ts2
-rw-r--r--node_modules/@types/lodash/range.d.ts2
-rw-r--r--node_modules/@types/lodash/range/index.d.ts2
-rw-r--r--node_modules/@types/lodash/rangeRight.d.ts2
-rw-r--r--node_modules/@types/lodash/rangeRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/rearg.d.ts2
-rw-r--r--node_modules/@types/lodash/rearg/index.d.ts2
-rw-r--r--node_modules/@types/lodash/reduce.d.ts2
-rw-r--r--node_modules/@types/lodash/reduce/index.d.ts2
-rw-r--r--node_modules/@types/lodash/reduceRight.d.ts2
-rw-r--r--node_modules/@types/lodash/reduceRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/reject.d.ts2
-rw-r--r--node_modules/@types/lodash/reject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/remove.d.ts2
-rw-r--r--node_modules/@types/lodash/remove/index.d.ts2
-rw-r--r--node_modules/@types/lodash/repeat.d.ts2
-rw-r--r--node_modules/@types/lodash/repeat/index.d.ts2
-rw-r--r--node_modules/@types/lodash/replace.d.ts2
-rw-r--r--node_modules/@types/lodash/replace/index.d.ts2
-rw-r--r--node_modules/@types/lodash/rest.d.ts2
-rw-r--r--node_modules/@types/lodash/rest/index.d.ts2
-rw-r--r--node_modules/@types/lodash/result.d.ts2
-rw-r--r--node_modules/@types/lodash/result/index.d.ts2
-rw-r--r--node_modules/@types/lodash/reverse.d.ts2
-rw-r--r--node_modules/@types/lodash/reverse/index.d.ts2
-rw-r--r--node_modules/@types/lodash/round.d.ts2
-rw-r--r--node_modules/@types/lodash/round/index.d.ts2
-rw-r--r--node_modules/@types/lodash/runInContext.d.ts2
-rw-r--r--node_modules/@types/lodash/runInContext/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sample.d.ts2
-rw-r--r--node_modules/@types/lodash/sample/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sampleSize.d.ts2
-rw-r--r--node_modules/@types/lodash/sampleSize/index.d.ts2
-rw-r--r--node_modules/@types/lodash/set.d.ts2
-rw-r--r--node_modules/@types/lodash/set/index.d.ts2
-rw-r--r--node_modules/@types/lodash/setWith.d.ts2
-rw-r--r--node_modules/@types/lodash/setWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/shuffle.d.ts2
-rw-r--r--node_modules/@types/lodash/shuffle/index.d.ts2
-rw-r--r--node_modules/@types/lodash/size.d.ts2
-rw-r--r--node_modules/@types/lodash/size/index.d.ts2
-rw-r--r--node_modules/@types/lodash/slice.d.ts2
-rw-r--r--node_modules/@types/lodash/slice/index.d.ts2
-rw-r--r--node_modules/@types/lodash/snakeCase.d.ts2
-rw-r--r--node_modules/@types/lodash/snakeCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/some.d.ts2
-rw-r--r--node_modules/@types/lodash/some/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortBy.d.ts2
-rw-r--r--node_modules/@types/lodash/sortBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndex.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndex/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndexBy.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndexBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndexOf.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedIndexOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndex.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndex/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndexBy.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndexBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndexOf.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedLastIndexOf/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedUniq.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedUniq/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedUniqBy.d.ts2
-rw-r--r--node_modules/@types/lodash/sortedUniqBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/split.d.ts2
-rw-r--r--node_modules/@types/lodash/split/index.d.ts2
-rw-r--r--node_modules/@types/lodash/spread.d.ts2
-rw-r--r--node_modules/@types/lodash/spread/index.d.ts2
-rw-r--r--node_modules/@types/lodash/startCase.d.ts2
-rw-r--r--node_modules/@types/lodash/startCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/startsWith.d.ts2
-rw-r--r--node_modules/@types/lodash/startsWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/subtract.d.ts2
-rw-r--r--node_modules/@types/lodash/subtract/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sum.d.ts2
-rw-r--r--node_modules/@types/lodash/sum/index.d.ts2
-rw-r--r--node_modules/@types/lodash/sumBy.d.ts2
-rw-r--r--node_modules/@types/lodash/sumBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/tail.d.ts2
-rw-r--r--node_modules/@types/lodash/tail/index.d.ts2
-rw-r--r--node_modules/@types/lodash/take.d.ts2
-rw-r--r--node_modules/@types/lodash/take/index.d.ts2
-rw-r--r--node_modules/@types/lodash/takeRight.d.ts2
-rw-r--r--node_modules/@types/lodash/takeRight/index.d.ts2
-rw-r--r--node_modules/@types/lodash/takeRightWhile.d.ts2
-rw-r--r--node_modules/@types/lodash/takeRightWhile/index.d.ts2
-rw-r--r--node_modules/@types/lodash/takeWhile.d.ts2
-rw-r--r--node_modules/@types/lodash/takeWhile/index.d.ts2
-rw-r--r--node_modules/@types/lodash/tap.d.ts2
-rw-r--r--node_modules/@types/lodash/tap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/template.d.ts2
-rw-r--r--node_modules/@types/lodash/template/index.d.ts2
-rw-r--r--node_modules/@types/lodash/throttle.d.ts2
-rw-r--r--node_modules/@types/lodash/throttle/index.d.ts2
-rw-r--r--node_modules/@types/lodash/thru.d.ts2
-rw-r--r--node_modules/@types/lodash/thru/index.d.ts2
-rw-r--r--node_modules/@types/lodash/times.d.ts2
-rw-r--r--node_modules/@types/lodash/times/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toArray.d.ts2
-rw-r--r--node_modules/@types/lodash/toArray/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toInteger.d.ts2
-rw-r--r--node_modules/@types/lodash/toInteger/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toLength.d.ts2
-rw-r--r--node_modules/@types/lodash/toLength/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toLower.d.ts2
-rw-r--r--node_modules/@types/lodash/toLower/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toNumber.d.ts2
-rw-r--r--node_modules/@types/lodash/toNumber/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toPairs.d.ts2
-rw-r--r--node_modules/@types/lodash/toPairs/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toPairsIn.d.ts2
-rw-r--r--node_modules/@types/lodash/toPairsIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toPath.d.ts2
-rw-r--r--node_modules/@types/lodash/toPath/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toPlainObject.d.ts2
-rw-r--r--node_modules/@types/lodash/toPlainObject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toSafeInteger.d.ts2
-rw-r--r--node_modules/@types/lodash/toSafeInteger/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toString.d.ts2
-rw-r--r--node_modules/@types/lodash/toString/index.d.ts2
-rw-r--r--node_modules/@types/lodash/toUpper.d.ts2
-rw-r--r--node_modules/@types/lodash/toUpper/index.d.ts2
-rw-r--r--node_modules/@types/lodash/transform.d.ts2
-rw-r--r--node_modules/@types/lodash/transform/index.d.ts2
-rw-r--r--node_modules/@types/lodash/trim.d.ts2
-rw-r--r--node_modules/@types/lodash/trim/index.d.ts2
-rw-r--r--node_modules/@types/lodash/trimEnd.d.ts2
-rw-r--r--node_modules/@types/lodash/trimEnd/index.d.ts2
-rw-r--r--node_modules/@types/lodash/trimStart.d.ts2
-rw-r--r--node_modules/@types/lodash/trimStart/index.d.ts2
-rw-r--r--node_modules/@types/lodash/truncate.d.ts2
-rw-r--r--node_modules/@types/lodash/truncate/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unary.d.ts2
-rw-r--r--node_modules/@types/lodash/unary/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unescape.d.ts2
-rw-r--r--node_modules/@types/lodash/unescape/index.d.ts2
-rw-r--r--node_modules/@types/lodash/union.d.ts2
-rw-r--r--node_modules/@types/lodash/union/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unionBy.d.ts2
-rw-r--r--node_modules/@types/lodash/unionBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unionWith.d.ts2
-rw-r--r--node_modules/@types/lodash/unionWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/uniq.d.ts2
-rw-r--r--node_modules/@types/lodash/uniq/index.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqBy.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqWith.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqueId.d.ts2
-rw-r--r--node_modules/@types/lodash/uniqueId/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unset.d.ts2
-rw-r--r--node_modules/@types/lodash/unset/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unzip.d.ts2
-rw-r--r--node_modules/@types/lodash/unzip/index.d.ts2
-rw-r--r--node_modules/@types/lodash/unzipWith.d.ts2
-rw-r--r--node_modules/@types/lodash/unzipWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/update.d.ts2
-rw-r--r--node_modules/@types/lodash/update/index.d.ts2
-rw-r--r--node_modules/@types/lodash/upperCase.d.ts2
-rw-r--r--node_modules/@types/lodash/upperCase/index.d.ts2
-rw-r--r--node_modules/@types/lodash/upperFirst.d.ts2
-rw-r--r--node_modules/@types/lodash/upperFirst/index.d.ts2
-rw-r--r--node_modules/@types/lodash/values.d.ts2
-rw-r--r--node_modules/@types/lodash/values/index.d.ts2
-rw-r--r--node_modules/@types/lodash/valuesIn.d.ts2
-rw-r--r--node_modules/@types/lodash/valuesIn/index.d.ts2
-rw-r--r--node_modules/@types/lodash/without.d.ts2
-rw-r--r--node_modules/@types/lodash/without/index.d.ts2
-rw-r--r--node_modules/@types/lodash/words.d.ts2
-rw-r--r--node_modules/@types/lodash/words/index.d.ts2
-rw-r--r--node_modules/@types/lodash/wrap.d.ts2
-rw-r--r--node_modules/@types/lodash/wrap/index.d.ts2
-rw-r--r--node_modules/@types/lodash/xor.d.ts2
-rw-r--r--node_modules/@types/lodash/xor/index.d.ts2
-rw-r--r--node_modules/@types/lodash/xorBy.d.ts2
-rw-r--r--node_modules/@types/lodash/xorBy/index.d.ts2
-rw-r--r--node_modules/@types/lodash/xorWith.d.ts2
-rw-r--r--node_modules/@types/lodash/xorWith/index.d.ts2
-rw-r--r--node_modules/@types/lodash/zip.d.ts2
-rw-r--r--node_modules/@types/lodash/zip/index.d.ts2
-rw-r--r--node_modules/@types/lodash/zipObject.d.ts2
-rw-r--r--node_modules/@types/lodash/zipObject/index.d.ts2
-rw-r--r--node_modules/@types/lodash/zipObjectDeep/index.d.ts2
-rw-r--r--node_modules/@types/lodash/zipWith.d.ts2
-rw-r--r--node_modules/@types/lodash/zipWith/index.d.ts2
-rw-r--r--node_modules/@types/node/LICENSE42
-rw-r--r--node_modules/@types/node/README.md6
-rw-r--r--node_modules/@types/node/index.d.ts10113
-rw-r--r--node_modules/@types/node/package.json46
-rw-r--r--node_modules/@types/react-dom/LICENSE42
-rw-r--r--node_modules/@types/react-dom/README.md6
-rw-r--r--node_modules/@types/react-dom/index.d.ts137
-rw-r--r--node_modules/@types/react-dom/node-stream/index.d.ts20
-rw-r--r--node_modules/@types/react-dom/package.json9
-rw-r--r--node_modules/@types/react-dom/server/index.d.ts48
-rw-r--r--node_modules/@types/react-dom/test-utils/index.d.ts484
-rw-r--r--node_modules/@types/react/README.md4
-rw-r--r--node_modules/@types/react/index.d.ts1615
-rw-r--r--node_modules/@types/react/package.json26
-rw-r--r--node_modules/@types/shelljs/README.md6
-rw-r--r--node_modules/@types/shelljs/index.d.ts22
-rw-r--r--node_modules/@types/shelljs/package.json9
606 files changed, 28940 insertions, 26009 deletions
diff --git a/node_modules/@types/fs-extra/LICENSE b/node_modules/@types/fs-extra/LICENSE
index 4b1ad51b2..21071075c 100644
--- a/node_modules/@types/fs-extra/LICENSE
+++ b/node_modules/@types/fs-extra/LICENSE
@@ -1,21 +1,21 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/fs-extra/README.md b/node_modules/@types/fs-extra/README.md
index 831dcfc65..fe195cf2e 100644
--- a/node_modules/@types/fs-extra/README.md
+++ b/node_modules/@types/fs-extra/README.md
@@ -8,7 +8,7 @@ This package contains type definitions for fs-extra (https://github.com/jprichar
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra
Additional Details
- * Last updated: Mon, 22 May 2017 17:16:10 GMT
+ * Last updated: Sat, 22 Jul 2017 19:03:51 GMT
* Dependencies: fs, node
* Global values: none
diff --git a/node_modules/@types/fs-extra/index.d.ts b/node_modules/@types/fs-extra/index.d.ts
index 1b69cf265..0231cac2d 100644
--- a/node_modules/@types/fs-extra/index.d.ts
+++ b/node_modules/@types/fs-extra/index.d.ts
@@ -1,293 +1,304 @@
-// Type definitions for fs-extra 3.0
-// Project: https://github.com/jprichardson/node-fs-extra
-// Definitions by: Alan Agius <https://github.com/alan-agius4>
-// midknight41 <https://github.com/midknight41>
-// Brendan Forster <https://github.com/shiftkey>
-// Mees van Dijk <https://github.com/mees->
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.2
-
-/// <reference types="node" />
-
-import { Stats } from "fs";
-
-export * from "fs";
-
-export function copy(src: string, dest: string, options?: CopyOptions): Promise<void>;
-export function copy(src: string, dest: string, callback: (err: Error) => void): void;
-export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error) => void): void;
-export function copySync(src: string, dest: string, options?: CopyOptions): void;
-
-export function move(src: string, dest: string, options?: MoveOptions): Promise<void>;
-export function move(src: string, dest: string, callback: (err: Error) => void): void;
-export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error) => void): void;
-export function moveSync(src: string, dest: string, options?: MoveOptions): void;
-
-export function createFile(file: string): Promise<void>;
-export function createFile(file: string, callback: (err: Error) => void): void;
-export function createFileSync(file: string): void;
-
-export function ensureDir(path: string): Promise<void>;
-export function ensureDir(path: string, callback: (err: Error) => void): void;
-export function ensureDirSync(path: string): void;
-
-export function mkdirs(dir: string): Promise<void>;
-export function mkdirs(dir: string, callback: (err: Error) => void): void;
-export function mkdirp(dir: string): Promise<void>;
-export function mkdirp(dir: string, callback: (err: Error) => void): void;
-export function mkdirsSync(dir: string): void;
-export function mkdirpSync(dir: string): void;
-
-export function outputFile(file: string, data: any): Promise<void>;
-export function outputFile(file: string, data: any, callback: (err: Error) => void): void;
-export function outputFileSync(file: string, data: any): void;
-
-export function readJson(file: string, options?: ReadOptions): Promise<any>;
-export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void;
-export function readJson(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void;
-export function readJSON(file: string, options?: ReadOptions): Promise<any>;
-export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void;
-export function readJSON(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void;
-
-export function readJsonSync(file: string, options?: ReadOptions): any;
-export function readJSONSync(file: string, options?: ReadOptions): any;
-
-export function remove(dir: string): Promise<void>;
-export function remove(dir: string, callback: (err: Error) => void): void;
-export function removeSync(dir: string): void;
-
-export function outputJSON(file: string, data: any, options?: WriteOptions): Promise<void>;
-export function outputJSON(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void;
-export function outputJSON(file: string, data: any, callback: (err: Error) => void): void;
-export function outputJson(file: string, data: any, options?: WriteOptions): Promise<void>;
-export function outputJson(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void;
-export function outputJson(file: string, data: any, callback: (err: Error) => void): void;
-export function outputJsonSync(file: string, data: any, options?: WriteOptions): void;
-export function outputJSONSync(file: string, data: any, options?: WriteOptions): void;
-
-export function writeJSON(file: string, object: any, options?: WriteOptions): Promise<void>;
-export function writeJSON(file: string, object: any, callback: (err: Error) => void): void;
-export function writeJSON(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void;
-export function writeJson(file: string, object: any, options?: WriteOptions): Promise<void>;
-export function writeJson(file: string, object: any, callback: (err: Error) => void): void;
-export function writeJson(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void;
-
-export function writeJsonSync(file: string, object: any, options?: WriteOptions): void;
-export function writeJSONSync(file: string, object: any, options?: WriteOptions): void;
-
-export function ensureFile(path: string): Promise<void>;
-export function ensureFile(path: string, callback: (err: Error) => void): void;
-export function ensureFileSync(path: string): void;
-
-export function ensureLink(path: string): Promise<void>;
-export function ensureLink(path: string, callback: (err: Error) => void): void;
-export function ensureLinkSync(path: string): void;
-
-export function ensureSymlink(path: string): Promise<void>;
-export function ensureSymlink(path: string, callback: (err: Error) => void): void;
-export function ensureSymlinkSync(path: string): void;
-
-export function emptyDir(path: string): Promise<void>;
-export function emptyDir(path: string, callback: (err: Error) => void): void;
-export function emptyDirSync(path: string): void;
-
-export function pathExists(path: string): Promise<boolean>;
-export function pathExists(path: string, callback: (err: Error, exists: boolean) => void): void;
-export function pathExistsSync(path: string): boolean;
-
-// fs async methods
-// copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v6/index.d.ts
-
-/** Tests a user's permissions for the file specified by path. */
-export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
-export function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException) => void): void;
-export function access(path: string | Buffer, mode?: number): Promise<void>;
-
-export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number | string; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void;
-export function appendFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
-export function appendFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number | string; flag?: string; }): Promise<void>;
-
-export function chmod(path: string | Buffer, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function chmod(path: string | Buffer, mode: string | number): Promise<void>;
-
-export function chown(path: string | Buffer, uid: number, gid: number): Promise<void>;
-export function chown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-
-export function close(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function close(fd: number): Promise<void>;
-
-export function fchmod(fd: number, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function fchmod(fd: number, mode: string | number): Promise<void>;
-
-export function fchown(fd: number, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function fchown(fd: number, uid: number, gid: number): Promise<void>;
-
-export function fdatasync(fd: number, callback: () => void): void;
-export function fdatasync(fd: number): Promise<void>;
-
-export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
-export function fstat(fd: number): Promise<Stats>;
-
-export function fsync(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function fsync(fd: number): Promise<void>;
-
-export function ftruncate(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function ftruncate(fd: number, len: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function ftruncate(fd: number, len?: number): Promise<void>;
-
-export function futimes(fd: number, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function futimes(fd: number, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function futimes(fd: number, atime: number, mtime: number): Promise<void>;
-export function futimes(fd: number, atime: Date, mtime: Date): Promise<void>;
-
-export function lchown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function lchown(path: string | Buffer, uid: number, gid: number): Promise<void>;
-
-export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function link(srcpath: string | Buffer, dstpath: string | Buffer): Promise<void>;
-
-export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
-export function lstat(path: string | Buffer): Promise<Stats>;
-
-/**
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
-export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
-/**
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
-export function mkdir(path: string | Buffer, mode: number | string, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function mkdir(path: string | Buffer): Promise<void>;
-
-export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
-export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
-export function open(path: string | Buffer, flags: string | number, mode?: number): Promise<number>;
-
-export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void;
-export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): Promise<[number, Buffer]>;
-
-export function readFile(file: string | Buffer | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
-export function readFile(file: string | Buffer | number, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
-export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
-export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }): Promise<string>;
-// tslint:disable-next-line:unified-signatures
-export function readFile(file: string | Buffer | number, encoding: string): Promise<string>;
-export function readFile(file: string | Buffer | number): Promise<Buffer>;
-
-export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
-export function readdir(path: string | Buffer): Promise<string[]>;
-
-export function readlink(path: string | Buffer, callback: (err: NodeJS.ErrnoException, linkString: string) => any): void;
-export function readlink(path: string | Buffer): Promise<string>;
-
-export function realpath(path: string | Buffer, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
-export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
-export function realpath(path: string | Buffer, cache?: { [path: string]: string }): Promise<string>;
-
-export function rename(oldPath: string, newPath: string, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function rename(oldPath: string, newPath: string): Promise<void>;
-
-/**
- * Asynchronous rmdir - removes the directory specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
-export function rmdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function rmdir(path: string | Buffer): Promise<void>;
-
-export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
-export function stat(path: string | Buffer): Promise<Stats>;
-
-export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: string, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string): Promise<void>;
-
-export function truncate(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function truncate(path: string | Buffer, len: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function truncate(path: string | Buffer, len?: number): Promise<void>;
-
-/**
- * Asynchronous unlink - deletes the file specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
-export function unlink(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function unlink(path: string | Buffer): Promise<void>;
-
-export function utimes(path: string | Buffer, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void;
-export function utimes(path: string | Buffer, atime: number, mtime: number): Promise<void>;
-export function utimes(path: string | Buffer, atime: Date, mtime: Date): Promise<void>;
-
-export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
-export function write(fd: number, buffer: Buffer, offset: number, length: number, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
-export function write(fd: number, data: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
-export function write(fd: number, data: any, offset: number, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
-export function write(fd: number, data: any, offset: number, encoding: string, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
-export function write(fd: number, buffer: Buffer, offset: number, length: number, position?: number | null): Promise<[number, Buffer]>;
-export function write(fd: number, data: any, offset: number, encoding?: string): Promise<[number, string]>;
-
-export function writeFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
-export function writeFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): Promise<void>;
-export function writeFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void;
-
-/**
- * Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
- *
- * @param prefix
- * @param callback The created folder path is passed as a string to the callback's second parameter.
- */
-export function mkdtemp(prefix: string): Promise<string>;
-export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
-
-export interface PathEntry {
- path: string;
- stats: Stats;
-}
-
-export interface PathEntryStream {
- read(): PathEntry | null;
-}
-
-export type CopyFilterFunction = (src: string) => boolean;
-
-export type CopyFilter = CopyFilterFunction | RegExp;
-
-export interface CopyOptions {
- dereference?: boolean;
- overwrite?: boolean;
- preserveTimestamps?: boolean;
- errorOnExist?: boolean;
- filter?: CopyFilter;
- recursive?: boolean;
-}
-
-export interface MoveOptions {
- overwrite?: boolean;
- limit?: number;
-}
-
-export interface ReadOptions {
- throws?: boolean;
- fs?: object;
- reviver?: any;
- encoding?: string;
- flag?: string;
-}
-
-export interface WriteOptions {
- fs?: object;
- replacer?: any;
- spaces?: number;
- encoding?: string;
- flag?: string;
- mode?: number;
-}
+// Type definitions for fs-extra 4.0
+// Project: https://github.com/jprichardson/node-fs-extra
+// Definitions by: Alan Agius <https://github.com/alan-agius4>,
+// midknight41 <https://github.com/midknight41>,
+// Brendan Forster <https://github.com/shiftkey>,
+// Mees van Dijk <https://github.com/mees->
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+/// <reference types="node" />
+
+import { Stats } from "fs";
+
+export * from "fs";
+
+export function copy(src: string, dest: string, options?: CopyOptions): Promise<void>;
+export function copy(src: string, dest: string, callback: (err: Error) => void): void;
+export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error) => void): void;
+export function copySync(src: string, dest: string, options?: CopyOptions): void;
+
+export function move(src: string, dest: string, options?: MoveOptions): Promise<void>;
+export function move(src: string, dest: string, callback: (err: Error) => void): void;
+export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error) => void): void;
+export function moveSync(src: string, dest: string, options?: MoveOptions): void;
+
+export function createFile(file: string): Promise<void>;
+export function createFile(file: string, callback: (err: Error) => void): void;
+export function createFileSync(file: string): void;
+
+export function ensureDir(path: string): Promise<void>;
+export function ensureDir(path: string, callback: (err: Error) => void): void;
+export function ensureDirSync(path: string): void;
+
+export function mkdirs(dir: string): Promise<void>;
+export function mkdirs(dir: string, callback: (err: Error) => void): void;
+export function mkdirp(dir: string): Promise<void>;
+export function mkdirp(dir: string, callback: (err: Error) => void): void;
+export function mkdirsSync(dir: string): void;
+export function mkdirpSync(dir: string): void;
+
+export function outputFile(file: string, data: any): Promise<void>;
+export function outputFile(file: string, data: any, callback: (err: Error) => void): void;
+export function outputFileSync(file: string, data: any): void;
+
+export function readJson(file: string, options?: ReadOptions): Promise<any>;
+export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void;
+export function readJson(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void;
+export function readJSON(file: string, options?: ReadOptions): Promise<any>;
+export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void;
+export function readJSON(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void;
+
+export function readJsonSync(file: string, options?: ReadOptions): any;
+export function readJSONSync(file: string, options?: ReadOptions): any;
+
+export function remove(dir: string): Promise<void>;
+export function remove(dir: string, callback: (err: Error) => void): void;
+export function removeSync(dir: string): void;
+
+export function outputJSON(file: string, data: any, options?: WriteOptions): Promise<void>;
+export function outputJSON(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void;
+export function outputJSON(file: string, data: any, callback: (err: Error) => void): void;
+export function outputJson(file: string, data: any, options?: WriteOptions): Promise<void>;
+export function outputJson(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void;
+export function outputJson(file: string, data: any, callback: (err: Error) => void): void;
+export function outputJsonSync(file: string, data: any, options?: WriteOptions): void;
+export function outputJSONSync(file: string, data: any, options?: WriteOptions): void;
+
+export function writeJSON(file: string, object: any, options?: WriteOptions): Promise<void>;
+export function writeJSON(file: string, object: any, callback: (err: Error) => void): void;
+export function writeJSON(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void;
+export function writeJson(file: string, object: any, options?: WriteOptions): Promise<void>;
+export function writeJson(file: string, object: any, callback: (err: Error) => void): void;
+export function writeJson(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void;
+
+export function writeJsonSync(file: string, object: any, options?: WriteOptions): void;
+export function writeJSONSync(file: string, object: any, options?: WriteOptions): void;
+
+export function ensureFile(path: string): Promise<void>;
+export function ensureFile(path: string, callback: (err: Error) => void): void;
+export function ensureFileSync(path: string): void;
+
+export function ensureLink(src: string, dest: string): Promise<void>;
+export function ensureLink(src: string, dest: string, callback: (err: Error) => void): void;
+export function ensureLinkSync(src: string, dest: string): void;
+
+export function ensureSymlink(src: string, dest: string, type?: SymlinkType): Promise<void>;
+export function ensureSymlink(src: string, dest: string, type: SymlinkType, callback: (err: Error) => void): void;
+export function ensureSymlink(src: string, dest: string, callback: (err: Error) => void): void;
+export function ensureSymlinkSync(src: string, dest: string, type?: SymlinkType): void;
+
+export function emptyDir(path: string): Promise<void>;
+export function emptyDir(path: string, callback: (err: Error) => void): void;
+export function emptyDirSync(path: string): void;
+
+export function pathExists(path: string): Promise<boolean>;
+export function pathExists(path: string, callback: (err: Error, exists: boolean) => void): void;
+export function pathExistsSync(path: string): boolean;
+
+// fs async methods
+// copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v6/index.d.ts
+
+/** Tests a user's permissions for the file specified by path. */
+export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
+export function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException) => void): void;
+export function access(path: string | Buffer, mode?: number): Promise<void>;
+
+export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number | string; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void;
+export function appendFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
+export function appendFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number | string; flag?: string; }): Promise<void>;
+
+export function chmod(path: string | Buffer, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function chmod(path: string | Buffer, mode: string | number): Promise<void>;
+
+export function chown(path: string | Buffer, uid: number, gid: number): Promise<void>;
+export function chown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+
+export function close(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function close(fd: number): Promise<void>;
+
+export function fchmod(fd: number, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function fchmod(fd: number, mode: string | number): Promise<void>;
+
+export function fchown(fd: number, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function fchown(fd: number, uid: number, gid: number): Promise<void>;
+
+export function fdatasync(fd: number, callback: () => void): void;
+export function fdatasync(fd: number): Promise<void>;
+
+export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
+export function fstat(fd: number): Promise<Stats>;
+
+export function fsync(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function fsync(fd: number): Promise<void>;
+
+export function ftruncate(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function ftruncate(fd: number, len: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function ftruncate(fd: number, len?: number): Promise<void>;
+
+export function futimes(fd: number, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function futimes(fd: number, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function futimes(fd: number, atime: number, mtime: number): Promise<void>;
+export function futimes(fd: number, atime: Date, mtime: Date): Promise<void>;
+
+export function lchown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function lchown(path: string | Buffer, uid: number, gid: number): Promise<void>;
+
+export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function link(srcpath: string | Buffer, dstpath: string | Buffer): Promise<void>;
+
+export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
+export function lstat(path: string | Buffer): Promise<Stats>;
+
+/**
+ * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
+ *
+ * @param path
+ * @param callback No arguments other than a possible exception are given to the completion callback.
+ */
+export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
+/**
+ * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
+ *
+ * @param path
+ * @param mode
+ * @param callback No arguments other than a possible exception are given to the completion callback.
+ */
+export function mkdir(path: string | Buffer, mode: number | string, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function mkdir(path: string | Buffer): Promise<void>;
+
+export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
+export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
+export function open(path: string | Buffer, flags: string | number, mode?: number): Promise<number>;
+
+export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void;
+export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): Promise<ReadResult>;
+
+export function readFile(file: string | Buffer | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
+export function readFile(file: string | Buffer | number, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
+export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
+export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }): Promise<string>;
+// tslint:disable-next-line:unified-signatures
+export function readFile(file: string | Buffer | number, encoding: string): Promise<string>;
+export function readFile(file: string | Buffer | number): Promise<Buffer>;
+
+export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
+export function readdir(path: string | Buffer): Promise<string[]>;
+
+export function readlink(path: string | Buffer, callback: (err: NodeJS.ErrnoException, linkString: string) => any): void;
+export function readlink(path: string | Buffer): Promise<string>;
+
+export function realpath(path: string | Buffer, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
+export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
+export function realpath(path: string | Buffer, cache?: { [path: string]: string }): Promise<string>;
+
+export function rename(oldPath: string, newPath: string, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function rename(oldPath: string, newPath: string): Promise<void>;
+
+/**
+ * Asynchronous rmdir - removes the directory specified in {path}
+ *
+ * @param path
+ * @param callback No arguments other than a possible exception are given to the completion callback.
+ */
+export function rmdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function rmdir(path: string | Buffer): Promise<void>;
+
+export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
+export function stat(path: string | Buffer): Promise<Stats>;
+
+export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: string, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string): Promise<void>;
+
+export function truncate(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function truncate(path: string | Buffer, len: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function truncate(path: string | Buffer, len?: number): Promise<void>;
+
+/**
+ * Asynchronous unlink - deletes the file specified in {path}
+ *
+ * @param path
+ * @param callback No arguments other than a possible exception are given to the completion callback.
+ */
+export function unlink(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function unlink(path: string | Buffer): Promise<void>;
+
+export function utimes(path: string | Buffer, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void;
+export function utimes(path: string | Buffer, atime: number, mtime: number): Promise<void>;
+export function utimes(path: string | Buffer, atime: Date, mtime: Date): Promise<void>;
+
+export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
+export function write(fd: number, buffer: Buffer, offset: number, length: number, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
+export function write(fd: number, data: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+export function write(fd: number, data: any, offset: number, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+export function write(fd: number, data: any, offset: number, encoding: string, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+export function write(fd: number, buffer: Buffer, offset: number, length: number, position?: number | null): Promise<WriteResult>;
+export function write(fd: number, data: any, offset: number, encoding?: string): Promise<WriteResult>;
+
+export function writeFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
+export function writeFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): Promise<void>;
+export function writeFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void;
+
+/**
+ * Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ *
+ * @param prefix
+ * @param callback The created folder path is passed as a string to the callback's second parameter.
+ */
+export function mkdtemp(prefix: string): Promise<string>;
+export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
+
+export interface PathEntry {
+ path: string;
+ stats: Stats;
+}
+
+export interface PathEntryStream {
+ read(): PathEntry | null;
+}
+
+export type CopyFilter = ((src: string) => boolean) | RegExp;
+
+export type SymlinkType = "dir" | "file";
+
+export interface CopyOptions {
+ dereference?: boolean;
+ overwrite?: boolean;
+ preserveTimestamps?: boolean;
+ errorOnExist?: boolean;
+ filter?: CopyFilter;
+ recursive?: boolean;
+}
+
+export interface MoveOptions {
+ overwrite?: boolean;
+ limit?: number;
+}
+
+export interface ReadOptions {
+ throws?: boolean;
+ fs?: object;
+ reviver?: any;
+ encoding?: string;
+ flag?: string;
+}
+
+export interface WriteOptions {
+ fs?: object;
+ replacer?: any;
+ spaces?: number;
+ encoding?: string;
+ flag?: string;
+ mode?: number;
+}
+
+export interface ReadResult {
+ bytesRead: number;
+ buffer: Buffer;
+}
+
+export interface WriteResult {
+ bytesWritten: number;
+ buffer: Buffer;
+}
diff --git a/node_modules/@types/fs-extra/package.json b/node_modules/@types/fs-extra/package.json
index 3c9db5042..ac7aaf9a9 100644
--- a/node_modules/@types/fs-extra/package.json
+++ b/node_modules/@types/fs-extra/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/fs-extra",
- "version": "3.0.2",
+ "version": "4.0.0",
"description": "TypeScript definitions for fs-extra",
"license": "MIT",
"contributors": [
@@ -31,6 +31,6 @@
"@types/node": "*"
},
"peerDependencies": {},
- "typesPublisherContentHash": "37438ad45d22ae7e6bac52924874154799724fb330d2ef23effa63ffcde59fc2",
+ "typesPublisherContentHash": "aab6022d89adf9b5efda4b3aec638f53db29551411847523b25bed9da9297b2b",
"typeScriptVersion": "2.2"
} \ No newline at end of file
diff --git a/node_modules/@types/glob/README.md b/node_modules/@types/glob/README.md
new file mode 100644
index 000000000..b45083472
--- /dev/null
+++ b/node_modules/@types/glob/README.md
@@ -0,0 +1,18 @@
+# Installation
+> `npm install --save @types/glob`
+
+# Summary
+This package contains type definitions for Glob 5.0.10 (https://github.com/isaacs/node-glob).
+
+# Details
+Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/glob
+
+Additional Details
+ * Last updated: Mon, 19 Sep 2016 17:28:59 GMT
+ * File structure: ProperModule
+ * Library Dependencies: minimatch, node
+ * Module Dependencies: events, fs, minimatch
+ * Global values: G
+
+# Credits
+These definitions were written by vvakame <https://github.com/vvakame/>.
diff --git a/node_modules/@types/glob/index.d.ts b/node_modules/@types/glob/index.d.ts
new file mode 100644
index 000000000..52d6ef084
--- /dev/null
+++ b/node_modules/@types/glob/index.d.ts
@@ -0,0 +1,109 @@
+// Type definitions for Glob 5.0.10
+// Project: https://github.com/isaacs/node-glob
+// Definitions by: vvakame <https://github.com/vvakame/>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+/// <reference types="node" />
+/// <reference types="minimatch" />
+
+import events = require("events");
+import fs = require('fs');
+import minimatch = require("minimatch");
+
+declare function G(pattern: string, cb: (err: Error, matches: string[]) => void): void;
+declare function G(pattern: string, options: G.IOptions, cb: (err: Error, matches: string[]) => void): void;
+
+declare namespace G {
+ function sync(pattern: string, options?: IOptions): string[];
+
+ function hasMagic(pattern: string, options?: IOptions): boolean;
+
+ var Glob: IGlobStatic;
+ var GlobSync: IGlobSyncStatic;
+
+ interface IOptions extends minimatch.IOptions {
+ cwd?: string;
+ root?: string;
+ dot?: boolean;
+ nomount?: boolean;
+ mark?: boolean;
+ nosort?: boolean;
+ stat?: boolean;
+ silent?: boolean;
+ strict?: boolean;
+ cache?: { [path: string]: any /* boolean | string | string[] */ };
+ statCache?: { [path: string]: fs.Stats };
+ symlinks?: any;
+ sync?: boolean;
+ nounique?: boolean;
+ nonull?: boolean;
+ debug?: boolean;
+ nobrace?: boolean;
+ noglobstar?: boolean;
+ noext?: boolean;
+ nocase?: boolean;
+ matchBase?: any;
+ nodir?: boolean;
+ ignore?: any; /* string | string[] */
+ follow?: boolean;
+ realpath?: boolean;
+ nonegate?: boolean;
+ nocomment?: boolean;
+
+ /** Deprecated. */
+ globDebug?: boolean;
+ }
+
+ interface IGlobStatic extends events.EventEmitter {
+ new (pattern: string, cb?: (err: Error, matches: string[]) => void): IGlob;
+ new (pattern: string, options: IOptions, cb?: (err: Error, matches: string[]) => void): IGlob;
+ prototype: IGlob;
+ }
+
+ interface IGlobSyncStatic {
+ new (pattern: string, options?: IOptions): IGlobBase
+ prototype: IGlobBase;
+ }
+
+ interface IGlobBase {
+ minimatch: minimatch.IMinimatch;
+ options: IOptions;
+ aborted: boolean;
+ cache: { [path: string]: any /* boolean | string | string[] */ };
+ statCache: { [path: string]: fs.Stats };
+ symlinks: { [path: string]: boolean };
+ realpathCache: { [path: string]: string };
+ found: string[];
+ }
+
+ interface IGlob extends IGlobBase, events.EventEmitter {
+ pause(): void;
+ resume(): void;
+ abort(): void;
+
+ /** Deprecated. */
+ EOF: any;
+ /** Deprecated. */
+ paused: boolean;
+ /** Deprecated. */
+ maxDepth: number;
+ /** Deprecated. */
+ maxLength: number;
+ /** Deprecated. */
+ changedCwd: boolean;
+ /** Deprecated. */
+ cwd: string;
+ /** Deprecated. */
+ root: string;
+ /** Deprecated. */
+ error: any;
+ /** Deprecated. */
+ matches: string[];
+ /** Deprecated. */
+ log(...args: any[]): void;
+ /** Deprecated. */
+ emitMatch(m: any): void;
+ }
+}
+
+export = G;
diff --git a/node_modules/@types/glob/package.json b/node_modules/@types/glob/package.json
new file mode 100644
index 000000000..a260604ee
--- /dev/null
+++ b/node_modules/@types/glob/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "@types/glob",
+ "version": "5.0.30",
+ "description": "TypeScript definitions for Glob 5.0.10",
+ "license": "MIT",
+ "author": "vvakame <https://github.com/vvakame/>",
+ "main": "",
+ "repository": {
+ "type": "git",
+ "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
+ },
+ "scripts": {},
+ "dependencies": {
+ "@types/minimatch": "*",
+ "@types/node": "*"
+ },
+ "typings": "index.d.ts",
+ "typesPublisherContentHash": "8c143641642f0e205786502b11aa75903aa26780b026607ed34de6e0836fe815"
+} \ No newline at end of file
diff --git a/node_modules/@types/glob/types-metadata.json b/node_modules/@types/glob/types-metadata.json
new file mode 100644
index 000000000..35b84b709
--- /dev/null
+++ b/node_modules/@types/glob/types-metadata.json
@@ -0,0 +1,32 @@
+{
+ "authors": "vvakame <https://github.com/vvakame/>",
+ "definitionFilename": "index.d.ts",
+ "libraryDependencies": [
+ "minimatch",
+ "node"
+ ],
+ "moduleDependencies": [
+ "events",
+ "fs",
+ "minimatch"
+ ],
+ "libraryMajorVersion": "5",
+ "libraryMinorVersion": "0",
+ "libraryName": "Glob 5.0.10",
+ "typingsPackageName": "glob",
+ "projectName": "https://github.com/isaacs/node-glob",
+ "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
+ "sourceBranch": "types-2.0",
+ "kind": "ProperModule",
+ "globals": [
+ "G"
+ ],
+ "declaredModules": [
+ "glob"
+ ],
+ "files": [
+ "index.d.ts"
+ ],
+ "hasPackageJson": false,
+ "contentHash": "8c143641642f0e205786502b11aa75903aa26780b026607ed34de6e0836fe815"
+} \ No newline at end of file
diff --git a/node_modules/@types/handlebars/LICENSE b/node_modules/@types/handlebars/LICENSE
new file mode 100644
index 000000000..21071075c
--- /dev/null
+++ b/node_modules/@types/handlebars/LICENSE
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/handlebars/README.md b/node_modules/@types/handlebars/README.md
index da4e8ac6c..275236f13 100644
--- a/node_modules/@types/handlebars/README.md
+++ b/node_modules/@types/handlebars/README.md
@@ -5,10 +5,10 @@
This package contains type definitions for Handlebars (http://handlebarsjs.com/).
# Details
-Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/handlebars
+Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/handlebars
Additional Details
- * Last updated: Fri, 10 Mar 2017 07:28:34 GMT
+ * Last updated: Mon, 24 Jul 2017 18:01:45 GMT
* Dependencies: none
* Global values: Handlebars, hbs
diff --git a/node_modules/@types/handlebars/index.d.ts b/node_modules/@types/handlebars/index.d.ts
index a59014f0d..006ef242c 100644
--- a/node_modules/@types/handlebars/index.d.ts
+++ b/node_modules/@types/handlebars/index.d.ts
@@ -1,300 +1,314 @@
-// Type definitions for Handlebars v4.0.5
-// Project: http://handlebarsjs.com/
-// Definitions by: Boris Yankov <https://github.com/borisyankov/>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-
-declare namespace Handlebars {
- export function registerHelper(name: string, fn: Function, inverse?: boolean): void;
- export function registerHelper(name: Object): void;
- export function registerPartial(name: string, str: any): void;
- export function unregisterHelper(name: string): void;
- export function unregisterPartial(name: string): void;
- export function registerDecorator(name: string, fn: Function): void;
- export function unregisterDecorator(name: string): void;
-
- export function K(): void;
- export function createFrame(object: any): any;
- export function Exception(message: string): void;
- export function log(level: number, obj: any): void;
- export function parse(input: string): hbs.AST.Program;
- export function compile(input: any, options?: CompileOptions): HandlebarsTemplateDelegate;
- export function precompile(input: any, options?: PrecompileOptions): TemplateSpecification;
- export function template(precompilation: TemplateSpecification): HandlebarsTemplateDelegate;
-
- export function create(): typeof Handlebars;
-
- export var SafeString: typeof hbs.SafeString;
- export var escapeExpression: typeof hbs.Utils.escapeExpression;
- export var Utils: typeof hbs.Utils;
- export var logger: Logger;
- export var templates: HandlebarsTemplates;
- export var helpers: { [name: string]: Function };
- export var partials: { [name: string]: any };
- export var decorators: { [name: string]: Function };
-
- export function registerDecorator(name: string, fn: Function): void;
- export function registerDecorator(obj: {[name: string] : Function}): void;
- export function unregisterDecorator(name: string): void;
-
- export function noConflict(): typeof Handlebars;
-
- export module AST {
- export var helpers: hbs.AST.helpers;
- }
-
- interface ICompiler {
- accept(node: hbs.AST.Node): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
- DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
- Decorator(decorator: hbs.AST.Decorator): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-
- export class Visitor implements ICompiler {
- accept(node: hbs.AST.Node): void;
- acceptKey(node: hbs.AST.Node, name: string): void;
- acceptArray(arr: hbs.AST.Expression[]): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
- DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
- Decorator(decorator: hbs.AST.Decorator): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-}
-
-/**
-* Implement this interface on your MVW/MVVM/MVC views such as Backbone.View
-**/
-interface HandlebarsTemplatable {
- template: HandlebarsTemplateDelegate;
-}
-
-interface HandlebarsTemplateDelegate {
- (context: any, options?: any): string;
-}
-
-interface HandlebarsTemplates {
- [index: string]: HandlebarsTemplateDelegate;
-}
-
-interface TemplateSpecification {
-
-}
-
-interface CompileOptions {
- data?: boolean;
- compat?: boolean;
- knownHelpers?: {
- helperMissing?: boolean;
- blockHelperMissing?: boolean;
- each?: boolean;
- if?: boolean;
- unless?: boolean;
- with?: boolean;
- log?: boolean;
- lookup?: boolean;
- }
- knownHelpersOnly?: boolean;
- noEscape?: boolean;
- strict?: boolean;
- assumeObjects?: boolean;
- preventIndent?: boolean;
- ignoreStandalone?: boolean;
- explicitPartialContext?: boolean;
-}
-
-interface PrecompileOptions extends CompileOptions {
- srcName?: string;
- destName?: string;
-}
-
-declare namespace hbs {
- class SafeString {
- constructor(str: string);
- static toString(): string;
- }
-
- namespace Utils {
- function escapeExpression(str: string): string;
- function createFrame(obj: Object): Object;
- function isEmpty(obj: any) : boolean;
- function extend(obj: any, ...source: any[]): any;
- function toString(obj: any): string;
- function isArray(obj: any): boolean;
- function isFunction(obj: any): boolean;
- }
-}
-
-interface Logger {
- DEBUG: number;
- INFO: number;
- WARN: number;
- ERROR: number;
- level: number;
-
- methodMap: { [level: number]: string };
-
- log(level: number, obj: string): void;
-}
-
-declare namespace hbs {
- namespace AST {
- interface Node {
- type: string;
- loc: SourceLocation;
- }
-
- interface SourceLocation {
- source: string;
- start: Position;
- end: Position;
- }
-
- interface Position {
- line: number;
- column: number;
- }
-
- interface Program extends Node {
- body: Statement[];
- blockParams: string[];
- }
-
- interface Statement extends Node {}
-
- interface MustacheStatement extends Statement {
- path: PathExpression | Literal;
- params: Expression[];
- hash: Hash;
- escaped: boolean;
- strip: StripFlags;
- }
-
- interface Decorator extends MustacheStatement { }
-
- interface BlockStatement extends Statement {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- program: Program;
- inverse: Program;
- openStrip: StripFlags;
- inverseStrip: StripFlags;
- closeStrip: StripFlags;
- }
-
- interface DecoratorBlock extends BlockStatement { }
-
- interface PartialStatement extends Statement {
- name: PathExpression | SubExpression;
- params: Expression[];
- hash: Hash;
- indent: string;
- strip: StripFlags;
- }
-
- interface PartialBlockStatement extends Statement {
- name: PathExpression | SubExpression;
- params: Expression[],
- hash: Hash,
- program: Program,
- openStrip: StripFlags,
- closeStrip: StripFlags
- }
-
- interface ContentStatement extends Statement {
- value: string;
- original: StripFlags;
- }
-
- interface CommentStatement extends Statement {
- value: string;
- strip: StripFlags;
- }
-
- interface Expression extends Node {}
-
- interface SubExpression extends Expression {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- }
-
- interface PathExpression extends Expression {
- data: boolean;
- depth: number;
- parts: string[];
- original: string;
- }
-
- interface Literal extends Expression {}
- interface StringLiteral extends Literal {
- value: string;
- original: string;
- }
-
- interface BooleanLiteral extends Literal {
- value: boolean;
- original: boolean;
- }
-
- interface NumberLiteral extends Literal {
- value: number;
- original: number;
- }
-
- interface UndefinedLiteral extends Literal {}
-
- interface NullLiteral extends Literal {}
-
- interface Hash extends Node {
- pairs: HashPair[];
- }
-
- interface HashPair extends Node {
- key: string;
- value: Expression;
- }
-
- interface StripFlags {
- open: boolean;
- close: boolean;
- }
-
- interface helpers {
- helperExpression(node: Node): boolean;
- scopeId(path: PathExpression): boolean;
- simpleId(path: PathExpression): boolean;
- }
- }
-}
-
-declare module "handlebars" {
- export = Handlebars;
-}
+// Type definitions for Handlebars v4.0.5
+// Project: http://handlebarsjs.com/
+// Definitions by: Boris Yankov <https://github.com/borisyankov/>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.3
+
+declare namespace Handlebars {
+ export function registerHelper(name: string, fn: Function, inverse?: boolean): void;
+ export function registerHelper(name: Object): void;
+ export function registerPartial(name: string, str: any): void;
+ export function unregisterHelper(name: string): void;
+ export function unregisterPartial(name: string): void;
+ export function registerDecorator(name: string, fn: Function): void;
+ export function unregisterDecorator(name: string): void;
+
+ export function K(): void;
+ export function createFrame(object: any): any;
+ export function blockParams(obj: any[], ids: any[]): any[];
+ export function Exception(message: string): void;
+ export function log(level: number, obj: any): void;
+ export function parse(input: string): hbs.AST.Program;
+ export function compile<T = any>(input: any, options?: CompileOptions): HandlebarsTemplateDelegate<T>;
+ export function precompile(input: any, options?: PrecompileOptions): TemplateSpecification;
+ export function template<T = any>(precompilation: TemplateSpecification): HandlebarsTemplateDelegate<T>;
+
+ export function create(): typeof Handlebars;
+
+ export var SafeString: typeof hbs.SafeString;
+ export var escapeExpression: typeof hbs.Utils.escapeExpression;
+ export var Utils: typeof hbs.Utils;
+ export var logger: Logger;
+ export var templates: HandlebarsTemplates;
+ export var helpers: { [name: string]: Function };
+ export var partials: { [name: string]: any };
+ export var decorators: { [name: string]: Function };
+
+ export function registerDecorator(name: string, fn: Function): void;
+ export function registerDecorator(obj: {[name: string] : Function}): void;
+ export function unregisterDecorator(name: string): void;
+
+ export function noConflict(): typeof Handlebars;
+
+ export module AST {
+ export var helpers: hbs.AST.helpers;
+ }
+
+ interface ICompiler {
+ accept(node: hbs.AST.Node): void;
+ Program(program: hbs.AST.Program): void;
+ BlockStatement(block: hbs.AST.BlockStatement): void;
+ PartialStatement(partial: hbs.AST.PartialStatement): void;
+ PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
+ DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
+ Decorator(decorator: hbs.AST.Decorator): void;
+ MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
+ ContentStatement(content: hbs.AST.ContentStatement): void;
+ CommentStatement(comment?: hbs.AST.CommentStatement): void;
+ SubExpression(sexpr: hbs.AST.SubExpression): void;
+ PathExpression(path: hbs.AST.PathExpression): void;
+ StringLiteral(str: hbs.AST.StringLiteral): void;
+ NumberLiteral(num: hbs.AST.NumberLiteral): void;
+ BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
+ UndefinedLiteral(): void;
+ NullLiteral(): void;
+ Hash(hash: hbs.AST.Hash): void;
+ }
+
+ export class Visitor implements ICompiler {
+ accept(node: hbs.AST.Node): void;
+ acceptKey(node: hbs.AST.Node, name: string): void;
+ acceptArray(arr: hbs.AST.Expression[]): void;
+ Program(program: hbs.AST.Program): void;
+ BlockStatement(block: hbs.AST.BlockStatement): void;
+ PartialStatement(partial: hbs.AST.PartialStatement): void;
+ PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
+ DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
+ Decorator(decorator: hbs.AST.Decorator): void;
+ MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
+ ContentStatement(content: hbs.AST.ContentStatement): void;
+ CommentStatement(comment?: hbs.AST.CommentStatement): void;
+ SubExpression(sexpr: hbs.AST.SubExpression): void;
+ PathExpression(path: hbs.AST.PathExpression): void;
+ StringLiteral(str: hbs.AST.StringLiteral): void;
+ NumberLiteral(num: hbs.AST.NumberLiteral): void;
+ BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
+ UndefinedLiteral(): void;
+ NullLiteral(): void;
+ Hash(hash: hbs.AST.Hash): void;
+ }
+}
+
+/**
+* Implement this interface on your MVW/MVVM/MVC views such as Backbone.View
+**/
+interface HandlebarsTemplatable {
+ template: HandlebarsTemplateDelegate;
+}
+
+interface HandlebarsTemplateDelegate<T = any> {
+ (context: T, options?: RuntimeOptions): string;
+}
+
+interface HandlebarsTemplates {
+ [index: string]: HandlebarsTemplateDelegate;
+}
+
+interface TemplateSpecification {
+
+}
+
+interface RuntimeOptions {
+ partial?: boolean;
+ depths?: any[];
+ helpers?: { [name: string]: Function }
+ partials?: { [name: string]: HandlebarsTemplateDelegate }
+ decorators?: { [name: string]: Function }
+}
+
+interface CompileOptions {
+ data?: boolean;
+ compat?: boolean;
+ knownHelpers?: {
+ helperMissing?: boolean;
+ blockHelperMissing?: boolean;
+ each?: boolean;
+ if?: boolean;
+ unless?: boolean;
+ with?: boolean;
+ log?: boolean;
+ lookup?: boolean;
+ }
+ knownHelpersOnly?: boolean;
+ noEscape?: boolean;
+ strict?: boolean;
+ assumeObjects?: boolean;
+ preventIndent?: boolean;
+ ignoreStandalone?: boolean;
+ explicitPartialContext?: boolean;
+}
+
+interface PrecompileOptions extends CompileOptions {
+ srcName?: string;
+ destName?: string;
+}
+
+declare namespace hbs {
+ class SafeString {
+ constructor(str: string);
+ static toString(): string;
+ }
+
+ namespace Utils {
+ function escapeExpression(str: string): string;
+ function createFrame(object: any): any;
+ function blockParams(obj: any[], ids: any[]): any[];
+ function isEmpty(obj: any) : boolean;
+ function extend(obj: any, ...source: any[]): any;
+ function toString(obj: any): string;
+ function isArray(obj: any): boolean;
+ function isFunction(obj: any): boolean;
+ }
+}
+
+interface Logger {
+ DEBUG: number;
+ INFO: number;
+ WARN: number;
+ ERROR: number;
+ level: number;
+
+ methodMap: { [level: number]: string };
+
+ log(level: number, obj: string): void;
+}
+
+declare namespace hbs {
+ namespace AST {
+ interface Node {
+ type: string;
+ loc: SourceLocation;
+ }
+
+ interface SourceLocation {
+ source: string;
+ start: Position;
+ end: Position;
+ }
+
+ interface Position {
+ line: number;
+ column: number;
+ }
+
+ interface Program extends Node {
+ body: Statement[];
+ blockParams: string[];
+ }
+
+ interface Statement extends Node {}
+
+ interface MustacheStatement extends Statement {
+ path: PathExpression | Literal;
+ params: Expression[];
+ hash: Hash;
+ escaped: boolean;
+ strip: StripFlags;
+ }
+
+ interface Decorator extends MustacheStatement { }
+
+ interface BlockStatement extends Statement {
+ path: PathExpression;
+ params: Expression[];
+ hash: Hash;
+ program: Program;
+ inverse: Program;
+ openStrip: StripFlags;
+ inverseStrip: StripFlags;
+ closeStrip: StripFlags;
+ }
+
+ interface DecoratorBlock extends BlockStatement { }
+
+ interface PartialStatement extends Statement {
+ name: PathExpression | SubExpression;
+ params: Expression[];
+ hash: Hash;
+ indent: string;
+ strip: StripFlags;
+ }
+
+ interface PartialBlockStatement extends Statement {
+ name: PathExpression | SubExpression;
+ params: Expression[],
+ hash: Hash,
+ program: Program,
+ openStrip: StripFlags,
+ closeStrip: StripFlags
+ }
+
+ interface ContentStatement extends Statement {
+ value: string;
+ original: StripFlags;
+ }
+
+ interface CommentStatement extends Statement {
+ value: string;
+ strip: StripFlags;
+ }
+
+ interface Expression extends Node {}
+
+ interface SubExpression extends Expression {
+ path: PathExpression;
+ params: Expression[];
+ hash: Hash;
+ }
+
+ interface PathExpression extends Expression {
+ data: boolean;
+ depth: number;
+ parts: string[];
+ original: string;
+ }
+
+ interface Literal extends Expression {}
+ interface StringLiteral extends Literal {
+ value: string;
+ original: string;
+ }
+
+ interface BooleanLiteral extends Literal {
+ value: boolean;
+ original: boolean;
+ }
+
+ interface NumberLiteral extends Literal {
+ value: number;
+ original: number;
+ }
+
+ interface UndefinedLiteral extends Literal {}
+
+ interface NullLiteral extends Literal {}
+
+ interface Hash extends Node {
+ pairs: HashPair[];
+ }
+
+ interface HashPair extends Node {
+ key: string;
+ value: Expression;
+ }
+
+ interface StripFlags {
+ open: boolean;
+ close: boolean;
+ }
+
+ interface helpers {
+ helperExpression(node: Node): boolean;
+ scopeId(path: PathExpression): boolean;
+ simpleId(path: PathExpression): boolean;
+ }
+ }
+}
+
+declare module "handlebars" {
+ export = Handlebars;
+}
+
+declare module "handlebars/handlebars.runtime" {
+ export = Handlebars;
+}
diff --git a/node_modules/@types/handlebars/package.json b/node_modules/@types/handlebars/package.json
index 4768d7f80..b5cb9170d 100644
--- a/node_modules/@types/handlebars/package.json
+++ b/node_modules/@types/handlebars/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/handlebars",
- "version": "4.0.32",
+ "version": "4.0.35",
"description": "TypeScript definitions for Handlebars",
"license": "MIT",
"contributors": [
@@ -17,6 +17,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
- "typesPublisherContentHash": "acb29e806e6b4bd283e8ac6d34f2a437d48ef822884b4b009302f8a6df48b281",
- "typeScriptVersion": "2.0"
+ "typesPublisherContentHash": "03ffb79cf0eee8482a5b5a2660eed0ebf7060e817aa247fdf3dae868c62fc57f",
+ "typeScriptVersion": "2.3"
} \ No newline at end of file
diff --git a/node_modules/@types/lodash/LICENSE b/node_modules/@types/lodash/LICENSE
index 4b1ad51b2..21071075c 100644
--- a/node_modules/@types/lodash/LICENSE
+++ b/node_modules/@types/lodash/LICENSE
@@ -1,21 +1,21 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/lodash/README.md b/node_modules/@types/lodash/README.md
index c7651e110..e7fd46ffc 100644
--- a/node_modules/@types/lodash/README.md
+++ b/node_modules/@types/lodash/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for Lo-Dash (http://lodash.com/).
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash
Additional Details
- * Last updated: Fri, 05 May 2017 16:07:17 GMT
+ * Last updated: Tue, 08 Aug 2017 21:39:34 GMT
* Dependencies: none
* Global values: _
# Credits
-These definitions were written by Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, Eric L Anderson <https://github.com/ericanderson>.
+These definitions were written by Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, Eric L Anderson <https://github.com/ericanderson>, AJ Richardson <https://github.com/aj-r>, Junyoung Clare Jang <https://github.com/ailrun>.
diff --git a/node_modules/@types/lodash/add.d.ts b/node_modules/@types/lodash/add.d.ts
new file mode 100644
index 000000000..4650a89c4
--- /dev/null
+++ b/node_modules/@types/lodash/add.d.ts
@@ -0,0 +1,2 @@
+import { add } from "./index";
+export = add;
diff --git a/node_modules/@types/lodash/add/index.d.ts b/node_modules/@types/lodash/add/index.d.ts
deleted file mode 100644
index 13618659c..000000000
--- a/node_modules/@types/lodash/add/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { add } from "../index";
-export = add;
diff --git a/node_modules/@types/lodash/after.d.ts b/node_modules/@types/lodash/after.d.ts
new file mode 100644
index 000000000..277ae1ea5
--- /dev/null
+++ b/node_modules/@types/lodash/after.d.ts
@@ -0,0 +1,2 @@
+import { after } from "./index";
+export = after;
diff --git a/node_modules/@types/lodash/after/index.d.ts b/node_modules/@types/lodash/after/index.d.ts
deleted file mode 100644
index 129a4f992..000000000
--- a/node_modules/@types/lodash/after/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { after } from "../index";
-export = after;
diff --git a/node_modules/@types/lodash/ary.d.ts b/node_modules/@types/lodash/ary.d.ts
new file mode 100644
index 000000000..ac1c72e95
--- /dev/null
+++ b/node_modules/@types/lodash/ary.d.ts
@@ -0,0 +1,2 @@
+import { ary } from "./index";
+export = ary;
diff --git a/node_modules/@types/lodash/ary/index.d.ts b/node_modules/@types/lodash/ary/index.d.ts
deleted file mode 100644
index b1fae0eee..000000000
--- a/node_modules/@types/lodash/ary/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { ary } from "../index";
-export = ary;
diff --git a/node_modules/@types/lodash/assign.d.ts b/node_modules/@types/lodash/assign.d.ts
new file mode 100644
index 000000000..5ffc1e34d
--- /dev/null
+++ b/node_modules/@types/lodash/assign.d.ts
@@ -0,0 +1,2 @@
+import { assign } from "./index";
+export = assign;
diff --git a/node_modules/@types/lodash/assign/index.d.ts b/node_modules/@types/lodash/assign/index.d.ts
deleted file mode 100644
index e0a41b0e3..000000000
--- a/node_modules/@types/lodash/assign/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { assign } from "../index";
-export = assign;
diff --git a/node_modules/@types/lodash/assignIn.d.ts b/node_modules/@types/lodash/assignIn.d.ts
new file mode 100644
index 000000000..3cc54e817
--- /dev/null
+++ b/node_modules/@types/lodash/assignIn.d.ts
@@ -0,0 +1,2 @@
+import { assignIn } from "./index";
+export = assignIn;
diff --git a/node_modules/@types/lodash/assignIn/index.d.ts b/node_modules/@types/lodash/assignIn/index.d.ts
deleted file mode 100644
index 32b218dd9..000000000
--- a/node_modules/@types/lodash/assignIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { assignIn } from "../index";
-export = assignIn;
diff --git a/node_modules/@types/lodash/assignInWith.d.ts b/node_modules/@types/lodash/assignInWith.d.ts
new file mode 100644
index 000000000..b4c4dfef2
--- /dev/null
+++ b/node_modules/@types/lodash/assignInWith.d.ts
@@ -0,0 +1,2 @@
+import { assignInWith } from "./index";
+export = assignInWith;
diff --git a/node_modules/@types/lodash/assignInWith/index.d.ts b/node_modules/@types/lodash/assignInWith/index.d.ts
deleted file mode 100644
index 7899bfef8..000000000
--- a/node_modules/@types/lodash/assignInWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { assignInWith } from "../index";
-export = assignInWith;
diff --git a/node_modules/@types/lodash/assignWith.d.ts b/node_modules/@types/lodash/assignWith.d.ts
new file mode 100644
index 000000000..97da10ceb
--- /dev/null
+++ b/node_modules/@types/lodash/assignWith.d.ts
@@ -0,0 +1,2 @@
+import { assignWith } from "./index";
+export = assignWith;
diff --git a/node_modules/@types/lodash/assignWith/index.d.ts b/node_modules/@types/lodash/assignWith/index.d.ts
deleted file mode 100644
index 73adb87b3..000000000
--- a/node_modules/@types/lodash/assignWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { assignWith } from "../index";
-export = assignWith;
diff --git a/node_modules/@types/lodash/at.d.ts b/node_modules/@types/lodash/at.d.ts
new file mode 100644
index 000000000..49e714778
--- /dev/null
+++ b/node_modules/@types/lodash/at.d.ts
@@ -0,0 +1,2 @@
+import { at } from "./index";
+export = at;
diff --git a/node_modules/@types/lodash/at/index.d.ts b/node_modules/@types/lodash/at/index.d.ts
deleted file mode 100644
index ec3fb9163..000000000
--- a/node_modules/@types/lodash/at/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { at } from "../index";
-export = at;
diff --git a/node_modules/@types/lodash/attempt.d.ts b/node_modules/@types/lodash/attempt.d.ts
new file mode 100644
index 000000000..d4b608900
--- /dev/null
+++ b/node_modules/@types/lodash/attempt.d.ts
@@ -0,0 +1,2 @@
+import { attempt } from "./index";
+export = attempt;
diff --git a/node_modules/@types/lodash/attempt/index.d.ts b/node_modules/@types/lodash/attempt/index.d.ts
deleted file mode 100644
index 70826abf9..000000000
--- a/node_modules/@types/lodash/attempt/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { attempt } from "../index";
-export = attempt;
diff --git a/node_modules/@types/lodash/before.d.ts b/node_modules/@types/lodash/before.d.ts
new file mode 100644
index 000000000..03c45c803
--- /dev/null
+++ b/node_modules/@types/lodash/before.d.ts
@@ -0,0 +1,2 @@
+import { before } from "./index";
+export = before;
diff --git a/node_modules/@types/lodash/before/index.d.ts b/node_modules/@types/lodash/before/index.d.ts
deleted file mode 100644
index f31235722..000000000
--- a/node_modules/@types/lodash/before/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { before } from "../index";
-export = before;
diff --git a/node_modules/@types/lodash/bind.d.ts b/node_modules/@types/lodash/bind.d.ts
new file mode 100644
index 000000000..6367da1e1
--- /dev/null
+++ b/node_modules/@types/lodash/bind.d.ts
@@ -0,0 +1,2 @@
+import { bind } from "./index";
+export = bind;
diff --git a/node_modules/@types/lodash/bind/index.d.ts b/node_modules/@types/lodash/bind/index.d.ts
deleted file mode 100644
index f1b0551ef..000000000
--- a/node_modules/@types/lodash/bind/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { bind } from "../index";
-export = bind;
diff --git a/node_modules/@types/lodash/bindAll.d.ts b/node_modules/@types/lodash/bindAll.d.ts
new file mode 100644
index 000000000..25d47e397
--- /dev/null
+++ b/node_modules/@types/lodash/bindAll.d.ts
@@ -0,0 +1,2 @@
+import { bindAll } from "./index";
+export = bindAll;
diff --git a/node_modules/@types/lodash/bindAll/index.d.ts b/node_modules/@types/lodash/bindAll/index.d.ts
deleted file mode 100644
index 4f59b345b..000000000
--- a/node_modules/@types/lodash/bindAll/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { bindAll } from "../index";
-export = bindAll;
diff --git a/node_modules/@types/lodash/bindKey.d.ts b/node_modules/@types/lodash/bindKey.d.ts
new file mode 100644
index 000000000..128b065f3
--- /dev/null
+++ b/node_modules/@types/lodash/bindKey.d.ts
@@ -0,0 +1,2 @@
+import { bindKey } from "./index";
+export = bindKey;
diff --git a/node_modules/@types/lodash/bindKey/index.d.ts b/node_modules/@types/lodash/bindKey/index.d.ts
deleted file mode 100644
index 72baea9e7..000000000
--- a/node_modules/@types/lodash/bindKey/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { bindKey } from "../index";
-export = bindKey;
diff --git a/node_modules/@types/lodash/camelCase.d.ts b/node_modules/@types/lodash/camelCase.d.ts
new file mode 100644
index 000000000..5c10659d9
--- /dev/null
+++ b/node_modules/@types/lodash/camelCase.d.ts
@@ -0,0 +1,2 @@
+import { camelCase } from "./index";
+export = camelCase;
diff --git a/node_modules/@types/lodash/camelCase/index.d.ts b/node_modules/@types/lodash/camelCase/index.d.ts
deleted file mode 100644
index 6495671d7..000000000
--- a/node_modules/@types/lodash/camelCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { camelCase } from "../index";
-export = camelCase;
diff --git a/node_modules/@types/lodash/capitalize.d.ts b/node_modules/@types/lodash/capitalize.d.ts
new file mode 100644
index 000000000..416f5f598
--- /dev/null
+++ b/node_modules/@types/lodash/capitalize.d.ts
@@ -0,0 +1,2 @@
+import { capitalize } from "./index";
+export = capitalize;
diff --git a/node_modules/@types/lodash/capitalize/index.d.ts b/node_modules/@types/lodash/capitalize/index.d.ts
deleted file mode 100644
index 40792355c..000000000
--- a/node_modules/@types/lodash/capitalize/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { capitalize } from "../index";
-export = capitalize;
diff --git a/node_modules/@types/lodash/castArray.d.ts b/node_modules/@types/lodash/castArray.d.ts
new file mode 100644
index 000000000..74ea7bd23
--- /dev/null
+++ b/node_modules/@types/lodash/castArray.d.ts
@@ -0,0 +1,2 @@
+import { castArray } from "./index";
+export = castArray;
diff --git a/node_modules/@types/lodash/castArray/index.d.ts b/node_modules/@types/lodash/castArray/index.d.ts
deleted file mode 100644
index 3bef8c12f..000000000
--- a/node_modules/@types/lodash/castArray/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { castArray } from "../index";
-export = castArray;
diff --git a/node_modules/@types/lodash/ceil.d.ts b/node_modules/@types/lodash/ceil.d.ts
new file mode 100644
index 000000000..0c6f1fd1c
--- /dev/null
+++ b/node_modules/@types/lodash/ceil.d.ts
@@ -0,0 +1,2 @@
+import { ceil } from "./index";
+export = ceil;
diff --git a/node_modules/@types/lodash/ceil/index.d.ts b/node_modules/@types/lodash/ceil/index.d.ts
deleted file mode 100644
index d8d85d745..000000000
--- a/node_modules/@types/lodash/ceil/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { ceil } from "../index";
-export = ceil;
diff --git a/node_modules/@types/lodash/chain.d.ts b/node_modules/@types/lodash/chain.d.ts
new file mode 100644
index 000000000..d09d2bb08
--- /dev/null
+++ b/node_modules/@types/lodash/chain.d.ts
@@ -0,0 +1,2 @@
+import { chain } from "./index";
+export = chain;
diff --git a/node_modules/@types/lodash/chain/index.d.ts b/node_modules/@types/lodash/chain/index.d.ts
deleted file mode 100644
index 2ec2b098d..000000000
--- a/node_modules/@types/lodash/chain/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { chain } from "../index";
-export = chain;
diff --git a/node_modules/@types/lodash/chunk.d.ts b/node_modules/@types/lodash/chunk.d.ts
new file mode 100644
index 000000000..125c98f73
--- /dev/null
+++ b/node_modules/@types/lodash/chunk.d.ts
@@ -0,0 +1,2 @@
+import { chunk } from "./index";
+export = chunk;
diff --git a/node_modules/@types/lodash/chunk/index.d.ts b/node_modules/@types/lodash/chunk/index.d.ts
deleted file mode 100644
index 12ef2d8fe..000000000
--- a/node_modules/@types/lodash/chunk/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { chunk } from "../index";
-export = chunk;
diff --git a/node_modules/@types/lodash/clamp.d.ts b/node_modules/@types/lodash/clamp.d.ts
new file mode 100644
index 000000000..df1706691
--- /dev/null
+++ b/node_modules/@types/lodash/clamp.d.ts
@@ -0,0 +1,2 @@
+import { clamp } from "./index";
+export = clamp;
diff --git a/node_modules/@types/lodash/clamp/index.d.ts b/node_modules/@types/lodash/clamp/index.d.ts
deleted file mode 100644
index b4dec70a6..000000000
--- a/node_modules/@types/lodash/clamp/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { clamp } from "../index";
-export = clamp;
diff --git a/node_modules/@types/lodash/clone.d.ts b/node_modules/@types/lodash/clone.d.ts
new file mode 100644
index 000000000..c5884d700
--- /dev/null
+++ b/node_modules/@types/lodash/clone.d.ts
@@ -0,0 +1,2 @@
+import { clone } from "./index";
+export = clone;
diff --git a/node_modules/@types/lodash/clone/index.d.ts b/node_modules/@types/lodash/clone/index.d.ts
deleted file mode 100644
index de9112768..000000000
--- a/node_modules/@types/lodash/clone/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { clone } from "../index";
-export = clone;
diff --git a/node_modules/@types/lodash/cloneDeep.d.ts b/node_modules/@types/lodash/cloneDeep.d.ts
new file mode 100644
index 000000000..b7bd89327
--- /dev/null
+++ b/node_modules/@types/lodash/cloneDeep.d.ts
@@ -0,0 +1,2 @@
+import { cloneDeep } from "./index";
+export = cloneDeep;
diff --git a/node_modules/@types/lodash/cloneDeep/index.d.ts b/node_modules/@types/lodash/cloneDeep/index.d.ts
deleted file mode 100644
index 2b5898b18..000000000
--- a/node_modules/@types/lodash/cloneDeep/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { cloneDeep } from "../index";
-export = cloneDeep;
diff --git a/node_modules/@types/lodash/cloneDeepWith.d.ts b/node_modules/@types/lodash/cloneDeepWith.d.ts
new file mode 100644
index 000000000..3eb368ba7
--- /dev/null
+++ b/node_modules/@types/lodash/cloneDeepWith.d.ts
@@ -0,0 +1,2 @@
+import { cloneDeepWith } from "./index";
+export = cloneDeepWith;
diff --git a/node_modules/@types/lodash/cloneDeepWith/index.d.ts b/node_modules/@types/lodash/cloneDeepWith/index.d.ts
deleted file mode 100644
index 699ca8a22..000000000
--- a/node_modules/@types/lodash/cloneDeepWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { cloneDeepWith } from "../index";
-export = cloneDeepWith;
diff --git a/node_modules/@types/lodash/cloneWith.d.ts b/node_modules/@types/lodash/cloneWith.d.ts
new file mode 100644
index 000000000..1e6bf7a80
--- /dev/null
+++ b/node_modules/@types/lodash/cloneWith.d.ts
@@ -0,0 +1,2 @@
+import { cloneWith } from "./index";
+export = cloneWith;
diff --git a/node_modules/@types/lodash/cloneWith/index.d.ts b/node_modules/@types/lodash/cloneWith/index.d.ts
deleted file mode 100644
index c0d14bdef..000000000
--- a/node_modules/@types/lodash/cloneWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { cloneWith } from "../index";
-export = cloneWith;
diff --git a/node_modules/@types/lodash/compact.d.ts b/node_modules/@types/lodash/compact.d.ts
new file mode 100644
index 000000000..94a539778
--- /dev/null
+++ b/node_modules/@types/lodash/compact.d.ts
@@ -0,0 +1,2 @@
+import { compact } from "./index";
+export = compact;
diff --git a/node_modules/@types/lodash/compact/index.d.ts b/node_modules/@types/lodash/compact/index.d.ts
deleted file mode 100644
index 8d38a3455..000000000
--- a/node_modules/@types/lodash/compact/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { compact } from "../index";
-export = compact;
diff --git a/node_modules/@types/lodash/concat.d.ts b/node_modules/@types/lodash/concat.d.ts
new file mode 100644
index 000000000..f8c26122c
--- /dev/null
+++ b/node_modules/@types/lodash/concat.d.ts
@@ -0,0 +1,2 @@
+import { concat } from "./index";
+export = concat;
diff --git a/node_modules/@types/lodash/concat/index.d.ts b/node_modules/@types/lodash/concat/index.d.ts
deleted file mode 100644
index 6565f87ac..000000000
--- a/node_modules/@types/lodash/concat/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { concat } from "../index";
-export = concat;
diff --git a/node_modules/@types/lodash/constant.d.ts b/node_modules/@types/lodash/constant.d.ts
new file mode 100644
index 000000000..ebab572c1
--- /dev/null
+++ b/node_modules/@types/lodash/constant.d.ts
@@ -0,0 +1,2 @@
+import { constant } from "./index";
+export = constant;
diff --git a/node_modules/@types/lodash/constant/index.d.ts b/node_modules/@types/lodash/constant/index.d.ts
deleted file mode 100644
index b75e6b237..000000000
--- a/node_modules/@types/lodash/constant/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { constant } from "../index";
-export = constant;
diff --git a/node_modules/@types/lodash/countBy.d.ts b/node_modules/@types/lodash/countBy.d.ts
new file mode 100644
index 000000000..db56ff3c1
--- /dev/null
+++ b/node_modules/@types/lodash/countBy.d.ts
@@ -0,0 +1,2 @@
+import { countBy } from "./index";
+export = countBy;
diff --git a/node_modules/@types/lodash/countBy/index.d.ts b/node_modules/@types/lodash/countBy/index.d.ts
deleted file mode 100644
index bc548bf5b..000000000
--- a/node_modules/@types/lodash/countBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { countBy } from "../index";
-export = countBy;
diff --git a/node_modules/@types/lodash/create.d.ts b/node_modules/@types/lodash/create.d.ts
new file mode 100644
index 000000000..5c7dc7a21
--- /dev/null
+++ b/node_modules/@types/lodash/create.d.ts
@@ -0,0 +1,2 @@
+import { create } from "./index";
+export = create;
diff --git a/node_modules/@types/lodash/create/index.d.ts b/node_modules/@types/lodash/create/index.d.ts
deleted file mode 100644
index 7859e7ca3..000000000
--- a/node_modules/@types/lodash/create/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { create } from "../index";
-export = create;
diff --git a/node_modules/@types/lodash/curry.d.ts b/node_modules/@types/lodash/curry.d.ts
new file mode 100644
index 000000000..afbb8f47d
--- /dev/null
+++ b/node_modules/@types/lodash/curry.d.ts
@@ -0,0 +1,2 @@
+import { curry } from "./index";
+export = curry;
diff --git a/node_modules/@types/lodash/curry/index.d.ts b/node_modules/@types/lodash/curry/index.d.ts
deleted file mode 100644
index 56a782bf2..000000000
--- a/node_modules/@types/lodash/curry/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { curry } from "../index";
-export = curry;
diff --git a/node_modules/@types/lodash/curryRight.d.ts b/node_modules/@types/lodash/curryRight.d.ts
new file mode 100644
index 000000000..7d224c972
--- /dev/null
+++ b/node_modules/@types/lodash/curryRight.d.ts
@@ -0,0 +1,2 @@
+import { curryRight } from "./index";
+export = curryRight;
diff --git a/node_modules/@types/lodash/curryRight/index.d.ts b/node_modules/@types/lodash/curryRight/index.d.ts
deleted file mode 100644
index 90b981744..000000000
--- a/node_modules/@types/lodash/curryRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { curryRight } from "../index";
-export = curryRight;
diff --git a/node_modules/@types/lodash/debounce.d.ts b/node_modules/@types/lodash/debounce.d.ts
new file mode 100644
index 000000000..983edd74c
--- /dev/null
+++ b/node_modules/@types/lodash/debounce.d.ts
@@ -0,0 +1,2 @@
+import { debounce } from "./index";
+export = debounce;
diff --git a/node_modules/@types/lodash/debounce/index.d.ts b/node_modules/@types/lodash/debounce/index.d.ts
deleted file mode 100644
index d581b9062..000000000
--- a/node_modules/@types/lodash/debounce/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { debounce } from "../index";
-export = debounce;
diff --git a/node_modules/@types/lodash/deburr.d.ts b/node_modules/@types/lodash/deburr.d.ts
new file mode 100644
index 000000000..cf1fa376f
--- /dev/null
+++ b/node_modules/@types/lodash/deburr.d.ts
@@ -0,0 +1,2 @@
+import { deburr } from "./index";
+export = deburr;
diff --git a/node_modules/@types/lodash/deburr/index.d.ts b/node_modules/@types/lodash/deburr/index.d.ts
deleted file mode 100644
index 745862cbb..000000000
--- a/node_modules/@types/lodash/deburr/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { deburr } from "../index";
-export = deburr;
diff --git a/node_modules/@types/lodash/defaults.d.ts b/node_modules/@types/lodash/defaults.d.ts
new file mode 100644
index 000000000..e83508d12
--- /dev/null
+++ b/node_modules/@types/lodash/defaults.d.ts
@@ -0,0 +1,2 @@
+import { defaults } from "./index";
+export = defaults;
diff --git a/node_modules/@types/lodash/defaults/index.d.ts b/node_modules/@types/lodash/defaults/index.d.ts
deleted file mode 100644
index 30d351233..000000000
--- a/node_modules/@types/lodash/defaults/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { defaults } from "../index";
-export = defaults;
diff --git a/node_modules/@types/lodash/defaultsDeep.d.ts b/node_modules/@types/lodash/defaultsDeep.d.ts
new file mode 100644
index 000000000..19ff55129
--- /dev/null
+++ b/node_modules/@types/lodash/defaultsDeep.d.ts
@@ -0,0 +1,2 @@
+import { defaultsDeep } from "./index";
+export = defaultsDeep;
diff --git a/node_modules/@types/lodash/defaultsDeep/index.d.ts b/node_modules/@types/lodash/defaultsDeep/index.d.ts
deleted file mode 100644
index 13a03dfec..000000000
--- a/node_modules/@types/lodash/defaultsDeep/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { defaultsDeep } from "../index";
-export = defaultsDeep;
diff --git a/node_modules/@types/lodash/defer.d.ts b/node_modules/@types/lodash/defer.d.ts
new file mode 100644
index 000000000..144bf5b01
--- /dev/null
+++ b/node_modules/@types/lodash/defer.d.ts
@@ -0,0 +1,2 @@
+import { defer } from "./index";
+export = defer;
diff --git a/node_modules/@types/lodash/defer/index.d.ts b/node_modules/@types/lodash/defer/index.d.ts
deleted file mode 100644
index 4249acbf1..000000000
--- a/node_modules/@types/lodash/defer/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { defer } from "../index";
-export = defer;
diff --git a/node_modules/@types/lodash/delay.d.ts b/node_modules/@types/lodash/delay.d.ts
new file mode 100644
index 000000000..ead89c100
--- /dev/null
+++ b/node_modules/@types/lodash/delay.d.ts
@@ -0,0 +1,2 @@
+import { delay } from "./index";
+export = delay;
diff --git a/node_modules/@types/lodash/delay/index.d.ts b/node_modules/@types/lodash/delay/index.d.ts
deleted file mode 100644
index 7ceba300d..000000000
--- a/node_modules/@types/lodash/delay/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { delay } from "../index";
-export = delay;
diff --git a/node_modules/@types/lodash/difference.d.ts b/node_modules/@types/lodash/difference.d.ts
new file mode 100644
index 000000000..4a73c5659
--- /dev/null
+++ b/node_modules/@types/lodash/difference.d.ts
@@ -0,0 +1,2 @@
+import { difference } from "./index";
+export = difference;
diff --git a/node_modules/@types/lodash/difference/index.d.ts b/node_modules/@types/lodash/difference/index.d.ts
deleted file mode 100644
index 7b8beff16..000000000
--- a/node_modules/@types/lodash/difference/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { difference } from "../index";
-export = difference;
diff --git a/node_modules/@types/lodash/differenceBy.d.ts b/node_modules/@types/lodash/differenceBy.d.ts
new file mode 100644
index 000000000..34558c4ef
--- /dev/null
+++ b/node_modules/@types/lodash/differenceBy.d.ts
@@ -0,0 +1,2 @@
+import { differenceBy } from "./index";
+export = differenceBy;
diff --git a/node_modules/@types/lodash/differenceBy/index.d.ts b/node_modules/@types/lodash/differenceBy/index.d.ts
deleted file mode 100644
index 000b9786c..000000000
--- a/node_modules/@types/lodash/differenceBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { differenceBy } from "../index";
-export = differenceBy;
diff --git a/node_modules/@types/lodash/differenceWith.d.ts b/node_modules/@types/lodash/differenceWith.d.ts
new file mode 100644
index 000000000..86aebd889
--- /dev/null
+++ b/node_modules/@types/lodash/differenceWith.d.ts
@@ -0,0 +1,2 @@
+import { differenceWith } from "./index";
+export = differenceWith;
diff --git a/node_modules/@types/lodash/differenceWith/index.d.ts b/node_modules/@types/lodash/differenceWith/index.d.ts
deleted file mode 100644
index 3e4195cfa..000000000
--- a/node_modules/@types/lodash/differenceWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { differenceWith } from "../index";
-export = differenceWith;
diff --git a/node_modules/@types/lodash/drop.d.ts b/node_modules/@types/lodash/drop.d.ts
new file mode 100644
index 000000000..1283f99a5
--- /dev/null
+++ b/node_modules/@types/lodash/drop.d.ts
@@ -0,0 +1,2 @@
+import { drop } from "./index";
+export = drop;
diff --git a/node_modules/@types/lodash/drop/index.d.ts b/node_modules/@types/lodash/drop/index.d.ts
deleted file mode 100644
index 51363022d..000000000
--- a/node_modules/@types/lodash/drop/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { drop } from "../index";
-export = drop;
diff --git a/node_modules/@types/lodash/dropRight.d.ts b/node_modules/@types/lodash/dropRight.d.ts
new file mode 100644
index 000000000..4133c9850
--- /dev/null
+++ b/node_modules/@types/lodash/dropRight.d.ts
@@ -0,0 +1,2 @@
+import { dropRight } from "./index";
+export = dropRight;
diff --git a/node_modules/@types/lodash/dropRight/index.d.ts b/node_modules/@types/lodash/dropRight/index.d.ts
deleted file mode 100644
index db6c28288..000000000
--- a/node_modules/@types/lodash/dropRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { dropRight } from "../index";
-export = dropRight;
diff --git a/node_modules/@types/lodash/dropRightWhile.d.ts b/node_modules/@types/lodash/dropRightWhile.d.ts
new file mode 100644
index 000000000..0dda808d4
--- /dev/null
+++ b/node_modules/@types/lodash/dropRightWhile.d.ts
@@ -0,0 +1,2 @@
+import { dropRightWhile } from "./index";
+export = dropRightWhile;
diff --git a/node_modules/@types/lodash/dropRightWhile/index.d.ts b/node_modules/@types/lodash/dropRightWhile/index.d.ts
deleted file mode 100644
index ded3145f2..000000000
--- a/node_modules/@types/lodash/dropRightWhile/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { dropRightWhile } from "../index";
-export = dropRightWhile;
diff --git a/node_modules/@types/lodash/dropWhile.d.ts b/node_modules/@types/lodash/dropWhile.d.ts
new file mode 100644
index 000000000..894ebaa23
--- /dev/null
+++ b/node_modules/@types/lodash/dropWhile.d.ts
@@ -0,0 +1,2 @@
+import { dropWhile } from "./index";
+export = dropWhile;
diff --git a/node_modules/@types/lodash/dropWhile/index.d.ts b/node_modules/@types/lodash/dropWhile/index.d.ts
deleted file mode 100644
index b7725389d..000000000
--- a/node_modules/@types/lodash/dropWhile/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { dropWhile } from "../index";
-export = dropWhile;
diff --git a/node_modules/@types/lodash/each.d.ts b/node_modules/@types/lodash/each.d.ts
new file mode 100644
index 000000000..608f8a9b9
--- /dev/null
+++ b/node_modules/@types/lodash/each.d.ts
@@ -0,0 +1,2 @@
+import { each } from "./index";
+export = each;
diff --git a/node_modules/@types/lodash/each/index.d.ts b/node_modules/@types/lodash/each/index.d.ts
deleted file mode 100644
index bc2a8003c..000000000
--- a/node_modules/@types/lodash/each/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { each } from "../index";
-export = each;
diff --git a/node_modules/@types/lodash/eachRight.d.ts b/node_modules/@types/lodash/eachRight.d.ts
new file mode 100644
index 000000000..ae0bb6f87
--- /dev/null
+++ b/node_modules/@types/lodash/eachRight.d.ts
@@ -0,0 +1,2 @@
+import { eachRight } from "./index";
+export = eachRight;
diff --git a/node_modules/@types/lodash/eachRight/index.d.ts b/node_modules/@types/lodash/eachRight/index.d.ts
deleted file mode 100644
index 664b98f08..000000000
--- a/node_modules/@types/lodash/eachRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { eachRight } from "../index";
-export = eachRight;
diff --git a/node_modules/@types/lodash/endsWith.d.ts b/node_modules/@types/lodash/endsWith.d.ts
new file mode 100644
index 000000000..d8475b13a
--- /dev/null
+++ b/node_modules/@types/lodash/endsWith.d.ts
@@ -0,0 +1,2 @@
+import { endsWith } from "./index";
+export = endsWith;
diff --git a/node_modules/@types/lodash/endsWith/index.d.ts b/node_modules/@types/lodash/endsWith/index.d.ts
deleted file mode 100644
index c37e750bf..000000000
--- a/node_modules/@types/lodash/endsWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { endsWith } from "../index";
-export = endsWith;
diff --git a/node_modules/@types/lodash/eq.d.ts b/node_modules/@types/lodash/eq.d.ts
new file mode 100644
index 000000000..88ec88791
--- /dev/null
+++ b/node_modules/@types/lodash/eq.d.ts
@@ -0,0 +1,2 @@
+import { eq } from "./index";
+export = eq;
diff --git a/node_modules/@types/lodash/eq/index.d.ts b/node_modules/@types/lodash/eq/index.d.ts
deleted file mode 100644
index 73629f451..000000000
--- a/node_modules/@types/lodash/eq/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { eq } from "../index";
-export = eq;
diff --git a/node_modules/@types/lodash/escape.d.ts b/node_modules/@types/lodash/escape.d.ts
new file mode 100644
index 000000000..9f628a3ba
--- /dev/null
+++ b/node_modules/@types/lodash/escape.d.ts
@@ -0,0 +1,2 @@
+import { escape } from "./index";
+export = escape;
diff --git a/node_modules/@types/lodash/escape/index.d.ts b/node_modules/@types/lodash/escape/index.d.ts
deleted file mode 100644
index 8272e3ee4..000000000
--- a/node_modules/@types/lodash/escape/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { escape } from "../index";
-export = escape;
diff --git a/node_modules/@types/lodash/escapeRegExp.d.ts b/node_modules/@types/lodash/escapeRegExp.d.ts
new file mode 100644
index 000000000..97519c10f
--- /dev/null
+++ b/node_modules/@types/lodash/escapeRegExp.d.ts
@@ -0,0 +1,2 @@
+import { escapeRegExp } from "./index";
+export = escapeRegExp;
diff --git a/node_modules/@types/lodash/escapeRegExp/index.d.ts b/node_modules/@types/lodash/escapeRegExp/index.d.ts
deleted file mode 100644
index 0205f95fb..000000000
--- a/node_modules/@types/lodash/escapeRegExp/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { escapeRegExp } from "../index";
-export = escapeRegExp;
diff --git a/node_modules/@types/lodash/every.d.ts b/node_modules/@types/lodash/every.d.ts
new file mode 100644
index 000000000..d9717d4b1
--- /dev/null
+++ b/node_modules/@types/lodash/every.d.ts
@@ -0,0 +1,2 @@
+import { every } from "./index";
+export = every;
diff --git a/node_modules/@types/lodash/every/index.d.ts b/node_modules/@types/lodash/every/index.d.ts
deleted file mode 100644
index 66213e9e2..000000000
--- a/node_modules/@types/lodash/every/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { every } from "../index";
-export = every;
diff --git a/node_modules/@types/lodash/extend.d.ts b/node_modules/@types/lodash/extend.d.ts
new file mode 100644
index 000000000..1b3107a00
--- /dev/null
+++ b/node_modules/@types/lodash/extend.d.ts
@@ -0,0 +1,2 @@
+import { extend } from "./index";
+export = extend;
diff --git a/node_modules/@types/lodash/extend/index.d.ts b/node_modules/@types/lodash/extend/index.d.ts
deleted file mode 100644
index 28d0c569c..000000000
--- a/node_modules/@types/lodash/extend/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { extend } from "../index";
-export = extend;
diff --git a/node_modules/@types/lodash/extendWith.d.ts b/node_modules/@types/lodash/extendWith.d.ts
new file mode 100644
index 000000000..99ca5d04e
--- /dev/null
+++ b/node_modules/@types/lodash/extendWith.d.ts
@@ -0,0 +1,2 @@
+import { extendWith } from "./index";
+export = extendWith;
diff --git a/node_modules/@types/lodash/extendWith/index.d.ts b/node_modules/@types/lodash/extendWith/index.d.ts
deleted file mode 100644
index 0e7d468ac..000000000
--- a/node_modules/@types/lodash/extendWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { extendWith } from "../index";
-export = extendWith;
diff --git a/node_modules/@types/lodash/fb/index.d.ts b/node_modules/@types/lodash/fb/index.d.ts
deleted file mode 100644
index 0815bfc77..000000000
--- a/node_modules/@types/lodash/fb/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import * as _ from "../index";
-export = _;
diff --git a/node_modules/@types/lodash/fill.d.ts b/node_modules/@types/lodash/fill.d.ts
new file mode 100644
index 000000000..f595dfcd0
--- /dev/null
+++ b/node_modules/@types/lodash/fill.d.ts
@@ -0,0 +1,2 @@
+import { fill } from "./index";
+export = fill;
diff --git a/node_modules/@types/lodash/fill/index.d.ts b/node_modules/@types/lodash/fill/index.d.ts
deleted file mode 100644
index f8839d3c2..000000000
--- a/node_modules/@types/lodash/fill/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { fill } from "../index";
-export = fill;
diff --git a/node_modules/@types/lodash/filter.d.ts b/node_modules/@types/lodash/filter.d.ts
new file mode 100644
index 000000000..a4496de6a
--- /dev/null
+++ b/node_modules/@types/lodash/filter.d.ts
@@ -0,0 +1,2 @@
+import { filter } from "./index";
+export = filter;
diff --git a/node_modules/@types/lodash/filter/index.d.ts b/node_modules/@types/lodash/filter/index.d.ts
deleted file mode 100644
index b59a2d197..000000000
--- a/node_modules/@types/lodash/filter/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { filter } from "../index";
-export = filter;
diff --git a/node_modules/@types/lodash/find.d.ts b/node_modules/@types/lodash/find.d.ts
new file mode 100644
index 000000000..e8da4b4f5
--- /dev/null
+++ b/node_modules/@types/lodash/find.d.ts
@@ -0,0 +1,2 @@
+import { find } from "./index";
+export = find;
diff --git a/node_modules/@types/lodash/find/index.d.ts b/node_modules/@types/lodash/find/index.d.ts
deleted file mode 100644
index 588ee3571..000000000
--- a/node_modules/@types/lodash/find/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { find } from "../index";
-export = find;
diff --git a/node_modules/@types/lodash/findIndex.d.ts b/node_modules/@types/lodash/findIndex.d.ts
new file mode 100644
index 000000000..6b724446b
--- /dev/null
+++ b/node_modules/@types/lodash/findIndex.d.ts
@@ -0,0 +1,2 @@
+import { findIndex } from "./index";
+export = findIndex;
diff --git a/node_modules/@types/lodash/findIndex/index.d.ts b/node_modules/@types/lodash/findIndex/index.d.ts
deleted file mode 100644
index 2b5047ae2..000000000
--- a/node_modules/@types/lodash/findIndex/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { findIndex } from "../index";
-export = findIndex;
diff --git a/node_modules/@types/lodash/findKey.d.ts b/node_modules/@types/lodash/findKey.d.ts
new file mode 100644
index 000000000..90230b437
--- /dev/null
+++ b/node_modules/@types/lodash/findKey.d.ts
@@ -0,0 +1,2 @@
+import { findKey } from "./index";
+export = findKey;
diff --git a/node_modules/@types/lodash/findKey/index.d.ts b/node_modules/@types/lodash/findKey/index.d.ts
deleted file mode 100644
index fe5960628..000000000
--- a/node_modules/@types/lodash/findKey/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { findKey } from "../index";
-export = findKey;
diff --git a/node_modules/@types/lodash/findLast.d.ts b/node_modules/@types/lodash/findLast.d.ts
new file mode 100644
index 000000000..c4f24fc17
--- /dev/null
+++ b/node_modules/@types/lodash/findLast.d.ts
@@ -0,0 +1,2 @@
+import { findLast } from "./index";
+export = findLast;
diff --git a/node_modules/@types/lodash/findLast/index.d.ts b/node_modules/@types/lodash/findLast/index.d.ts
deleted file mode 100644
index fb85b9ad7..000000000
--- a/node_modules/@types/lodash/findLast/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { findLast } from "../index";
-export = findLast;
diff --git a/node_modules/@types/lodash/findLastIndex.d.ts b/node_modules/@types/lodash/findLastIndex.d.ts
new file mode 100644
index 000000000..21856e532
--- /dev/null
+++ b/node_modules/@types/lodash/findLastIndex.d.ts
@@ -0,0 +1,2 @@
+import { findLastIndex } from "./index";
+export = findLastIndex;
diff --git a/node_modules/@types/lodash/findLastIndex/index.d.ts b/node_modules/@types/lodash/findLastIndex/index.d.ts
deleted file mode 100644
index 6e6e74fd9..000000000
--- a/node_modules/@types/lodash/findLastIndex/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { findLastIndex } from "../index";
-export = findLastIndex;
diff --git a/node_modules/@types/lodash/findLastKey.d.ts b/node_modules/@types/lodash/findLastKey.d.ts
new file mode 100644
index 000000000..ed7ff798d
--- /dev/null
+++ b/node_modules/@types/lodash/findLastKey.d.ts
@@ -0,0 +1,2 @@
+import { findLastKey } from "./index";
+export = findLastKey;
diff --git a/node_modules/@types/lodash/findLastKey/index.d.ts b/node_modules/@types/lodash/findLastKey/index.d.ts
deleted file mode 100644
index 5ba81ab7e..000000000
--- a/node_modules/@types/lodash/findLastKey/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { findLastKey } from "../index";
-export = findLastKey;
diff --git a/node_modules/@types/lodash/first.d.ts b/node_modules/@types/lodash/first.d.ts
new file mode 100644
index 000000000..fd1cda7af
--- /dev/null
+++ b/node_modules/@types/lodash/first.d.ts
@@ -0,0 +1,2 @@
+import { first } from "./index";
+export = first;
diff --git a/node_modules/@types/lodash/first/index.d.ts b/node_modules/@types/lodash/first/index.d.ts
deleted file mode 100644
index e96a0616d..000000000
--- a/node_modules/@types/lodash/first/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { first } from "../index";
-export = first;
diff --git a/node_modules/@types/lodash/flatMap.d.ts b/node_modules/@types/lodash/flatMap.d.ts
new file mode 100644
index 000000000..00570530e
--- /dev/null
+++ b/node_modules/@types/lodash/flatMap.d.ts
@@ -0,0 +1,2 @@
+import { flatMap } from "./index";
+export = flatMap;
diff --git a/node_modules/@types/lodash/flatMap/index.d.ts b/node_modules/@types/lodash/flatMap/index.d.ts
deleted file mode 100644
index 07acccee6..000000000
--- a/node_modules/@types/lodash/flatMap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flatMap } from "../index";
-export = flatMap;
diff --git a/node_modules/@types/lodash/flatten.d.ts b/node_modules/@types/lodash/flatten.d.ts
new file mode 100644
index 000000000..43ac0f444
--- /dev/null
+++ b/node_modules/@types/lodash/flatten.d.ts
@@ -0,0 +1,2 @@
+import { flatten } from "./index";
+export = flatten;
diff --git a/node_modules/@types/lodash/flatten/index.d.ts b/node_modules/@types/lodash/flatten/index.d.ts
deleted file mode 100644
index 84848b2cb..000000000
--- a/node_modules/@types/lodash/flatten/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flatten } from "../index";
-export = flatten;
diff --git a/node_modules/@types/lodash/flattenDeep.d.ts b/node_modules/@types/lodash/flattenDeep.d.ts
new file mode 100644
index 000000000..df08bfa55
--- /dev/null
+++ b/node_modules/@types/lodash/flattenDeep.d.ts
@@ -0,0 +1,2 @@
+import { flattenDeep } from "./index";
+export = flattenDeep;
diff --git a/node_modules/@types/lodash/flattenDeep/index.d.ts b/node_modules/@types/lodash/flattenDeep/index.d.ts
deleted file mode 100644
index 61f9150bc..000000000
--- a/node_modules/@types/lodash/flattenDeep/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flattenDeep } from "../index";
-export = flattenDeep;
diff --git a/node_modules/@types/lodash/flattenDepth.d.ts b/node_modules/@types/lodash/flattenDepth.d.ts
new file mode 100644
index 000000000..f6be541f8
--- /dev/null
+++ b/node_modules/@types/lodash/flattenDepth.d.ts
@@ -0,0 +1,2 @@
+import { flattenDepth } from "./index";
+export = flattenDepth;
diff --git a/node_modules/@types/lodash/flattenDepth/index.d.ts b/node_modules/@types/lodash/flattenDepth/index.d.ts
deleted file mode 100644
index c6686d205..000000000
--- a/node_modules/@types/lodash/flattenDepth/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flattenDepth } from "../index";
-export = flattenDepth;
diff --git a/node_modules/@types/lodash/flip.d.ts b/node_modules/@types/lodash/flip.d.ts
new file mode 100644
index 000000000..48c9924ec
--- /dev/null
+++ b/node_modules/@types/lodash/flip.d.ts
@@ -0,0 +1,2 @@
+import { flip } from "./index";
+export = flip;
diff --git a/node_modules/@types/lodash/flip/index.d.ts b/node_modules/@types/lodash/flip/index.d.ts
deleted file mode 100644
index 174de3210..000000000
--- a/node_modules/@types/lodash/flip/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flip } from "../index";
-export = flip;
diff --git a/node_modules/@types/lodash/floor.d.ts b/node_modules/@types/lodash/floor.d.ts
new file mode 100644
index 000000000..a101e5de0
--- /dev/null
+++ b/node_modules/@types/lodash/floor.d.ts
@@ -0,0 +1,2 @@
+import { floor } from "./index";
+export = floor;
diff --git a/node_modules/@types/lodash/floor/index.d.ts b/node_modules/@types/lodash/floor/index.d.ts
deleted file mode 100644
index 396f7196f..000000000
--- a/node_modules/@types/lodash/floor/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { floor } from "../index";
-export = floor;
diff --git a/node_modules/@types/lodash/flow.d.ts b/node_modules/@types/lodash/flow.d.ts
new file mode 100644
index 000000000..37af0d479
--- /dev/null
+++ b/node_modules/@types/lodash/flow.d.ts
@@ -0,0 +1,2 @@
+import { flow } from "./index";
+export = flow;
diff --git a/node_modules/@types/lodash/flow/index.d.ts b/node_modules/@types/lodash/flow/index.d.ts
deleted file mode 100644
index 053bbffc9..000000000
--- a/node_modules/@types/lodash/flow/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flow } from "../index";
-export = flow;
diff --git a/node_modules/@types/lodash/flowRight.d.ts b/node_modules/@types/lodash/flowRight.d.ts
new file mode 100644
index 000000000..6c63f3edc
--- /dev/null
+++ b/node_modules/@types/lodash/flowRight.d.ts
@@ -0,0 +1,2 @@
+import { flowRight } from "./index";
+export = flowRight;
diff --git a/node_modules/@types/lodash/flowRight/index.d.ts b/node_modules/@types/lodash/flowRight/index.d.ts
deleted file mode 100644
index 91449fc94..000000000
--- a/node_modules/@types/lodash/flowRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { flowRight } from "../index";
-export = flowRight;
diff --git a/node_modules/@types/lodash/forEach.d.ts b/node_modules/@types/lodash/forEach.d.ts
new file mode 100644
index 000000000..8416aab76
--- /dev/null
+++ b/node_modules/@types/lodash/forEach.d.ts
@@ -0,0 +1,2 @@
+import { forEach } from "./index";
+export = forEach;
diff --git a/node_modules/@types/lodash/forEach/index.d.ts b/node_modules/@types/lodash/forEach/index.d.ts
deleted file mode 100644
index 52e04540d..000000000
--- a/node_modules/@types/lodash/forEach/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forEach } from "../index";
-export = forEach;
diff --git a/node_modules/@types/lodash/forEachRight.d.ts b/node_modules/@types/lodash/forEachRight.d.ts
new file mode 100644
index 000000000..af65b5c1c
--- /dev/null
+++ b/node_modules/@types/lodash/forEachRight.d.ts
@@ -0,0 +1,2 @@
+import { forEachRight } from "./index";
+export = forEachRight;
diff --git a/node_modules/@types/lodash/forEachRight/index.d.ts b/node_modules/@types/lodash/forEachRight/index.d.ts
deleted file mode 100644
index 57d330ad8..000000000
--- a/node_modules/@types/lodash/forEachRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forEachRight } from "../index";
-export = forEachRight;
diff --git a/node_modules/@types/lodash/forIn.d.ts b/node_modules/@types/lodash/forIn.d.ts
new file mode 100644
index 000000000..77d6f4853
--- /dev/null
+++ b/node_modules/@types/lodash/forIn.d.ts
@@ -0,0 +1,2 @@
+import { forIn } from "./index";
+export = forIn;
diff --git a/node_modules/@types/lodash/forIn/index.d.ts b/node_modules/@types/lodash/forIn/index.d.ts
deleted file mode 100644
index 2ea510d70..000000000
--- a/node_modules/@types/lodash/forIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forIn } from "../index";
-export = forIn;
diff --git a/node_modules/@types/lodash/forInRight.d.ts b/node_modules/@types/lodash/forInRight.d.ts
new file mode 100644
index 000000000..d73296942
--- /dev/null
+++ b/node_modules/@types/lodash/forInRight.d.ts
@@ -0,0 +1,2 @@
+import { forInRight } from "./index";
+export = forInRight;
diff --git a/node_modules/@types/lodash/forInRight/index.d.ts b/node_modules/@types/lodash/forInRight/index.d.ts
deleted file mode 100644
index ce228b2fb..000000000
--- a/node_modules/@types/lodash/forInRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forInRight } from "../index";
-export = forInRight;
diff --git a/node_modules/@types/lodash/forOwn.d.ts b/node_modules/@types/lodash/forOwn.d.ts
new file mode 100644
index 000000000..dfa930f27
--- /dev/null
+++ b/node_modules/@types/lodash/forOwn.d.ts
@@ -0,0 +1,2 @@
+import { forOwn } from "./index";
+export = forOwn;
diff --git a/node_modules/@types/lodash/forOwn/index.d.ts b/node_modules/@types/lodash/forOwn/index.d.ts
deleted file mode 100644
index dd2237247..000000000
--- a/node_modules/@types/lodash/forOwn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forOwn } from "../index";
-export = forOwn;
diff --git a/node_modules/@types/lodash/forOwnRight.d.ts b/node_modules/@types/lodash/forOwnRight.d.ts
new file mode 100644
index 000000000..fddde6a77
--- /dev/null
+++ b/node_modules/@types/lodash/forOwnRight.d.ts
@@ -0,0 +1,2 @@
+import { forOwnRight } from "./index";
+export = forOwnRight;
diff --git a/node_modules/@types/lodash/forOwnRight/index.d.ts b/node_modules/@types/lodash/forOwnRight/index.d.ts
deleted file mode 100644
index 199d8e3e9..000000000
--- a/node_modules/@types/lodash/forOwnRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { forOwnRight } from "../index";
-export = forOwnRight;
diff --git a/node_modules/@types/lodash/fromPairs.d.ts b/node_modules/@types/lodash/fromPairs.d.ts
new file mode 100644
index 000000000..1c2006c63
--- /dev/null
+++ b/node_modules/@types/lodash/fromPairs.d.ts
@@ -0,0 +1,2 @@
+import { fromPairs } from "./index";
+export = fromPairs;
diff --git a/node_modules/@types/lodash/fromPairs/index.d.ts b/node_modules/@types/lodash/fromPairs/index.d.ts
deleted file mode 100644
index a829a7528..000000000
--- a/node_modules/@types/lodash/fromPairs/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { fromPairs } from "../index";
-export = fromPairs;
diff --git a/node_modules/@types/lodash/functions.d.ts b/node_modules/@types/lodash/functions.d.ts
new file mode 100644
index 000000000..86983361a
--- /dev/null
+++ b/node_modules/@types/lodash/functions.d.ts
@@ -0,0 +1,2 @@
+import { functions } from "./index";
+export = functions;
diff --git a/node_modules/@types/lodash/functions/index.d.ts b/node_modules/@types/lodash/functions/index.d.ts
deleted file mode 100644
index 1e99b7f59..000000000
--- a/node_modules/@types/lodash/functions/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { functions } from "../index";
-export = functions;
diff --git a/node_modules/@types/lodash/functionsIn.d.ts b/node_modules/@types/lodash/functionsIn.d.ts
new file mode 100644
index 000000000..9f72a7838
--- /dev/null
+++ b/node_modules/@types/lodash/functionsIn.d.ts
@@ -0,0 +1,2 @@
+import { functionsIn } from "./index";
+export = functionsIn;
diff --git a/node_modules/@types/lodash/functionsIn/index.d.ts b/node_modules/@types/lodash/functionsIn/index.d.ts
deleted file mode 100644
index 62441fd32..000000000
--- a/node_modules/@types/lodash/functionsIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { functionsIn } from "../index";
-export = functionsIn;
diff --git a/node_modules/@types/lodash/get.d.ts b/node_modules/@types/lodash/get.d.ts
new file mode 100644
index 000000000..5ea7a5a41
--- /dev/null
+++ b/node_modules/@types/lodash/get.d.ts
@@ -0,0 +1,2 @@
+import { get } from "./index";
+export = get;
diff --git a/node_modules/@types/lodash/get/index.d.ts b/node_modules/@types/lodash/get/index.d.ts
deleted file mode 100644
index 6dbe4ed8a..000000000
--- a/node_modules/@types/lodash/get/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { get } from "../index";
-export = get;
diff --git a/node_modules/@types/lodash/groupBy.d.ts b/node_modules/@types/lodash/groupBy.d.ts
new file mode 100644
index 000000000..ef49718e5
--- /dev/null
+++ b/node_modules/@types/lodash/groupBy.d.ts
@@ -0,0 +1,2 @@
+import { groupBy } from "./index";
+export = groupBy;
diff --git a/node_modules/@types/lodash/groupBy/index.d.ts b/node_modules/@types/lodash/groupBy/index.d.ts
deleted file mode 100644
index 82619efd4..000000000
--- a/node_modules/@types/lodash/groupBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { groupBy } from "../index";
-export = groupBy;
diff --git a/node_modules/@types/lodash/gt.d.ts b/node_modules/@types/lodash/gt.d.ts
new file mode 100644
index 000000000..860134fbe
--- /dev/null
+++ b/node_modules/@types/lodash/gt.d.ts
@@ -0,0 +1,2 @@
+import { gt } from "./index";
+export = gt;
diff --git a/node_modules/@types/lodash/gt/index.d.ts b/node_modules/@types/lodash/gt/index.d.ts
deleted file mode 100644
index 719db9b5b..000000000
--- a/node_modules/@types/lodash/gt/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { gt } from "../index";
-export = gt;
diff --git a/node_modules/@types/lodash/gte.d.ts b/node_modules/@types/lodash/gte.d.ts
new file mode 100644
index 000000000..994e88264
--- /dev/null
+++ b/node_modules/@types/lodash/gte.d.ts
@@ -0,0 +1,2 @@
+import { gte } from "./index";
+export = gte;
diff --git a/node_modules/@types/lodash/gte/index.d.ts b/node_modules/@types/lodash/gte/index.d.ts
deleted file mode 100644
index bb9371693..000000000
--- a/node_modules/@types/lodash/gte/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { gte } from "../index";
-export = gte;
diff --git a/node_modules/@types/lodash/has.d.ts b/node_modules/@types/lodash/has.d.ts
new file mode 100644
index 000000000..fff146869
--- /dev/null
+++ b/node_modules/@types/lodash/has.d.ts
@@ -0,0 +1,2 @@
+import { has } from "./index";
+export = has;
diff --git a/node_modules/@types/lodash/has/index.d.ts b/node_modules/@types/lodash/has/index.d.ts
deleted file mode 100644
index ef5386090..000000000
--- a/node_modules/@types/lodash/has/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { has } from "../index";
-export = has;
diff --git a/node_modules/@types/lodash/hasIn.d.ts b/node_modules/@types/lodash/hasIn.d.ts
new file mode 100644
index 000000000..a898071b1
--- /dev/null
+++ b/node_modules/@types/lodash/hasIn.d.ts
@@ -0,0 +1,2 @@
+import { hasIn } from "./index";
+export = hasIn;
diff --git a/node_modules/@types/lodash/hasIn/index.d.ts b/node_modules/@types/lodash/hasIn/index.d.ts
deleted file mode 100644
index c7cbc85ab..000000000
--- a/node_modules/@types/lodash/hasIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { hasIn } from "../index";
-export = hasIn;
diff --git a/node_modules/@types/lodash/head.d.ts b/node_modules/@types/lodash/head.d.ts
new file mode 100644
index 000000000..0e16da171
--- /dev/null
+++ b/node_modules/@types/lodash/head.d.ts
@@ -0,0 +1,2 @@
+import { head } from "./index";
+export = head;
diff --git a/node_modules/@types/lodash/head/index.d.ts b/node_modules/@types/lodash/head/index.d.ts
deleted file mode 100644
index 29b7c4d53..000000000
--- a/node_modules/@types/lodash/head/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { head } from "../index";
-export = head;
diff --git a/node_modules/@types/lodash/identity.d.ts b/node_modules/@types/lodash/identity.d.ts
new file mode 100644
index 000000000..6814a1653
--- /dev/null
+++ b/node_modules/@types/lodash/identity.d.ts
@@ -0,0 +1,2 @@
+import { identity } from "./index";
+export = identity;
diff --git a/node_modules/@types/lodash/identity/index.d.ts b/node_modules/@types/lodash/identity/index.d.ts
deleted file mode 100644
index aba47ddd7..000000000
--- a/node_modules/@types/lodash/identity/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { identity } from "../index";
-export = identity;
diff --git a/node_modules/@types/lodash/inRange.d.ts b/node_modules/@types/lodash/inRange.d.ts
new file mode 100644
index 000000000..d9c57c0e8
--- /dev/null
+++ b/node_modules/@types/lodash/inRange.d.ts
@@ -0,0 +1,2 @@
+import { inRange } from "./index";
+export = inRange;
diff --git a/node_modules/@types/lodash/inRange/index.d.ts b/node_modules/@types/lodash/inRange/index.d.ts
deleted file mode 100644
index f62fa72af..000000000
--- a/node_modules/@types/lodash/inRange/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { inRange } from "../index";
-export = inRange;
diff --git a/node_modules/@types/lodash/includes.d.ts b/node_modules/@types/lodash/includes.d.ts
new file mode 100644
index 000000000..4edd22619
--- /dev/null
+++ b/node_modules/@types/lodash/includes.d.ts
@@ -0,0 +1,2 @@
+import { includes } from "./index";
+export = includes;
diff --git a/node_modules/@types/lodash/includes/index.d.ts b/node_modules/@types/lodash/includes/index.d.ts
deleted file mode 100644
index 3b2e89730..000000000
--- a/node_modules/@types/lodash/includes/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { includes } from "../index";
-export = includes;
diff --git a/node_modules/@types/lodash/index.d.ts b/node_modules/@types/lodash/index.d.ts
index a5f42e130..2c996d99b 100644
--- a/node_modules/@types/lodash/index.d.ts
+++ b/node_modules/@types/lodash/index.d.ts
@@ -1,19639 +1,20003 @@
-// Type definitions for Lo-Dash 4.14
-// Project: http://lodash.com/
-// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, Eric L Anderson <https://github.com/ericanderson>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.2
-
-/**
-### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog)
-
-#### TODO:
-removed:
-- [x] Removed _.support
-- [x] Removed _.findWhere in favor of _.find with iteratee shorthand
-- [x] Removed _.where in favor of _.filter with iteratee shorthand
-- [x] Removed _.pluck in favor of _.map with iteratee shorthand
-
-renamed:
-- [x] Renamed _.first to _.head
-- [x] Renamed _.indexBy to _.keyBy
-- [x] Renamed _.invoke to _.invokeMap
-- [x] Renamed _.overArgs to _.overArgs
-- [x] Renamed _.padLeft & _.padRight to _.padStart & _.padEnd
-- [x] Renamed _.pairs to _.toPairs
-- [x] Renamed _.rest to _.tail
-- [x] Renamed _.restParam to _.rest
-- [x] Renamed _.sortByOrder to _.orderBy
-- [x] Renamed _.trimLeft & _.trimRight to _.trimStart & _.trimEnd
-- [x] Renamed _.trunc to _.truncate
-
-split:
-- [x] Split _.indexOf & _.lastIndexOf into _.sortedIndexOf & _.sortedLastIndexOf
-- [x] Split _.max & _.min into _.maxBy & _.minBy
-- [x] Split _.omit & _.pick into _.omitBy & _.pickBy
-- [x] Split _.sample into _.sampleSize
-- [x] Split _.sortedIndex into _.sortedIndexBy
-- [x] Split _.sortedLastIndex into _.sortedLastIndexBy
-- [x] Split _.uniq into _.sortedUniq, _.sortedUniqBy, & _.uniqBy
-
-changes:
-- [x] Absorbed _.sortByAll into _.sortBy
-- [x] Changed the category of _.at to “Object”
-- [x] Changed the category of _.bindAll to “Utility”
-- [x] Made _.capitalize uppercase the first character & lowercase the rest
-- [x] Made _.functions return only own method names
-
-added 23 array methods:
-- [x] _.concat
-- [x] _.differenceBy
-- [x] _.differenceWith
-- [x] _.flatMap
-- [x] _.fromPairs
-- [x] _.intersectionBy
-- [x] _.intersectionWith
-- [x] _.join
-- [x] _.pullAll
-- [x] _.pullAllBy
-- [x] _.reverse
-- [x] _.sortedIndexBy
-- [x] _.sortedIndexOf
-- [x] _.sortedLastIndexBy
-- [x] _.sortedLastIndexOf
-- [x] _.sortedUniq
-- [x] _.sortedUniqBy
-- [x] _.unionBy
-- [x] _.unionWith
-- [x] _.uniqBy
-- [x] _.uniqWith
-- [x] _.xorBy
-- [x] _.xorWith
-
-added 20 lang methods:
-- [x] _.cloneDeepWith
-- [x] _.cloneWith
-- [x] _.eq
-- [x] _.isArrayLike
-- [x] _.isArrayLikeObject
-- [x] _.isEqualWith
-- [x] _.isInteger
-- [x] _.isLength
-- [x] _.isMatchWith
-- [x] _.isNil
-- [x] _.isObjectLike
-- [x] _.isSafeInteger
-- [x] _.isSymbol
-- [x] _.toInteger
-- [x] _.toLength
-- [x] _.toNumber
-- [x] _.toSafeInteger
-- [x] _.toString
-- [X] _.conforms
-- [X] _.conformsTo
-
-added 13 object methods:
-- [x] _.assignIn
-- [x] _.assignInWith
-- [x] _.assignWith
-- [x] _.functionsIn
-- [x] _.hasIn
-- [x] _.mergeWith
-- [x] _.omitBy
-- [x] _.pickBy
-
-added 8 string methods:
-- [x] _.lowerCase
-- [x] _.lowerFirst
-- [x] _.upperCase
-- [x] _.upperFirst
-- [x] _.toLower
-- [x] _.toUpper
-
-added 8 utility methods:
-- [x] _.toPath
-
-added 4 math methods:
-- [x] _.maxBy
-- [x] _.mean
-- [x] _.minBy
-- [x] _.sumBy
-
-added 2 function methods:
-- [x] _.flip
-- [x] _.unary
-
-added 2 number methods:
-- [x] _.clamp
-- [x] _.subtract
-
-added collection method:
-- [x] _.sampleSize
-
-Added 3 aliases
-
-- [x] _.first as an alias of _.head
-
-Removed 17 aliases
-- [x] Removed aliase _.all
-- [x] Removed aliase _.any
-- [x] Removed aliase _.backflow
-- [x] Removed aliase _.callback
-- [x] Removed aliase _.collect
-- [x] Removed aliase _.compose
-- [x] Removed aliase _.contains
-- [x] Removed aliase _.detect
-- [x] Removed aliase _.foldl
-- [x] Removed aliase _.foldr
-- [x] Removed aliase _.include
-- [x] Removed aliase _.inject
-- [x] Removed aliase _.methods
-- [x] Removed aliase _.object
-- [x] Removed aliase _.run
-- [x] Removed aliase _.select
-- [x] Removed aliase _.unique
-
-Other changes
-- [x] Added support for array buffers to _.isEqual
-- [x] Added support for converting iterators to _.toArray
-- [x] Added support for deep paths to _.zipObject
-- [x] Changed UMD to export to window or self when available regardless of other exports
-- [x] Ensured debounce cancel clears args & thisArg references
-- [x] Ensured _.add, _.subtract, & _.sum don’t skip NaN values
-- [x] Ensured _.clone treats generators like functions
-- [x] Ensured _.clone produces clones with the source’s [[Prototype]]
-- [x] Ensured _.defaults assigns properties that shadow Object.prototype
-- [x] Ensured _.defaultsDeep doesn’t merge a string into an array
-- [x] Ensured _.defaultsDeep & _.merge don’t modify sources
-- [x] Ensured _.defaultsDeep works with circular references
-- [x] Ensured _.keys skips “length” on strict mode arguments objects in Safari 9
-- [x] Ensured _.merge doesn’t convert strings to arrays
-- [x] Ensured _.merge merges plain-objects onto non plain-objects
-- [x] Ensured _#plant resets iterator data of cloned sequences
-- [x] Ensured _.random swaps min & max if min is greater than max
-- [x] Ensured _.range preserves the sign of start of -0
-- [x] Ensured _.reduce & _.reduceRight use getIteratee in their array branch
-- [x] Fixed rounding issue with the precision param of _.floor
-- [x] Added flush method to debounced & throttled functions
-
-** LATER **
-Misc:
-- [ ] Made _.forEach, _.forIn, _.forOwn, & _.times implicitly end a chain sequence
-- [ ] Removed thisArg params from most methods
-- [ ] Made “By” methods provide a single param to iteratees
-- [ ] Made _.words chainable by default
-- [ ] Removed isDeep params from _.clone & _.flatten
-- [ ] Removed _.bindAll support for binding all methods when no names are provided
-- [ ] Removed func-first param signature from _.before & _.after
-- [ ] _.extend as an alias of _.assignIn
-- [ ] _.extendWith as an alias of _.assignInWith
-- [ ] Added clear method to _.memoize.Cache
-- [ ] Added support for ES6 maps, sets, & symbols to _.clone, _.isEqual, & _.toArray
-- [ ] Enabled _.flow & _.flowRight to accept an array of functions
-- [ ] Ensured “Collection” methods treat functions as objects
-- [ ] Ensured _.assign, _.defaults, & _.merge coerce object values to objects
-- [ ] Ensured _.bindKey bound functions call object[key] when called with the new operator
-- [ ] Ensured _.isFunction returns true for generator functions
-- [ ] Ensured _.merge assigns typed arrays directly
-- [ ] Made _(...) an iterator & iterable
-- [ ] Made _.drop, _.take, & right forms coerce n of undefined to 0
-
-Methods:
-- [ ] _.concat
-- [ ] _.differenceBy
-- [ ] _.differenceWith
-- [ ] _.flatMap
-- [ ] _.fromPairs
-- [ ] _.intersectionBy
-- [ ] _.intersectionWith
-- [ ] _.join
-- [ ] _.pullAll
-- [ ] _.pullAllBy
-- [ ] _.reverse
-- [ ] _.sortedLastIndexOf
-- [ ] _.unionBy
-- [ ] _.unionWith
-- [ ] _.uniqWith
-- [ ] _.xorBy
-- [ ] _.xorWith
-- [ ] _.toString
-
-- [ ] _.invoke
-- [ ] _.setWith
-- [ ] _.toPairs
-- [ ] _.toPairsIn
-- [ ] _.unset
-
-- [ ] _.replace
-- [ ] _.split
-
-- [ ] _.cond
-- [ ] _.nthArg
-- [ ] _.over
-- [ ] _.overEvery
-- [ ] _.overSome
-- [ ] _.rangeRight
-
-- [ ] _.next
-*/
-
-export = _;
-export as namespace _;
-
-declare var _: _.LoDashStatic;
-
-type PartialObject<T> = Partial<T>;
-
-declare namespace _ {
- type Many<T> = T | T[];
-
- interface LoDashStatic {
- /**
- * Creates a lodash object which wraps the given value to enable intuitive method chaining.
- *
- * In addition to Lo-Dash methods, wrappers also have the following Array methods:
- * concat, join, pop, push, reverse, shift, slice, sort, splice, and unshift
- *
- * Chaining is supported in custom builds as long as the value method is implicitly or
- * explicitly included in the build.
- *
- * The chainable wrapper functions are:
- * after, assign, bind, bindAll, bindKey, chain, chunk, compact, compose, concat, countBy,
- * createCallback, curry, debounce, defaults, defer, delay, difference, filter, flatten,
- * forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy,
- * keyBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min,
- * object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject,
- * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times,
- * toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip
- *
- * The non-chainable wrapper functions are:
- * clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast,
- * findLastIndex, findLastKey, has, identity, indexOf, isArguments, isArray, isBoolean,
- * isDate, isElement, isEmpty, isEqual, isFinite, isFunction, isNaN, isNull, isNumber,
- * isObject, isPlainObject, isRegExp, isString, isUndefined, join, lastIndexOf, mixin,
- * noConflict, parseInt, pop, random, reduce, reduceRight, result, shift, size, some,
- * sortedIndex, runInContext, template, unescape, uniqueId, and value
- *
- * The wrapper functions first and last return wrapped values when n is provided, otherwise
- * they return unwrapped values.
- *
- * Explicit chaining can be enabled by using the _.chain method.
- **/
- (value: number): LoDashImplicitWrapper<number>;
- (value: string): LoDashImplicitStringWrapper;
- (value: boolean): LoDashImplicitWrapper<boolean>;
- (value: number[]): LoDashImplicitNumberArrayWrapper;
- <T>(value: T[]): LoDashImplicitArrayWrapper<T>;
- <T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
- (value: any): LoDashImplicitWrapper<any>;
-
- /**
- * The semantic version number.
- **/
- VERSION: string;
-
- /**
- * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
- * (ERB). Change the following template settings to use alternative delimiters.
- **/
- templateSettings: TemplateSettings;
- }
-
- /**
- * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
- * (ERB). Change the following template settings to use alternative delimiters.
- **/
- interface TemplateSettings {
- /**
- * The "escape" delimiter.
- **/
- escape?: RegExp;
-
- /**
- * The "evaluate" delimiter.
- **/
- evaluate?: RegExp;
-
- /**
- * An object to import into the template as local variables.
- **/
- imports?: Dictionary<any>;
-
- /**
- * The "interpolate" delimiter.
- **/
- interpolate?: RegExp;
-
- /**
- * Used to reference the data object in the template text.
- **/
- variable?: string;
- }
-
- /**
- * Creates a cache object to store key/value pairs.
- */
- interface MapCache {
- /**
- * Removes `key` and its value from the cache.
- * @param key The key of the value to remove.
- * @return Returns `true` if the entry was removed successfully, else `false`.
- */
- delete(key: string): boolean;
-
- /**
- * Gets the cached value for `key`.
- * @param key The key of the value to get.
- * @return Returns the cached value.
- */
- get(key: string): any;
-
- /**
- * Checks if a cached value for `key` exists.
- * @param key The key of the entry to check.
- * @return Returns `true` if an entry for `key` exists, else `false`.
- */
- has(key: string): boolean;
-
- /**
- * Sets `value` to `key` of the cache.
- * @param key The key of the value to cache.
- * @param value The value to cache.
- * @return Returns the cache object.
- */
- set(key: string, value: any): _.Dictionary<any>;
- }
- interface MapCacheConstructor {
- new (): MapCache;
- }
-
- interface LoDashWrapperBase<T, TWrapper> { }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { }
-
- interface LoDashImplicitWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitWrapper<T>> { }
-
- interface LoDashExplicitWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitWrapper<T>> { }
-
- interface LoDashImplicitStringWrapper extends LoDashImplicitWrapper<string> { }
-
- interface LoDashExplicitStringWrapper extends LoDashExplicitWrapper<string> { }
-
- interface LoDashImplicitObjectWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitObjectWrapper<T>> { }
-
- interface LoDashExplicitObjectWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitObjectWrapper<T>> { }
-
- interface LoDashImplicitArrayWrapper<T> extends LoDashImplicitWrapperBase<T[], LoDashImplicitArrayWrapper<T>> {
- pop(): T;
- push(...items: T[]): LoDashImplicitArrayWrapper<T>;
- shift(): T;
- sort(compareFn?: (a: T, b: T) => number): LoDashImplicitArrayWrapper<T>;
- splice(start: number): LoDashImplicitArrayWrapper<T>;
- splice(start: number, deleteCount: number, ...items: any[]): LoDashImplicitArrayWrapper<T>;
- unshift(...items: T[]): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> extends LoDashExplicitWrapperBase<T[], LoDashExplicitArrayWrapper<T>> {
- pop(): LoDashExplicitObjectWrapper<T>;
- push(...items: T[]): LoDashExplicitArrayWrapper<T>;
- shift(): LoDashExplicitObjectWrapper<T>;
- sort(compareFn?: (a: T, b: T) => number): LoDashExplicitArrayWrapper<T>;
- splice(start: number): LoDashExplicitArrayWrapper<T>;
- splice(start: number, deleteCount: number, ...items: any[]): LoDashExplicitArrayWrapper<T>;
- unshift(...items: T[]): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitNumberArrayWrapper extends LoDashImplicitArrayWrapper<number> { }
-
- interface LoDashExplicitNumberArrayWrapper extends LoDashExplicitArrayWrapper<number> { }
-
- /*********
- * Array *
- *********/
-
- //_.chunk
- interface LoDashStatic {
- /**
- * Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the
- * final chunk will be the remaining elements.
- *
- * @param array The array to process.
- * @param size The length of each chunk.
- * @return Returns the new array containing chunks.
- */
- chunk<T>(
- array: List<T>,
- size?: number
- ): T[][];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.chunk
- */
- chunk(size?: number): LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.chunk
- */
- chunk<TResult>(size?: number): LoDashImplicitArrayWrapper<TResult[]>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.chunk
- */
- chunk(size?: number): LoDashExplicitArrayWrapper<T[]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.chunk
- */
- chunk<TResult>(size?: number): LoDashExplicitArrayWrapper<TResult[]>;
- }
-
- //_.compact
- interface LoDashStatic {
- /**
- * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are
- * falsey.
- *
- * @param array The array to compact.
- * @return (Array) Returns the new array of filtered values.
- */
- compact<T>(array?: List<T | undefined>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.compact
- */
- compact(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.compact
- */
- compact<TResult>(): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.compact
- */
- compact(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.compact
- */
- compact<TResult>(): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.concat DUMMY
- interface LoDashStatic {
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- concat<T>(array: List<T>, ...values: Array<T|List<T>>): T[];
- }
-
- //_.difference
- interface LoDashStatic {
- /**
- * Creates an array of unique array values not included in the other provided arrays using SameValueZero for
- * equality comparisons.
- *
- * @param array The array to inspect.
- * @param values The arrays of values to exclude.
- * @return Returns the new array of filtered values.
- */
- difference<T>(
- array: List<T>,
- ...values: Array<List<T>>
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.difference
- */
- difference(...values: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.difference
- */
- difference<TValue>(...values: Array<List<TValue>>): LoDashImplicitArrayWrapper<TValue>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.difference
- */
- difference(...values: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.difference
- */
- difference<TValue>(...values: Array<List<TValue>>): LoDashExplicitArrayWrapper<TValue>;
- }
-
- //_.differenceBy
- interface LoDashStatic {
- /**
- * This method is like _.difference except that it accepts iteratee which is invoked for each element of array
- * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one
- * argument: (value).
- *
- * @param array The array to inspect.
- * @param values The values to exclude.
- * @param iteratee The iteratee invoked per element.
- * @returns Returns the new array of filtered values.
- */
- differenceBy<T>(
- array: List<T>,
- values?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- array: List<T>,
- values?: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- array: List<T>,
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- array: List<T>,
- ...values: any[]
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- ...values: any[]
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- ...values: any[]
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- ...values: any[]
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: ((value: T) => any)|string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T, W extends Object>(
- values1?: List<T>,
- values2?: List<T>,
- values3?: List<T>,
- values4?: List<T>,
- values5?: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.differenceBy
- */
- differenceBy<T>(
- ...values: any[]
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.differenceWith DUMMY
- interface LoDashStatic {
- /**
- * Creates an array of unique `array` values not included in the other
- * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.difference([3, 2, 1], [4, 2]);
- * // => [3, 1]
- */
- differenceWith(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.drop
- interface LoDashStatic {
- /**
- * Creates a slice of array with n elements dropped from the beginning.
- *
- * @param array The array to query.
- * @param n The number of elements to drop.
- * @return Returns the slice of array.
- */
- drop<T>(array: List<T>, n?: number): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.drop
- */
- drop(n?: number): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.drop
- */
- drop<T>(n?: number): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.drop
- */
- drop(n?: number): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.drop
- */
- drop<T>(n?: number): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.dropRight
- interface LoDashStatic {
- /**
- * Creates a slice of array with n elements dropped from the end.
- *
- * @param array The array to query.
- * @param n The number of elements to drop.
- * @return Returns the slice of array.
- */
- dropRight<T>(
- array: List<T>,
- n?: number
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.dropRight
- */
- dropRight(n?: number): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.dropRight
- */
- dropRight<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.dropRight
- */
- dropRight(n?: number): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.dropRight
- */
- dropRight<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.dropRightWhile
- interface LoDashStatic {
- /**
- * Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate
- * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * match the properties of the given object, else false.
- *
- * @param array The array to query.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the slice of array.
- */
- dropRightWhile<TValue>(
- array: List<TValue>,
- predicate?: ListIterator<TValue, boolean>
- ): TValue[];
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TValue>(
- array: List<TValue>,
- predicate?: string
- ): TValue[];
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TWhere, TValue>(
- array: List<TValue>,
- predicate?: TWhere
- ): TValue[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile(
- predicate?: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TWhere>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TValue>(
- predicate?: string
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<TValue>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile(
- predicate?: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TWhere>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TValue>(
- predicate?: string
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropRightWhile
- */
- dropRightWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<TValue>;
- }
-
- //_.dropWhile
- interface LoDashStatic {
- /**
- * Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate
- * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param array The array to query.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the slice of array.
- */
- dropWhile<TValue>(
- array: List<TValue>,
- predicate?: ListIterator<TValue, boolean>
- ): TValue[];
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TValue>(
- array: List<TValue>,
- predicate?: string
- ): TValue[];
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TWhere, TValue>(
- array: List<TValue>,
- predicate?: TWhere
- ): TValue[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.dropWhile
- */
- dropWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile(
- predicate?: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TWhere>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.dropWhile
- */
- dropWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TValue>(
- predicate?: string
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<TValue>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.dropWhile
- */
- dropWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile(
- predicate?: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TWhere>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.dropWhile
- */
- dropWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TValue>(
- predicate?: string
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.dropWhile
- */
- dropWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<TValue>;
- }
-
- //_.fill
- interface LoDashStatic {
- /**
- * Fills elements of array with value from start up to, but not including, end.
- *
- * Note: This method mutates array.
- *
- * @param array The array to fill.
- * @param value The value to fill array with.
- * @param start The start position.
- * @param end The end position.
- * @return Returns array.
- */
- fill<T>(
- array: any[],
- value: T,
- start?: number,
- end?: number
- ): T[];
-
- /**
- * @see _.fill
- */
- fill<T>(
- array: List<any>,
- value: T,
- start?: number,
- end?: number
- ): List<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.fill
- */
- fill<T>(
- value: T,
- start?: number,
- end?: number
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.fill
- */
- fill<T>(
- value: T,
- start?: number,
- end?: number
- ): LoDashImplicitObjectWrapper<List<T>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.fill
- */
- fill<T>(
- value: T,
- start?: number,
- end?: number
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.fill
- */
- fill<T>(
- value: T,
- start?: number,
- end?: number
- ): LoDashExplicitObjectWrapper<List<T>>;
- }
-
- //_.findIndex
- interface LoDashStatic {
- /**
- * This method is like _.find except that it returns the index of the first element predicate returns truthy
- * for instead of the element itself.
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param array The array to search.
- * @param predicate The function invoked per iteration.
- * @param fromIndex The index to search from.
- * @return Returns the index of the found element, else -1.
- */
- findIndex<T>(
- array: List<T>,
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex<T>(
- array: List<T>,
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex<W, T>(
- array: List<T>,
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.findIndex
- */
- findIndex<TResult>(
- predicate?: ListIterator<TResult, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findIndex
- */
- findIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: string,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findIndex
- */
- findIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.findIndex
- */
- findIndex<TResult>(
- predicate?: ListIterator<TResult, boolean>,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findIndex
- */
- findIndex(
- predicate?: string,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findIndex
- */
- findIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.findLastIndex
- interface LoDashStatic {
- /**
- * This method is like _.findIndex except that it iterates over elements of collection from right to left.
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param array The array to search.
- * @param predicate The function invoked per iteration.
- * @param fromIndex The index to search from.
- * @return Returns the index of the found element, else -1.
- */
- findLastIndex<T>(
- array: List<T>,
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<T>(
- array: List<T>,
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<W, T>(
- array: List<T>,
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.findLastIndex
- */
- findLastIndex<TResult>(
- predicate?: ListIterator<TResult, boolean>,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: string,
- fromIndex?: number
- ): number;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: string,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.findLastIndex
- */
- findLastIndex<TResult>(
- predicate?: ListIterator<TResult, boolean>,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex(
- predicate?: string,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.findLastIndex
- */
- findLastIndex<W>(
- predicate?: W,
- fromIndex?: number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.first
- interface LoDashStatic {
- /**
- * @see _.head
- */
- first<T>(array: List<T>): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.head
- */
- first(): string;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.head
- */
- first(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.head
- */
- first<T>(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.head
- */
- first(): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.head
- */
- first<T>(): T;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.head
- */
- first<T>(): T;
- }
-
- interface RecursiveArray<T> extends Array<T|RecursiveArray<T>> {}
- interface ListOfRecursiveArraysOrValues<T> extends List<T|RecursiveArray<T>> {}
-
- //_.flatten
- interface LoDashStatic {
- /**
- * Flattens a nested array. If isDeep is true the array is recursively flattened, otherwise it’s only
- * flattened a single level.
- *
- * @param array The array to flatten.
- * @param isDeep Specify a deep flatten.
- * @return Returns the new flattened array.
- */
- flatten<T>(array: ListOfRecursiveArraysOrValues<T>, isDeep: boolean): T[];
-
- /**
- * @see _.flatten
- */
- flatten<T>(array: List<Many<T>>): T[];
-
- /**
- * @see _.flatten
- */
- flatten<T>(array: ListOfRecursiveArraysOrValues<T>): RecursiveArray<T>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten(): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flatten
- */
- flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.flattenDeep
- interface LoDashStatic {
- /**
- * Recursively flattens a nested array.
- *
- * @param array The array to recursively flatten.
- * @return Returns the new flattened array.
- */
- flattenDeep<T>(array: ListOfRecursiveArraysOrValues<T>): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep(): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flattenDeep
- */
- flattenDeep<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- // _.flattenDepth
- interface LoDashStatic {
- /**
- * Recursively flatten array up to depth times.
- *
- * @param array The array to recursively flatten.
- * @param number The maximum recursion depth.
- * @return Returns the new flattened array.
- */
- flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T>, depth?: number): T[];
- }
-
- //_.fromPairs
- interface LoDashStatic {
- /**
- * The inverse of `_.toPairs`; this method returns an object composed
- * from key-value `pairs`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} pairs The key-value pairs.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.fromPairs([['fred', 30], ['barney', 40]]);
- * // => { 'fred': 30, 'barney': 40 }
- */
- fromPairs<T>(
- array: List<[_.StringRepresentable, T]>
- ): Dictionary<T>;
-
- /**
- @see _.fromPairs
- */
- fromPairs(
- array: List<any[]>
- ): Dictionary<any>;
- }
-
- //_.fromPairs DUMMY
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.fromPairs
- */
- fromPairs(): LoDashImplicitObjectWrapper<any>;
- }
-
- //_.fromPairs DUMMY
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.fromPairs
- */
- fromPairs(): LoDashExplicitObjectWrapper<any>;
- }
-
- //_.head
- interface LoDashStatic {
- /**
- * Gets the first element of array.
- *
- * @alias _.first
- *
- * @param array The array to query.
- * @return Returns the first element of array.
- */
- head<T>(array: List<T>): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.head
- */
- head(): string;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.head
- */
- head(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.head
- */
- head<T>(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.head
- */
- head(): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.head
- */
- head<T>(): T;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.head
- */
- head<T>(): T;
- }
-
- //_.indexOf
- interface LoDashStatic {
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the offset
- * from the end of `array`. If `array` is sorted providing `true` for `fromIndex`
- * performs a faster binary search.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // using `fromIndex`
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- indexOf<T>(
- array: List<T>,
- value: T,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.indexOf
- */
- indexOf(
- value: T,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.indexOf
- */
- indexOf<TValue>(
- value: TValue,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.indexOf
- */
- indexOf(
- value: T,
- fromIndex?: boolean|number
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.indexOf
- */
- indexOf<TValue>(
- value: TValue,
- fromIndex?: boolean|number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.intersectionBy DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.intersection` except that it accepts `iteratee`
- * which is invoked for each element of each `arrays` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of shared values.
- * @example
- *
- * _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor);
- * // => [2.1]
- *
- * // using the `_.property` iteratee shorthand
- * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }]
- */
- intersectionBy(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.intersectionWith DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.intersectionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }]
- */
- intersectionWith(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.join
- interface LoDashStatic {
- /**
- * Converts all elements in `array` into a string separated by `separator`.
- *
- * @param array The array to convert.
- * @param separator The element separator.
- * @returns Returns the joined string.
- */
- join(
- array: List<any>,
- separator?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): string;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): string;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.join
- */
- join(separator?: string): LoDashExplicitWrapper<string>;
- }
-
- //_.pullAll DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.pull` except that it accepts an array of values to remove.
- *
- * **Note:** Unlike `_.difference`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3, 1, 2, 3];
- *
- * _.pull(array, [2, 3]);
- * console.log(array);
- * // => [1, 1]
- */
- pullAll(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.pullAllBy DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.pullAll` except that it accepts `iteratee` which is
- * invoked for each element of `array` and `values` to to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
- *
- * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
- * console.log(array);
- * // => [{ 'x': 2 }]
- */
- pullAllBy(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.reverse DUMMY
- interface LoDashStatic {
- /**
- * Reverses `array` so that the first element becomes the last, the second
- * element becomes the second to last, and so on.
- *
- * **Note:** This method mutates `array` and is based on
- * [`Array#reverse`](https://mdn.io/Array/reverse).
- *
- * @memberOf _
- * @category Array
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.reverse(array);
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- reverse(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.sortedIndexOf
- interface LoDashStatic {
- /**
- * This method is like `_.indexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedIndexOf([1, 1, 2, 2], 2);
- * // => 2
- */
- sortedIndexOf<T>(
- array: List<T>,
- value: T
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndexOf
- */
- sortedIndexOf(
- value: T
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndexOf
- */
- sortedIndexOf<TValue>(
- value: TValue
- ): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndexOf
- */
- sortedIndexOf(
- value: T
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndexOf
- */
- sortedIndexOf<TValue>(
- value: TValue
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.initial
- interface LoDashStatic {
- /**
- * Gets all but the last element of array.
- *
- * @param array The array to query.
- * @return Returns the slice of array.
- */
- initial<T>(array: List<T>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.initial
- */
- initial(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.initial
- */
- initial<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.initial
- */
- initial(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.initial
- */
- initial<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.intersection
- interface LoDashStatic {
- /**
- * Creates an array of unique values that are included in all of the provided arrays using SameValueZero for
- * equality comparisons.
- *
- * @param arrays The arrays to inspect.
- * @return Returns the new array of shared values.
- */
- intersection<T>(...arrays: Array<List<T>>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.intersection
- */
- intersection<TResult>(...arrays: Array<List<TResult>>): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.intersection
- */
- intersection<TResult>(...arrays: Array<List<TResult>>): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.intersection
- */
- intersection<TResult>(...arrays: Array<List<TResult>>): LoDashExplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.intersection
- */
- intersection<TResult>(...arrays: Array<List<TResult>>): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.last
- interface LoDashStatic {
- /**
- * Gets the last element of array.
- *
- * @param array The array to query.
- * @return Returns the last element of array.
- */
- last<T>(array: List<T>): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.last
- */
- last(): string;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.last
- */
- last(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.last
- */
- last<T>(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.last
- */
- last(): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.last
- */
- last<T>(): T;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.last
- */
- last<T>(): T;
- }
-
- //_.lastIndexOf
- interface LoDashStatic {
- /**
- * This method is like _.indexOf except that it iterates over elements of array from right to left.
- *
- * @param array The array to search.
- * @param value The value to search for.
- * @param fromIndex The index to search from or true to perform a binary search on a sorted array.
- * @return Returns the index of the matched value, else -1.
- */
- lastIndexOf<T>(
- array: List<T>,
- value: T,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.lastIndexOf
- */
- lastIndexOf(
- value: T,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.lastIndexOf
- */
- lastIndexOf<TResult>(
- value: TResult,
- fromIndex?: boolean|number
- ): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.lastIndexOf
- */
- lastIndexOf(
- value: T,
- fromIndex?: boolean|number
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.lastIndexOf
- */
- lastIndexOf<TResult>(
- value: TResult,
- fromIndex?: boolean|number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.nth
- interface LoDashStatic {
- /**
- * Gets the element at index `n` of `array`. If `n` is negative, the nth element from the end is returned.
- *
- * @param array array The array to query.
- * @param value The index of the element to return.
- * @return Returns the nth element of `array`.
- */
- nth<T>(
- array: List<T>,
- n?: number
- ): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.nth
- */
- nth(
- n?: number
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.nth
- */
- nth<TResult>(
- n?:number
- ): TResult;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.nth
- */
- nth(
- n?:number
- ): LoDashExplicitWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.nth
- */
- nth<TResult>(
- n?:number
- ): LoDashExplicitWrapper<TResult>;
- }
-
- //_.pull
- interface LoDashStatic {
- /**
- * Removes all provided values from array using SameValueZero for equality comparisons.
- *
- * Note: Unlike _.without, this method mutates array.
- *
- * @param array The array to modify.
- * @param values The values to remove.
- * @return Returns array.
- */
- pull<T>(
- array: T[],
- ...values: T[]
- ): T[];
-
- /**
- * @see _.pull
- */
- pull<T>(
- array: List<T>,
- ...values: T[]
- ): List<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.pull
- */
- pull(...values: T[]): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.pull
- */
- pull<TValue>(...values: TValue[]): LoDashImplicitObjectWrapper<List<TValue>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.pull
- */
- pull(...values: T[]): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.pull
- */
- pull<TValue>(...values: TValue[]): LoDashExplicitObjectWrapper<List<TValue>>;
- }
-
- //_.pullAt
- interface LoDashStatic {
- /**
- * Removes elements from array corresponding to the given indexes and returns an array of the removed elements.
- * Indexes may be specified as an array of indexes or as individual arguments.
- *
- * Note: Unlike _.at, this method mutates array.
- *
- * @param array The array to modify.
- * @param indexes The indexes of elements to remove, specified as individual indexes or arrays of indexes.
- * @return Returns the new array of removed elements.
- */
- pullAt<T>(
- array: List<T>,
- ...indexes: Array<Many<number>>
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.pullAt
- */
- pullAt(...indexes: Array<Many<number>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.pullAt
- */
- pullAt<T>(...indexes: Array<Many<number>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.pullAt
- */
- pullAt(...indexes: Array<Many<number>>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.pullAt
- */
- pullAt<T>(...indexes: Array<Many<number>>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.remove
- interface LoDashStatic {
- /**
- * Removes all elements from array that predicate returns truthy for and returns an array of the removed
- * elements. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * Note: Unlike _.filter, this method mutates array.
- *
- * @param array The array to modify.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the new array of removed elements.
- */
- remove<T>(
- array: List<T>,
- predicate?: ListIterator<T, boolean>
- ): T[];
-
- /**
- * @see _.remove
- */
- remove<T>(
- array: List<T>,
- predicate?: string
- ): T[];
-
- /**
- * @see _.remove
- */
- remove<W, T>(
- array: List<T>,
- predicate?: W
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.remove
- */
- remove(
- predicate?: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.remove
- */
- remove(
- predicate?: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.remove
- */
- remove<W>(
- predicate?: W
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.remove
- */
- remove<TResult>(
- predicate?: ListIterator<TResult, boolean>
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.remove
- */
- remove<TResult>(
- predicate?: string
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.remove
- */
- remove<W, TResult>(
- predicate?: W
- ): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.remove
- */
- remove(
- predicate?: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.remove
- */
- remove(
- predicate?: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.remove
- */
- remove<W>(
- predicate?: W
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.remove
- */
- remove<TResult>(
- predicate?: ListIterator<TResult, boolean>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.remove
- */
- remove<TResult>(
- predicate?: string
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.remove
- */
- remove<W, TResult>(
- predicate?: W
- ): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.tail
- interface LoDashStatic {
- /**
- * Gets all but the first element of array.
- *
- * @alias _.tail
- *
- * @param array The array to query.
- * @return Returns the slice of array.
- */
- tail<T>(array: List<T>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.tail
- */
- tail(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.tail
- */
- tail<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.tail
- */
- tail(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.tail
- */
- tail<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.slice
- interface LoDashStatic {
- /**
- * Creates a slice of array from start up to, but not including, end.
- *
- * @param array The array to slice.
- * @param start The start position.
- * @param end The end position.
- * @return Returns the slice of array.
- */
- slice<T>(
- array: T[],
- start?: number,
- end?: number
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.slice
- */
- slice(
- start?: number,
- end?: number
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.slice
- */
- slice(
- start?: number,
- end?: number
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.sortedIndex
- interface LoDashStatic {
- /**
- * Uses a binary search to determine the lowest index at which `value` should
- * be inserted into `array` in order to maintain its sort order.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
- * @example
- *
- * _.sortedIndex([30, 50], 40);
- * // => 1
- *
- * _.sortedIndex([4, 5], 4);
- * // => 0
- */
- sortedIndex<T, TSort>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<W, T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T>(
- array: List<T>,
- value: T
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<TSort>(
- value: string
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<TSort>(
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex(
- value: T
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T, TSort>(
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T>(
- value: T
- ): number;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<W, T>(
- value: T
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<TSort>(
- value: string
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<TSort>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<W>(
- value: T
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T, TSort>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<T>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndex
- */
- sortedIndex<W, T>(
- value: T
- ): LoDashExplicitWrapper<number>;
- }
-
- // _.sortedIndexBy
- interface LoDashStatic {
- /**
- * This method is like `_.sortedIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
- * @example
- *
- * var dict = { 'thirty': 30, 'forty': 40, 'fifty': 50 };
- *
- * _.sortedIndexBy(['thirty', 'fifty'], 'forty', _.propertyOf(dict));
- * // => 1
- *
- * // using the `_.property` iteratee shorthand
- * _.sortedIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
- * // => 0
- */
- sortedIndexBy<T, TSort>(
- array: List<T>,
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: (x: T) => any
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<W, T>(
- array: List<T>,
- value: T,
- iteratee: W
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: Object
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<TSort>(
- value: string,
- iteratee: (x: string) => TSort
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy(
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<W>(
- value: T,
- iteratee: W
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T, TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: (x: T) => any
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<W, T>(
- value: T,
- iteratee: W
- ): number;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: Object
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<TSort>(
- value: string,
- iteratee: (x: string) => TSort
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy(
- value: T,
- iteratee: string
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<W>(
- value: T,
- iteratee: W
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T, TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: (x: T) => any
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: string
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<W, T>(
- value: T,
- iteratee: W
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedIndexBy
- */
- sortedIndexBy<T>(
- value: T,
- iteratee: Object
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.sortedLastIndex
- interface LoDashStatic {
- /**
- * This method is like `_.sortedIndex` except that it returns the highest
- * index at which `value` should be inserted into `array` in order to
- * maintain its sort order.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
- * @example
- *
- * _.sortedLastIndex([4, 5], 4);
- * // => 1
- */
- sortedLastIndex<T, TSort>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<W, T>(
- array: List<T>,
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T>(
- array: List<T>,
- value: T
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<TSort>(
- value: string
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<TSort>(
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex(
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<W>(
- value: T
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T, TSort>(
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T>(
- value: T
- ): number;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<W, T>(
- value: T
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<TSort>(
- value: string
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<TSort>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex(
- value: T
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T, TSort>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<T>(
- value: T
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndex
- */
- sortedLastIndex<W, T>(
- value: T
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.sortedLastIndexBy
- interface LoDashStatic {
- /**
- * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
- * @example
- *
- * // using the `_.property` iteratee shorthand
- * _.sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
- * // => 1
- */
- sortedLastIndexBy<T, TSort>(
- array: List<T>,
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: (x: T) => any
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<W, T>(
- array: List<T>,
- value: T,
- iteratee: W
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- array: List<T>,
- value: T,
- iteratee: Object
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<TSort>(
- value: string,
- iteratee: (x: string) => TSort
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy(
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<W>(
- value: T,
- iteratee: W
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T, TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: (x: T) => any
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: string
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<W, T>(
- value: T,
- iteratee: W
- ): number;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: Object
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<TSort>(
- value: string,
- iteratee: (x: string) => TSort
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy(
- value: T,
- iteratee: string
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<W>(
- value: T,
- iteratee: W
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T, TSort>(
- value: T,
- iteratee: (x: T) => TSort
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: (x: T) => any
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: string
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<W, T>(
- value: T,
- iteratee: W
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sortedLastIndexBy
- */
- sortedLastIndexBy<T>(
- value: T,
- iteratee: Object
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.sortedLastIndexOf DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.lastIndexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedLastIndexOf([1, 1, 2, 2], 2);
- * // => 3
- */
- sortedLastIndexOf(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.tail
- interface LoDashStatic {
- /**
- * @see _.rest
- */
- tail<T>(array: List<T>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.rest
- */
- tail(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.rest
- */
- tail<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.rest
- */
- tail(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.rest
- */
- tail<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.take
- interface LoDashStatic {
- /**
- * Creates a slice of array with n elements taken from the beginning.
- *
- * @param array The array to query.
- * @param n The number of elements to take.
- * @return Returns the slice of array.
- */
- take<T>(
- array: List<T>,
- n?: number
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.take
- */
- take(n?: number): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.take
- */
- take<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.take
- */
- take(n?: number): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.take
- */
- take<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.takeRight
- interface LoDashStatic {
- /**
- * Creates a slice of array with n elements taken from the end.
- *
- * @param array The array to query.
- * @param n The number of elements to take.
- * @return Returns the slice of array.
- */
- takeRight<T>(
- array: List<T>,
- n?: number
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.takeRight
- */
- takeRight(n?: number): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.takeRight
- */
- takeRight<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.takeRight
- */
- takeRight(n?: number): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.takeRight
- */
- takeRight<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.takeRightWhile
- interface LoDashStatic {
- /**
- * Creates a slice of array with elements taken from the end. Elements are taken until predicate returns
- * falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param array The array to query.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the slice of array.
- */
- takeRightWhile<TValue>(
- array: List<TValue>,
- predicate?: ListIterator<TValue, boolean>
- ): TValue[];
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TValue>(
- array: List<TValue>,
- predicate?: string
- ): TValue[];
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TWhere, TValue>(
- array: List<TValue>,
- predicate?: TWhere
- ): TValue[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile(
- predicate?: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TWhere>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TValue>(
- predicate?: string
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<TValue>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile(
- predicate?: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TWhere>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TValue>(
- predicate?: string
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeRightWhile
- */
- takeRightWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<TValue>;
- }
-
- //_.takeWhile
- interface LoDashStatic {
- /**
- * Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns
- * falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param array The array to query.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the slice of array.
- */
- takeWhile<TValue>(
- array: List<TValue>,
- predicate?: ListIterator<TValue, boolean>
- ): TValue[];
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TValue>(
- array: List<TValue>,
- predicate?: string
- ): TValue[];
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TWhere, TValue>(
- array: List<TValue>,
- predicate?: TWhere
- ): TValue[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.takeWhile
- */
- takeWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile(
- predicate?: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TWhere>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.takeWhile
- */
- takeWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TValue>(
- predicate?: string
- ): LoDashImplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashImplicitArrayWrapper<TValue>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.takeWhile
- */
- takeWhile(
- predicate?: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile(
- predicate?: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TWhere>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.takeWhile
- */
- takeWhile<TValue>(
- predicate?: ListIterator<TValue, boolean>
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TValue>(
- predicate?: string
- ): LoDashExplicitArrayWrapper<TValue>;
-
- /**
- * @see _.takeWhile
- */
- takeWhile<TWhere, TValue>(
- predicate?: TWhere
- ): LoDashExplicitArrayWrapper<TValue>;
- }
-
- //_.union
- interface LoDashStatic {
- /**
- * Creates an array of unique values, in order, from all of the provided arrays using SameValueZero for
- * equality comparisons.
- *
- * @param arrays The arrays to inspect.
- * @return Returns the new array of combined values.
- */
- union<T>(...arrays: Array<List<T>>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.union
- */
- union(...arrays: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.union
- */
- union<T>(...arrays: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.union
- */
- union<T>(...arrays: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.union
- */
- union(...arrays: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.union
- */
- union<T>(...arrays: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.union
- */
- union<T>(...arrays: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.unionBy
- interface LoDashStatic {
- /**
- * This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @param arrays The arrays to inspect.
- * @param iteratee The iteratee invoked per element.
- * @return Returns the new array of combined values.
- */
- unionBy<T>(
- arrays: List<T>,
- iteratee?: (value: T) => any
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays1: List<T>,
- arrays2: List<T>,
- iteratee?: (value: T) => any
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays1: List<T>,
- arrays2: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: (value: T) => any
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: (value: T) => any
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: (value: T) => any
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays1: List<T>,
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: W
- ): T[];
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays: List<T>,
- ...iteratee: any[]
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- ...iteratee: any[]
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: (value: T) => any
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: W
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- ...iteratee: any[]
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- ...iteratee: any[]
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: (value: T) => any
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T, W extends Object>(
- arrays2: List<T>,
- arrays3: List<T>,
- arrays4: List<T>,
- arrays5: List<T>,
- iteratee?: W
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.unionBy
- */
- unionBy<T>(
- ...iteratee: any[]
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.uniq
- interface LoDashStatic {
- /**
- * Creates a duplicate-free version of an array, using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each element
- * is kept.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniq([2, 1, 2]);
- * // => [2, 1]
- */
- uniq<T>(
- array: List<T>
- ): T[];
-
- /**
- * @see _.uniq
- */
- uniq<T, TSort>(
- array: List<T>
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.uniq
- */
- uniq<TSort>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.uniq
- */
- uniq<TSort>(): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniq
- */
- uniq(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- uniq<T>(): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniq
- */
- uniq<T, TSort>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.uniq
- */
- uniq<TSort>(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.uniq
- */
- uniq<TSort>(): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniq
- */
- uniq(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.uniq
- */
- uniq<T>(): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniq
- */
- uniq<T, TSort>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.uniqBy
- interface LoDashStatic {
- /**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // using the `_.property` iteratee shorthand
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- uniqBy<T>(
- array: List<T>,
- iteratee: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T, TSort>(
- array: List<T>,
- iteratee: ListIterator<T, TSort>
- ): T[];
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- array: List<T>,
- iteratee: string
- ): T[];
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- array: List<T>,
- iteratee: Object
- ): T[];
-
- /**
- * @see _.uniqBy
- */
- uniqBy<TWhere extends {}, T>(
- array: List<T>,
- iteratee: TWhere
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy(
- iteratee: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<TWhere extends {}>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T, TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: Object
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<TWhere extends {}, T>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy(
- iteratee: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<TWhere extends {}>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T, TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<T>(
- iteratee: Object
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.uniqBy
- */
- uniqBy<TWhere extends {}, T>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.sortedUniq
- interface LoDashStatic {
- /**
- * This method is like `_.uniq` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniq([1, 1, 2]);
- * // => [1, 2]
- */
- sortedUniq<T>(
- array: List<T>
- ): T[];
-
- /**
- * @see _.sortedUniq
- */
- sortedUniq<T, TSort>(
- array: List<T>
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedUniq
- */
- sortedUniq<TSort>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedUniq
- */
- sortedUniq<TSort>(): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniq
- */
- sortedUniq(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- sortedUniq<T>(): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniq
- */
- sortedUniq<T, TSort>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedUniq
- */
- sortedUniq<TSort>(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedUniq
- */
- sortedUniq<TSort>(): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniq
- */
- sortedUniq(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedUniq
- */
- sortedUniq<T>(): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniq
- */
- sortedUniq<T, TSort>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.sortedUniqBy
- interface LoDashStatic {
- /**
- * This method is like `_.uniqBy` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
- * // => [1.1, 2.2]
- */
- sortedUniqBy<T>(
- array: List<T>,
- iteratee: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T, TSort>(
- array: List<T>,
- iteratee: ListIterator<T, TSort>
- ): T[];
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- array: List<T>,
- iteratee: string
- ): T[];
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- array: List<T>,
- iteratee: Object
- ): T[];
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TWhere extends {}, T>(
- array: List<T>,
- iteratee: TWhere
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy(
- iteratee: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TWhere extends {}>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T, TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: Object
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TWhere extends {}, T>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy(
- iteratee: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TWhere extends {}>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T, TSort>(
- iteratee: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<T>(
- iteratee: Object
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortedUniqBy
- */
- sortedUniqBy<TWhere extends {}, T>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.unionWith DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.union` except that it accepts `comparator` which
- * is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.unionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- unionWith(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.uniqWith DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.uniq` except that it accepts `comparator` which
- * is invoked to compare elements of `array`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.uniqWith(objects, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
- */
- uniqWith(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.unzip
- interface LoDashStatic {
- /**
- * This method is like _.zip except that it accepts an array of grouped elements and creates an array
- * regrouping the elements to their pre-zip configuration.
- *
- * @param array The array of grouped elements to process.
- * @return Returns the new array of regrouped elements.
- */
- unzip<T>(array: List<List<T>>): T[][];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.unzip
- */
- unzip<T>(): LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.unzip
- */
- unzip<T>(): LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.unzip
- */
- unzip<T>(): LoDashExplicitArrayWrapper<T[]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.unzip
- */
- unzip<T>(): LoDashExplicitArrayWrapper<T[]>;
- }
-
- //_.unzipWith
- interface LoDashStatic {
- /**
- * This method is like _.unzip except that it accepts an iteratee to specify how regrouped values should be
- * combined. The iteratee is bound to thisArg and invoked with four arguments: (accumulator, value, index,
- * group).
- *
- * @param array The array of grouped elements to process.
- * @param iteratee The function to combine regrouped values.
- * @param thisArg The this binding of iteratee.
- * @return Returns the new array of regrouped elements.
- */
- unzipWith<TArray, TResult>(
- array: List<List<TArray>>,
- iteratee?: MemoIterator<TArray, TResult>
- ): TResult[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.unzipWith
- */
- unzipWith<TArr, TResult>(
- iteratee?: MemoIterator<TArr, TResult>
- ): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.unzipWith
- */
- unzipWith<TArr, TResult>(
- iteratee?: MemoIterator<TArr, TResult>
- ): LoDashImplicitArrayWrapper<TResult>;
- }
-
- //_.without
- interface LoDashStatic {
- /**
- * Creates an array excluding all provided values using SameValueZero for equality comparisons.
- *
- * @param array The array to filter.
- * @param values The values to exclude.
- * @return Returns the new array of filtered values.
- */
- without<T>(
- array: List<T>,
- ...values: T[]
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.without
- */
- without(...values: T[]): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.without
- */
- without<T>(...values: T[]): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.without
- */
- without(...values: T[]): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.without
- */
- without<T>(...values: T[]): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.xor
- interface LoDashStatic {
- /**
- * Creates an array of unique values that is the symmetric difference of the provided arrays.
- *
- * @param arrays The arrays to inspect.
- * @return Returns the new array of values.
- */
- xor<T>(...arrays: Array<List<T>>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.xor
- */
- xor(...arrays: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.xor
- */
- xor<T>(...arrays: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.xor
- */
- xor(...arrays: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.xor
- */
- xor<T>(...arrays: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.xorBy DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of values.
- * @example
- *
- * _.xorBy([2.1, 1.2], [4.3, 2.4], Math.floor);
- * // => [1.2, 4.3]
- *
- * // using the `_.property` iteratee shorthand
- * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- xorBy(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.xorWith DUMMY
- interface LoDashStatic {
- /**
- * This method is like `_.xor` except that it accepts `comparator` which is
- * invoked to compare elements of `arrays`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.xorWith(objects, others, _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- xorWith(
- array: List<any>,
- ...values: any[]
- ): any[];
- }
-
- //_.zip
- interface LoDashStatic {
- /**
- * Creates an array of grouped elements, the first of which contains the first elements of the given arrays,
- * the second of which contains the second elements of the given arrays, and so on.
- *
- * @param arrays The arrays to process.
- * @return Returns the new array of grouped elements.
- */
- zip<T>(...arrays: Array<List<T>>): T[][];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.zip
- */
- zip<T>(...arrays: Array<List<T>>): _.LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.zip
- */
- zip<T>(...arrays: Array<List<T>>): _.LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.zip
- */
- zip<T>(...arrays: Array<List<T>>): _.LoDashExplicitArrayWrapper<T[]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.zip
- */
- zip<T>(...arrays: Array<List<T>>): _.LoDashExplicitArrayWrapper<T[]>;
- }
-
- //_.zipObject
- interface LoDashStatic {
- /**
- * This method is like _.fromPairs except that it accepts two arrays, one of property
- * identifiers and one of corresponding values.
- *
- * @param props The property names.
- * @param values The property values.
- * @return Returns the new object.
- */
- zipObject<TValues, TResult extends {}>(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<TValues>
- ): TResult;
- /**
- * This method is like _.zipObject except that it supports property paths.
- *
- * @param props The property names.
- * @param values The property values.
- * @return Returns the new object.
- */
- zipObjectDeep<TValues, TResult extends {}>(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<TValues>
- ): TResult;
-
- /**
- * @see _.zipObject
- */
- zipObject<TResult extends {}>(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<any>
- ): TResult;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TResult extends {}>(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<any>
- ): TResult;
-
- /**
- * @see _.zipObject
- */
- zipObject(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<any>
- ): _.Dictionary<any>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep(
- props: List<StringRepresentable>|List<List<any>>,
- values?: List<any>
- ): _.Dictionary<any>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.zipObject
- */
- zipObject<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashImplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject<TResult extends {}>(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TResult extends {}>(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.zipObject
- */
- zipObject<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashImplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject<TResult extends {}>(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TResult extends {}>(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep(
- values?: List<any>
- ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.zipObject
- */
- zipObject<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashExplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject<TResult extends {}>(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TResult extends {}>(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.zipObject
- */
- zipObject<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashExplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TValues, TResult extends {}>(
- values?: List<TValues>
- ): _.LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject<TResult extends {}>(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<TResult>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep<TResult extends {}>(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.zipObject
- */
- zipObject(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
- /**
- * @see _.zipObjectDeep
- */
- zipObjectDeep(
- values?: List<any>
- ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
- }
-
- //_.zipWith
- interface LoDashStatic {
- /**
- * This method is like _.zip except that it accepts an iteratee to specify how grouped values should be
- * combined. The iteratee is bound to thisArg and invoked with four arguments: (accumulator, value, index,
- * group).
- * @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee] The function to combine grouped values.
- * @param {*} [thisArg] The `this` binding of `iteratee`.
- * @return Returns the new array of grouped elements.
- */
- zipWith<TResult>(...args: any[]): TResult[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.zipWith
- */
- zipWith<TResult>(...args: any[]): LoDashImplicitArrayWrapper<TResult>;
- }
-
- /*********
- * Chain *
- *********/
-
- //_.chain
- interface LoDashStatic {
- /**
- * Creates a lodash object that wraps value with explicit method chaining enabled.
- *
- * @param value The value to wrap.
- * @return Returns the new lodash wrapper instance.
- */
- chain(value: number): LoDashExplicitWrapper<number>;
- chain(value: string): LoDashExplicitWrapper<string>;
- chain(value: boolean): LoDashExplicitWrapper<boolean>;
- chain<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
- chain<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
- chain<T extends {}>(value: T): LoDashExplicitObjectWrapper<T>;
- chain(value: any): LoDashExplicitWrapper<any>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.chain
- */
- chain(): LoDashExplicitWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.chain
- */
- chain(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.chain
- */
- chain(): LoDashExplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.chain
- */
- chain(): TWrapper;
- }
-
- //_.tap
- interface LoDashStatic {
- /**
- * This method invokes interceptor and returns value. The interceptor is bound to thisArg and invoked with one
- * argument; (value). The purpose of this method is to "tap into" a method chain in order to perform operations
- * on intermediate results within the chain.
- *
- * @param value The value to provide to interceptor.
- * @param interceptor The function to invoke.
- * @parem thisArg The this binding of interceptor.
- * @return Returns value.
- **/
- tap<T>(
- value: T,
- interceptor: (value: T) => void
- ): T;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.tap
- */
- tap(
- interceptor: (value: T) => void
- ): TWrapper;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.tap
- */
- tap(
- interceptor: (value: T) => void
- ): TWrapper;
- }
-
- //_.thru
- interface LoDashStatic {
- /**
- * This method is like _.tap except that it returns the result of interceptor.
- *
- * @param value The value to provide to interceptor.
- * @param interceptor The function to invoke.
- * @param thisArg The this binding of interceptor.
- * @return Returns the result of interceptor.
- */
- thru<T, TResult>(
- value: T,
- interceptor: (value: T) => TResult
- ): TResult;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.thru
- */
- thru<TResult extends number>(
- interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends string>(
- interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends boolean>(
- interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends {}>(
- interceptor: (value: T) => TResult): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult>(
- interceptor: (value: T) => TResult[]): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.thru
- */
- thru<TResult extends number>(
- interceptor: (value: T) => TResult
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends string>(
- interceptor: (value: T) => TResult
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends boolean>(
- interceptor: (value: T) => TResult
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult extends {}>(
- interceptor: (value: T) => TResult
- ): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.thru
- */
- thru<TResult>(
- interceptor: (value: T) => TResult[]
- ): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.prototype.commit
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * Executes the chained sequence and returns the wrapped result.
- *
- * @return Returns the new lodash wrapper instance.
- */
- commit(): TWrapper;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.commit
- */
- commit(): TWrapper;
- }
-
- //_.prototype.concat
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * Creates a new array joining a wrapped array with any additional arrays and/or values.
- *
- * @param items
- * @return Returns the new concatenated array.
- */
- concat<TItem>(...items: Array<Many<TItem>>): LoDashImplicitArrayWrapper<TItem>;
-
- /**
- * @see _.concat
- */
- concat(...items: Array<Many<T>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.concat
- */
- concat<TItem>(...items: Array<Many<TItem>>): LoDashExplicitArrayWrapper<TItem>;
-
- /**
- * @see _.concat
- */
- concat(...items: Array<Many<T>>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.prototype.plant
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * Creates a clone of the chained sequence planting value as the wrapped value.
- * @param value The value to plant as the wrapped value.
- * @return Returns the new lodash wrapper instance.
- */
- plant(value: number): LoDashImplicitWrapper<number>;
-
- /**
- * @see _.plant
- */
- plant(value: string): LoDashImplicitStringWrapper;
-
- /**
- * @see _.plant
- */
- plant(value: boolean): LoDashImplicitWrapper<boolean>;
-
- /**
- * @see _.plant
- */
- plant(value: number[]): LoDashImplicitNumberArrayWrapper;
-
- /**
- * @see _.plant
- */
- plant<T>(value: T[]): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant<T>(value: ReadonlyArray<T>): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant<T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant(value: any): LoDashImplicitWrapper<any>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.plant
- */
- plant(value: number): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.plant
- */
- plant(value: string): LoDashExplicitStringWrapper;
-
- /**
- * @see _.plant
- */
- plant(value: boolean): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.plant
- */
- plant(value: number[]): LoDashExplicitNumberArrayWrapper;
-
- /**
- * @see _.plant
- */
- plant<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant<T extends {}>(value: T): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.plant
- */
- plant(value: any): LoDashExplicitWrapper<any>;
- }
-
- //_.prototype.reverse
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * Reverses the wrapped array so the first element becomes the last, the second element becomes the second to
- * last, and so on.
- *
- * Note: This method mutates the wrapped array.
- *
- * @return Returns the new reversed lodash wrapper instance.
- */
- reverse(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.reverse
- */
- reverse(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.prototype.toJSON
- interface LoDashWrapperBase<T, TWrapper> {
- /**
- * @see _.value
- */
- toJSON(): T;
- }
-
- //_.prototype.toString
- interface LoDashWrapperBase<T, TWrapper> {
- /**
- * Produces the result of coercing the unwrapped value to a string.
- *
- * @return Returns the coerced string value.
- */
- toString(): string;
- }
-
- //_.prototype.value
- interface LoDashWrapperBase<T, TWrapper> {
- /**
- * Executes the chained sequence to extract the unwrapped value.
- *
- * @alias _.toJSON, _.valueOf
- *
- * @return Returns the resolved unwrapped value.
- */
- value(): T;
- }
-
- //_.valueOf
- interface LoDashWrapperBase<T, TWrapper> {
- /**
- * @see _.value
- */
- valueOf(): T;
- }
-
- /**************
- * Collection *
- **************/
-
- //_.at
- interface LoDashStatic {
- /**
- * Creates an array of elements corresponding to the given keys, or indexes, of collection. Keys may be
- * specified as individual arguments or as arrays of keys.
- *
- * @param collection The collection to iterate over.
- * @param props The property names or indexes of elements to pick, specified individually or in arrays.
- * @return Returns the new array of picked elements.
- */
- at<T>(
- collection: List<T>|Dictionary<T>,
- ...props: Array<Many<number|string>>
- ): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.at
- */
- at(...props: Array<Many<number|string>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.at
- */
- at<T>(...props: Array<Many<number|string>>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.at
- */
- at(...props: Array<Many<number|string>>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.at
- */
- at<T>(...props: Array<Many<number|string>>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.countBy
- interface LoDashStatic {
- /**
- * Creates an object composed of keys generated from the results of running each element of collection through
- * iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The
- * iteratee is bound to thisArg and invoked with three arguments:
- * (value, index|key, collection).
- *
- * If a property name is provided for iteratee the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for iteratee the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns the composed aggregate object.
- */
- countBy<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): Dictionary<number>;
-
- /**
- * @see _.countBy
- */
- countBy<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<number>;
-
- /**
- * @see _.countBy
- */
- countBy<T>(
- collection: NumericDictionary<T>,
- iteratee?: NumericDictionaryIterator<T, any>
- ): Dictionary<number>;
-
- /**
- * @see _.countBy
- */
- countBy<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- iteratee?: string
- ): Dictionary<number>;
-
- /**
- * @see _.countBy
- */
- countBy<W, T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- iteratee?: W
- ): Dictionary<number>;
-
- /**
- * @see _.countBy
- */
- countBy<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- iteratee?: Object
- ): Dictionary<number>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: ListIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: ListIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy<W>(
- iteratee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>|NumericDictionaryIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy<W>(
- iteratee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<number>>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: ListIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: ListIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy<W>(
- iteratee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.countBy
- */
- countBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>|NumericDictionaryIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
-
- /**
- * @see _.countBy
- */
- countBy<W>(
- iteratee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<number>>;
- }
-
- //_.each
- interface LoDashStatic {
- /**
- * @see _.forEach
- */
- each<T>(
- collection: T[],
- iteratee?: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.forEach
- */
- each<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): List<T>;
-
- /**
- * @see _.forEach
- */
- each<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forEach
- */
- each<T extends {}>(
- collection: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
-
- /**
- * @see _.forEach
- */
- each<T extends {}, TValue>(
- collection: T,
- iteratee?: ObjectIterator<TValue, any>
- ): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.forEach
- */
- each(
- iteratee: ListIterator<string, any>
- ): LoDashImplicitWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.forEach
- */
- each(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forEach
- */
- each<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.forEach
- */
- each(
- iteratee: ListIterator<string, any>
- ): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.forEach
- */
- each(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forEach
- */
- each<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.eachRight
- interface LoDashStatic {
- /**
- * @see _.forEachRight
- */
- eachRight<T>(
- collection: T[],
- iteratee?: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.forEachRight
- */
- eachRight<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): List<T>;
-
- /**
- * @see _.forEachRight
- */
- eachRight<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forEachRight
- */
- eachRight<T extends {}>(
- collection: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
-
- /**
- * @see _.forEachRight
- */
- eachRight<T extends {}, TValue>(
- collection: T,
- iteratee?: ObjectIterator<TValue, any>
- ): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight(
- iteratee: ListIterator<string, any>
- ): LoDashImplicitWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight(
- iteratee: ListIterator<string, any>
- ): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forEachRight
- */
- eachRight<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.every
- interface LoDashStatic {
- /**
- * Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate
- * returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).
- *
- * @param collection The collection to iterate over.
- * @param predicate The function invoked per iteration.
- * @return Returns true if all elements pass the predicate check, else false.
- */
- every<T>(
- collection: List<T>,
- predicate?: ListIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.every
- */
- every<T>(
- collection: Dictionary<T>,
- predicate?: DictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.every
- */
- every<T>(
- collection: NumericDictionary<T>,
- predicate?: NumericDictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.every
- */
- every<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- predicate?: string|any[]
- ): boolean;
-
- /**
- * @see _.every
- */
- every<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- predicate?: PartialObject<T>
- ): boolean;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.every
- */
- every(
- predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.every
- */
- every(
- predicate?: string|any[]
- ): boolean;
-
- /**
- * @see _.every
- */
- every(
- predicate?: PartialObject<T>
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.every
- */
- every<TResult>(
- predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.every
- */
- every(
- predicate?: string|any[]
- ): boolean;
-
- /**
- * @see _.every
- */
- every<TResult>(
- predicate?: PartialObject<TResult>
- ): boolean;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.every
- */
- every(
- predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.every
- */
- every(
- predicate?: string|any[]
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.every
- */
- every(
- predicate?: PartialObject<T>
- ): LoDashExplicitWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.every
- */
- every<TResult>(
- predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.every
- */
- every(
- predicate?: string|any[]
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.every
- */
- every<TResult>(
- predicate?: PartialObject<TResult>
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.filter
- interface LoDashStatic {
- /**
- * Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The
- * predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param collection The collection to iterate over.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the new filtered array.
- */
- filter<T>(
- collection: List<T>,
- predicate?: ListIterator<T, boolean>
- ): T[];
-
- /**
- * @see _.filter
- */
- filter<T>(
- collection: Dictionary<T>,
- predicate?: DictionaryIterator<T, boolean>
- ): T[];
-
- /**
- * @see _.filter
- */
- filter(
- collection: string,
- predicate?: StringIterator<boolean>
- ): string[];
-
- /**
- * @see _.filter
- */
- filter<T>(
- collection: List<T>|Dictionary<T>,
- predicate: string|RegExp
- ): T[];
-
- /**
- * @see _.filter
- */
- filter<T>(
- collection: List<T>|Dictionary<T>,
- predicate: PartialObject<T>
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.filter
- */
- filter(
- predicate?: StringIterator<boolean>
- ): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.filter
- */
- filter(
- predicate: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter(
- predicate: string|RegExp
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter(predicate: PartialObject<T>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.filter
- */
- filter<T>(
- predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter<T>(
- predicate: string|RegExp
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter<T>(predicate: PartialObject<T>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.filter
- */
- filter(
- predicate?: StringIterator<boolean>
- ): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.filter
- */
- filter(
- predicate: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter(
- predicate: string|RegExp
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter(predicate: PartialObject<T>): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.filter
- */
- filter<T>(
- predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter<T>(
- predicate: string|RegExp
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.filter
- */
- filter<T>(predicate: PartialObject<T>): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.find
- interface LoDashStatic {
- /**
- * Iterates over elements of collection, returning the first element predicate returns truthy for.
- * The predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param collection The collection to search.
- * @param predicate The function invoked per iteration.
- * @param fromIndex The index to search from.
- * @return Returns the matched element, else undefined.
- */
- find<T>(
- collection: List<T>,
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- */
- find<T>(
- collection: Dictionary<T>,
- predicate?: DictionaryIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- */
- find<T>(
- collection: List<T>|Dictionary<T>,
- predicate?: string,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- */
- find<T>(
- collection: List<T>|Dictionary<T>,
- predicate?: PartialObject<T>,
- fromIndex?: number
- ): T|undefined;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.find
- */
- find(
- predicate?: ListIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- */
- find(
- predicate?: string,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- */
- find(
- predicate?: PartialObject<T>,
- fromIndex?: number
- ): T|undefined;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.find
- */
- find<TResult>(
- predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>,
- fromIndex?: number
- ): TResult|undefined;
-
- /**
- * @see _.find
- */
- find<TResult>(
- predicate?: string,
- fromIndex?: number
- ): TResult|undefined;
-
- /**
- * @see _.find
- */
- find<TResult>(
- predicate?: PartialObject<TResult>,
- fromIndex?: number
- ): TResult|undefined;
- }
-
- //_.findLast
- interface LoDashStatic {
- /**
- * This method is like _.find except that it iterates over elements of a collection from
- * right to left.
- * @param collection Searches for a value in this list.
- * @param callback The function called per iteration.
- * @param fromIndex The index to search from.
- * @return The found element, else undefined.
- **/
- findLast<T>(
- collection: T[],
- callback: ListIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- **/
- findLast<T>(
- collection: List<T>,
- callback: ListIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- **/
- findLast<T>(
- collection: Dictionary<T>,
- callback: DictionaryIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.pluck style callback
- **/
- findLast<W, T>(
- collection: T[],
- whereValue: W,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.pluck style callback
- **/
- findLast<W, T>(
- collection: List<T>,
- whereValue: W,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.pluck style callback
- **/
- findLast<W, T>(
- collection: Dictionary<T>,
- whereValue: W,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.where style callback
- **/
- findLast<T>(
- collection: T[],
- pluckValue: string,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.where style callback
- **/
- findLast<T>(
- collection: List<T>,
- pluckValue: string,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.find
- * @param _.where style callback
- **/
- findLast<T>(
- collection: Dictionary<T>,
- pluckValue: string,
- fromIndex?: number
- ): T|undefined;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.findLast
- */
- findLast(
- callback: ListIterator<T, boolean>,
- fromIndex?: number
- ): T|undefined;
- /**
- * @see _.findLast
- * @param _.where style callback
- */
- findLast<W>(
- whereValue: W,
- fromIndex?: number
- ): T|undefined;
-
- /**
- * @see _.findLast
- * @param _.where style callback
- */
- findLast(
- pluckValue: string,
- fromIndex?: number
- ): T|undefined;
- }
-
- //_.flatMap
- interface LoDashStatic {
- /**
- * Creates an array of flattened values by running each element in collection through iteratee
- * and concating its result to the other mapped values. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @return Returns the new flattened array.
- */
- flatMap<T, TResult>(
- collection: List<T>,
- iteratee?: ListIterator<T, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: List<any>,
- iteratee?: ListIterator<any, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<T, TResult>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: Dictionary<any>,
- iteratee?: DictionaryIterator<any, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<T, TResult>(
- collection: NumericDictionary<T>,
- iteratee?: NumericDictionaryIterator<T, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: NumericDictionary<any>,
- iteratee?: NumericDictionaryIterator<any, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TObject extends Object, TResult>(
- collection: TObject,
- iteratee?: ObjectIterator<any, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: Object,
- iteratee?: ObjectIterator<any, Many<TResult>>
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TWhere extends Object, TObject extends Object>(
- collection: TObject,
- iteratee: TWhere
- ): boolean[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TObject extends Object, TResult>(
- collection: TObject,
- iteratee: Object|string
- ): TResult[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TObject extends Object>(
- collection: TObject,
- iteratee: [string, any]
- ): boolean[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: string
- ): string[];
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- collection: Object,
- iteratee?: Object|string
- ): TResult[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ListIterator<string, Many<TResult>>
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ListIterator<T, Many<TResult>>|string
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TWhere extends Object>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap(
- iteratee: [string, any]
- ): LoDashImplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<T, TResult>(
- iteratee: ListIterator<T, Many<TResult>>|DictionaryIterator<T, Many<TResult>>|NumericDictionaryIterator<T, Many<TResult>>
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ObjectIterator<any, Many<TResult>>|string
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TWhere extends Object>(
- iteratee: TWhere
- ): LoDashImplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap(
- iteratee: [string, any]
- ): LoDashImplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ListIterator<string, Many<TResult>>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap(): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ListIterator<T, Many<TResult>>|string
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TWhere extends Object>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap(
- iteratee: [string, any]
- ): LoDashExplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(): LoDashExplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flatMap
- */
- flatMap<T, TResult>(
- iteratee: ListIterator<T, Many<TResult>>|DictionaryIterator<T, Many<TResult>>|NumericDictionaryIterator<T, Many<TResult>>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(
- iteratee: ObjectIterator<any, Many<TResult>>|string
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TWhere extends Object>(
- iteratee: TWhere
- ): LoDashExplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap(
- iteratee: [string, any]
- ): LoDashExplicitArrayWrapper<boolean>;
-
- /**
- * @see _.flatMap
- */
- flatMap<TResult>(): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.forEach
- interface LoDashStatic {
- /**
- * Iterates over elements of collection invoking iteratee for each element. The iteratee is bound to thisArg
- * and invoked with three arguments:
- * (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.
- *
- * Note: As with other "Collections" methods, objects with a "length" property are iterated like arrays. To
- * avoid this behavior _.forIn or _.forOwn may be used for object iteration.
- *
- * @alias _.each
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- */
- forEach<T>(
- collection: T[],
- iteratee?: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.forEach
- */
- forEach<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): List<T>;
-
- /**
- * @see _.forEach
- */
- forEach<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forEach
- */
- forEach<T extends {}>(
- collection: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
-
- /**
- * @see _.forEach
- */
- forEach<T extends {}, TValue>(
- collection: T,
- iteratee?: ObjectIterator<TValue, any>
- ): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach(
- iteratee: ListIterator<string, any>
- ): LoDashImplicitWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach(
- iteratee: ListIterator<string, any>
- ): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forEach
- */
- forEach<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.forEachRight
- interface LoDashStatic {
- /**
- * This method is like _.forEach except that it iterates over elements of collection from right to left.
- *
- * @alias _.eachRight
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function called per iteration.
- * @param thisArg The this binding of callback.
- */
- forEachRight<T>(
- collection: T[],
- iteratee?: ListIterator<T, any>
- ): T[];
-
- /**
- * @see _.forEachRight
- */
- forEachRight<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): List<T>;
-
- /**
- * @see _.forEachRight
- */
- forEachRight<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forEachRight
- */
- forEachRight<T extends {}>(
- collection: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
-
- /**
- * @see _.forEachRight
- */
- forEachRight<T extends {}, TValue>(
- collection: T,
- iteratee?: ObjectIterator<TValue, any>
- ): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight(
- iteratee: ListIterator<string, any>
- ): LoDashImplicitWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight(
- iteratee: ListIterator<T, any>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight(
- iteratee: ListIterator<string, any>
- ): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight(
- iteratee: ListIterator<T, any>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forEachRight
- */
- forEachRight<TValue>(
- iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
- ): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.groupBy
- interface LoDashStatic {
- /**
- * Creates an object composed of keys generated from the results of running each element of collection through
- * iteratee. The corresponding value of each key is an array of the elements responsible for generating the
- * key. The iteratee is bound to thisArg and invoked with three arguments:
- * (value, index|key, collection).
- *
- * If a property name is provided for iteratee the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for iteratee the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns the composed aggregate object.
- */
- groupBy<T, TKey>(
- collection: List<T>,
- iteratee?: ListIterator<T, TKey>
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- collection: List<any>,
- iteratee?: ListIterator<T, any>
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T, TKey>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, TKey>
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- collection: Dictionary<any>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T, TValue>(
- collection: List<T>|Dictionary<T>,
- iteratee?: string
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- collection: List<T>|Dictionary<T>,
- iteratee?: string
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TWhere, T>(
- collection: List<T>|Dictionary<T>,
- iteratee?: TWhere
- ): Dictionary<T[]>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- collection: List<T>|Dictionary<T>,
- iteratee?: Object
- ): Dictionary<T[]>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TValue>(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TWhere>(
- iteratee?: TWhere
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<T, TKey>(
- iteratee?: ListIterator<T, TKey>|DictionaryIterator<T, TKey>
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T, TValue>(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TWhere, T>(
- iteratee?: TWhere
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: Object
- ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TValue>(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TWhere>(
- iteratee?: TWhere
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.groupBy
- */
- groupBy<T, TKey>(
- iteratee?: ListIterator<T, TKey>|DictionaryIterator<T, TKey>
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T, TValue>(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<TWhere, T>(
- iteratee?: TWhere
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
-
- /**
- * @see _.groupBy
- */
- groupBy<T>(
- iteratee?: Object
- ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
- }
-
- //_.includes
- interface LoDashStatic {
- /**
- * Checks if target is in collection using SameValueZero for equality comparisons. If fromIndex is negative,
- * it’s used as the offset from the end of collection.
- *
- * @param collection The collection to search.
- * @param target The value to search for.
- * @param fromIndex The index to search from.
- * @return True if the target element is found, else false.
- */
- includes<T>(
- collection: List<T>|Dictionary<T>,
- target: T,
- fromIndex?: number
- ): boolean;
-
- /**
- * @see _.includes
- */
- includes(
- collection: string,
- target: string,
- fromIndex?: number
- ): boolean;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.includes
- */
- includes(
- target: T,
- fromIndex?: number
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.includes
- */
- includes<TValue>(
- target: TValue,
- fromIndex?: number
- ): boolean;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.includes
- */
- includes(
- target: string,
- fromIndex?: number
- ): boolean;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.includes
- */
- includes(
- target: T,
- fromIndex?: number
- ): LoDashExplicitWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.includes
- */
- includes<TValue>(
- target: TValue,
- fromIndex?: number
- ): LoDashExplicitWrapper<boolean>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.includes
- */
- includes(
- target: string,
- fromIndex?: number
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.keyBy
- interface LoDashStatic {
- /**
- * Creates an object composed of keys generated from the results of running each element of collection through
- * iteratee. The corresponding value of each key is the last element responsible for generating the key. The
- * iteratee function is bound to thisArg and invoked with three arguments:
- * (value, index|key, collection).
- *
- * If a property name is provided for iteratee the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for iteratee the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns the composed aggregate object.
- */
- keyBy<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- collection: NumericDictionary<T>,
- iteratee?: NumericDictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- collection: List<T>|NumericDictionary<T>|Dictionary<T>,
- iteratee?: string
- ): Dictionary<T>;
-
- /**
- * @see _.keyBy
- */
- keyBy<W extends Object, T>(
- collection: List<T>|NumericDictionary<T>|Dictionary<T>,
- iteratee?: W
- ): Dictionary<T>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- collection: List<T>|NumericDictionary<T>|Dictionary<T>,
- iteratee?: Object
- ): Dictionary<T>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: ListIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: ListIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<W extends Object>(
- iteratee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: ListIterator<T, any>|NumericDictionaryIterator<T, any>|DictionaryIterator<T, any>
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<W extends Object, T>(
- iteratee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: Object
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: ListIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: ListIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<W extends Object>(
- iteratee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: ListIterator<T, any>|NumericDictionaryIterator<T, any>|DictionaryIterator<T, any>
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<W extends Object, T>(
- iteratee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.keyBy
- */
- keyBy<T>(
- iteratee?: Object
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
- }
-
- //_.invoke
- interface LoDashStatic {
- /**
- * Invokes the method at path of object.
- * @param object The object to query.
- * @param path The path of the method to invoke.
- * @param args The arguments to invoke the method with.
- **/
- invoke<TObject extends Object, TResult>(
- object: TObject,
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
-
- /**
- * @see _.invoke
- **/
- invoke<TValue, TResult>(
- object: Dictionary<TValue>|TValue[],
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
-
- /**
- * @see _.invoke
- **/
- invoke<TResult>(
- object: any,
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.invoke
- **/
- invoke<TResult>(
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.invoke
- **/
- invoke<TResult>(
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.invoke
- **/
- invoke<TResult>(
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.invoke
- **/
- invoke<TResult>(
- path: Many<StringRepresentable>,
- ...args: any[]): TResult;
- }
-
- //_.invokeMap
- interface LoDashStatic {
- /**
- * Invokes the method named by methodName on each element in the collection returning
- * an array of the results of each invoked method. Additional arguments will be provided
- * to each invoked method. If methodName is a function it will be invoked for, and this
- * bound to, each element in the collection.
- * @param collection The collection to iterate over.
- * @param methodName The name of the method to invoke.
- * @param args Arguments to invoke the method with.
- **/
- invokeMap<TValue extends {}, TResult>(
- collection: TValue[],
- methodName: string,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TValue extends {}, TResult>(
- collection: Dictionary<TValue>,
- methodName: string,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- collection: Array<{}>,
- methodName: string,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- collection: Dictionary<{}>,
- methodName: string,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TValue extends {}, TResult>(
- collection: TValue[],
- method: (...args: any[]) => TResult,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TValue extends {}, TResult>(
- collection: Dictionary<TValue>,
- method: (...args: any[]) => TResult,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- collection: Array<{}>,
- method: (...args: any[]) => TResult,
- ...args: any[]): TResult[];
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- collection: Dictionary<{}>,
- method: (...args: any[]) => TResult,
- ...args: any[]): TResult[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- methodName: string,
- ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- method: (...args: any[]) => TResult,
- ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- methodName: string,
- ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- method: (...args: any[]) => TResult,
- ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- methodName: string,
- ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- method: (...args: any[]) => TResult,
- ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- methodName: string,
- ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.invokeMap
- **/
- invokeMap<TResult>(
- method: (...args: any[]) => TResult,
- ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.map
- interface LoDashStatic {
- /**
- * Creates an array of values by running each element in collection through iteratee. The iteratee is bound to
- * thisArg and invoked with three arguments: (value, index|key, collection).
- *
- * If a property name is provided for iteratee the created _.property style callback returns the property value
- * of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for iteratee the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues,
- * _.reject, and _.some.
- *
- * The guarded methods are:
- * ary, callback, chunk, clone, create, curry, curryRight, drop, dropRight, every, fill, flatten, invert, max,
- * min, parseInt, slice, sortBy, take, takeRight, template, trim, trimLeft, trimRight, trunc, random, range,
- * sample, some, sum, uniq, and words
- *
- * @param collection The collection to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns the new mapped array.
- */
- map<T, TResult>(
- collection: List<T>,
- iteratee: ListIterator<T, TResult>
- ): TResult[];
-
- /**
- * @see _.map
- */
- map<T>(collection: List<T>): T[];
-
- /**
- * @see _.map
- */
- map<T extends {}, TResult>(
- collection: Dictionary<T>,
- iteratee: DictionaryIterator<T, TResult>
- ): TResult[];
-
- /** @see _.map */
- map<T, K extends keyof T>(
- collection: Dictionary<T>,
- iteratee: K
- ): T[K][];
-
- /** @see _.map */
- map<T>(collection: Dictionary<T>): T[];
-
- map<T extends {}, TResult>(
- collection: NumericDictionary<T>,
- iteratee?: NumericDictionaryIterator<T, TResult>
- ): TResult[];
-
- /** @see _.map */
- map<T, K extends keyof T>(collection: List<T>, iteratee: K): T[K][];
-
- /**
- * @see _.map
- */
- map<T, TResult>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- iteratee?: string
- ): TResult[];
-
- /**
- * @see _.map
- */
- map<T, TObject extends {}>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- iteratee?: TObject
- ): boolean[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.map
- */
- map<TResult>(
- iteratee: ListIterator<T, TResult>
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.map
- */
- map(): LoDashImplicitArrayWrapper<T>;
-
- /** @see _.map */
- map<K extends keyof T>(iteratee: K): LoDashImplicitArrayWrapper<T[K]>;
-
- /**
- * @see _.map
- */
- map<TResult>(
- iteratee: string
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.map
- */
- map<TObject extends {}>(
- iteratee: TObject
- ): LoDashImplicitArrayWrapper<boolean>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.map
- */
- map<TValue, TResult>(
- iteratee: ListIterator<TValue, TResult>|DictionaryIterator<TValue, TResult>
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /** @see _.map */
- map(): LoDashImplicitArrayWrapper<T[keyof T]>;
-
- /** @see _.map */
- map<K extends keyof T>(iteratee: K): LoDashImplicitArrayWrapper<T[K]>;
-
- /**
- * @see _.map
- */
- map<TValue, TResult>(
- iteratee: string
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.map
- */
- map<TObject extends {}>(
- iteratee: TObject
- ): LoDashImplicitArrayWrapper<boolean>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.map
- */
- map<TResult>(
- iteratee: ListIterator<T, TResult>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /** @see _.map */
- map(): LoDashExplicitArrayWrapper<T>;
-
- /** @see _.map */
- map<K extends keyof T>(iteratee: K): LoDashExplicitArrayWrapper<T[K]>;
-
- /**
- * @see _.map
- */
- map<TResult>(
- iteratee: string
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.map
- */
- map<TObject extends {}>(
- iteratee: TObject
- ): LoDashExplicitArrayWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.map
- */
- map<TValue, TResult>(
- iteratee: ListIterator<TValue, TResult>|DictionaryIterator<TValue, TResult>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /** @see _.map */
- map(): LoDashExplicitArrayWrapper<T[keyof T]>;
-
- /**
- * @see _.map
- */
- map<TValue, TResult>(
- iteratee: string
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.map
- */
- map<TObject extends {}>(
- iteratee: TObject
- ): LoDashExplicitArrayWrapper<boolean>;
- }
-
- //_.partition
- interface LoDashStatic {
- /**
- * Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for,
- * while the second of which contains elements predicate returns falsey for.
- * The predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
- *
- * If a property name is provided for predicate the created _.property style callback
- * returns the property value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback
- * returns true for elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns
- * true for elements that have the properties of the given object, else false.
- *
- * @param collection The collection to iterate over.
- * @param callback The function called per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the array of grouped elements.
- **/
- partition<T>(
- collection: List<T>,
- callback: ListIterator<T, boolean>): T[][];
-
- /**
- * @see _.partition
- **/
- partition<T>(
- collection: Dictionary<T>,
- callback: DictionaryIterator<T, boolean>): T[][];
-
- /**
- * @see _.partition
- **/
- partition<W, T>(
- collection: List<T>,
- whereValue: W): T[][];
-
- /**
- * @see _.partition
- **/
- partition<W, T>(
- collection: Dictionary<T>,
- whereValue: W): T[][];
-
- /**
- * @see _.partition
- **/
- partition<T>(
- collection: List<T>,
- path: string,
- srcValue: any): T[][];
-
- /**
- * @see _.partition
- **/
- partition<T>(
- collection: Dictionary<T>,
- path: string,
- srcValue: any): T[][];
-
- /**
- * @see _.partition
- **/
- partition<T>(
- collection: List<T>,
- pluckValue: string): T[][];
-
- /**
- * @see _.partition
- **/
- partition<T>(
- collection: Dictionary<T>,
- pluckValue: string): T[][];
- }
-
- interface LoDashImplicitStringWrapper {
- /**
- * @see _.partition
- */
- partition(
- callback: ListIterator<string, boolean>): LoDashImplicitArrayWrapper<string[]>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.partition
- */
- partition(
- callback: ListIterator<T, boolean>): LoDashImplicitArrayWrapper<T[]>;
- /**
- * @see _.partition
- */
- partition<W>(
- whereValue: W): LoDashImplicitArrayWrapper<T[]>;
- /**
- * @see _.partition
- */
- partition(
- path: string,
- srcValue: any): LoDashImplicitArrayWrapper<T[]>;
- /**
- * @see _.partition
- */
- partition(
- pluckValue: string): LoDashImplicitArrayWrapper<T[]>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.partition
- */
- partition<TResult>(
- callback: ListIterator<TResult, boolean>): LoDashImplicitArrayWrapper<TResult[]>;
-
- /**
- * @see _.partition
- */
- partition<TResult>(
- callback: DictionaryIterator<TResult, boolean>): LoDashImplicitArrayWrapper<TResult[]>;
-
- /**
- * @see _.partition
- */
- partition<W, TResult>(
- whereValue: W): LoDashImplicitArrayWrapper<TResult[]>;
-
- /**
- * @see _.partition
- */
- partition<TResult>(
- path: string,
- srcValue: any): LoDashImplicitArrayWrapper<TResult[]>;
-
- /**
- * @see _.partition
- */
- partition<TResult>(
- pluckValue: string): LoDashImplicitArrayWrapper<TResult[]>;
- }
-
- //_.reduce
- interface LoDashStatic {
- /**
- * Reduces a collection to a value which is the accumulated result of running each
- * element in the collection through the callback, where each successive callback execution
- * consumes the return value of the previous execution. If accumulator is not provided the
- * first element of the collection will be used as the initial accumulator value. The callback
- * is bound to thisArg and invoked with four arguments; (accumulator, value, index|key, collection).
- * @param collection The collection to iterate over.
- * @param callback The function called per iteration.
- * @param accumulator Initial value of the accumulator.
- * @param thisArg The this binding of callback.
- * @return Returns the accumulated value.
- **/
- reduce<T, TResult>(
- collection: T[],
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: List<T>,
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: Dictionary<T>,
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: NumericDictionary<T>,
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: T[],
- callback: MemoIterator<T, TResult>): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: List<T>,
- callback: MemoIterator<T, TResult>): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: Dictionary<T>,
- callback: MemoIterator<T, TResult>): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<T, TResult>(
- collection: NumericDictionary<T>,
- callback: MemoIterator<T, TResult>): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.reduce
- **/
- reduce<TResult>(
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<TResult>(
- callback: MemoIterator<T, TResult>): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.reduce
- **/
- reduce<TValue, TResult>(
- callback: MemoIterator<TValue, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduce
- **/
- reduce<TValue, TResult>(
- callback: MemoIterator<TValue, TResult>): TResult;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.reduce
- **/
- reduce<TValue, TResult>(
- callback: MemoIterator<TValue, TResult>,
- accumulator: TResult): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.reduce
- **/
- reduce<TValue, TResult>(
- callback: MemoIterator<TValue, TResult>): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**LoDashExplicitWrapper
- * @see _.reduce
- */
- reduce<TResult>(
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.reduce
- */
- reduce<TResult>(
- callback: MemoIterator<T, TResult>): LoDashExplicitWrapper<TResult>;
- }
-
- //_.reduceRight
- interface LoDashStatic {
- /**
- * This method is like _.reduce except that it iterates over elements of a collection from
- * right to left.
- * @param collection The collection to iterate over.
- * @param callback The function called per iteration.
- * @param accumulator Initial value of the accumulator.
- * @param thisArg The this binding of callback.
- * @return The accumulated value.
- **/
- reduceRight<T, TResult>(
- collection: T[],
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduceRight
- **/
- reduceRight<T, TResult>(
- collection: List<T>,
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduceRight
- **/
- reduceRight<T, TResult>(
- collection: Dictionary<T>,
- callback: MemoIterator<T, TResult>,
- accumulator: TResult): TResult;
-
- /**
- * @see _.reduceRight
- **/
- reduceRight<T, TResult>(
- collection: T[],
- callback: MemoIterator<T, TResult>): TResult;
-
- /**
- * @see _.reduceRight
- **/
- reduceRight<T, TResult>(
- collection: List<T>,
- callback: MemoIterator<T, TResult>): TResult;
-
- /**
- * @see _.reduceRight
- **/
- reduceRight<T, TResult>(
- collection: Dictionary<T>,
- callback: MemoIterator<T, TResult>): TResult;
- }
-
- //_.reject
- interface LoDashStatic {
- /**
- * The opposite of _.filter; this method returns the elements of collection that predicate does not return
- * truthy for.
- *
- * @param collection The collection to iterate over.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the new filtered array.
- */
- reject<T>(
- collection: List<T>,
- predicate?: ListIterator<T, boolean>
- ): T[];
-
- /**
- * @see _.reject
- */
- reject<T>(
- collection: Dictionary<T>,
- predicate?: DictionaryIterator<T, boolean>
- ): T[];
-
- /**
- * @see _.reject
- */
- reject(
- collection: string,
- predicate?: StringIterator<boolean>
- ): string[];
-
- /**
- * @see _.reject
- */
- reject<T>(
- collection: List<T>|Dictionary<T>,
- predicate: string
- ): T[];
-
- /**
- * @see _.reject
- */
- reject<W extends {}, T>(
- collection: List<T>|Dictionary<T>,
- predicate: W
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.reject
- */
- reject(
- predicate?: StringIterator<boolean>
- ): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.reject
- */
- reject(
- predicate: ListIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject(
- predicate: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<W>(predicate: W): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.reject
- */
- reject<T>(
- predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<T>(
- predicate: string
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<W, T>(predicate: W): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.reject
- */
- reject(
- predicate?: StringIterator<boolean>
- ): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.reject
- */
- reject(
- predicate: ListIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject(
- predicate: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<W>(predicate: W): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.reject
- */
- reject<T>(
- predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<T>(
- predicate: string
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.reject
- */
- reject<W, T>(predicate: W): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.sample
- interface LoDashStatic {
- /**
- * Gets a random element from collection.
- *
- * @param collection The collection to sample.
- * @return Returns the random element.
- */
- sample<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>
- ): T;
-
- /**
- * @see _.sample
- */
- sample<O extends Object, T>(
- collection: O
- ): T;
-
- /**
- * @see _.sample
- */
- sample<T>(
- collection: Object
- ): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sample
- */
- sample(): string;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sample
- */
- sample(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sample
- */
- sample<T>(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sample
- */
- sample(): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sample
- */
- sample<TWrapper>(): TWrapper;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sample
- */
- sample<TWrapper>(): TWrapper;
- }
-
- //_.sampleSize
- interface LoDashStatic {
- /**
- * Gets n random elements at unique keys from collection up to the size of collection.
- *
- * @param collection The collection to sample.
- * @param n The number of elements to sample.
- * @return Returns the random elements.
- */
- sampleSize<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- n?: number
- ): T[];
-
- /**
- * @see _.sampleSize
- */
- sampleSize<O extends Object, T>(
- collection: O,
- n?: number
- ): T[];
-
- /**
- * @see _.sampleSize
- */
- sampleSize<T>(
- collection: Object,
- n?: number
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize(
- n?: number
- ): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize(
- n?: number
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize<T>(
- n?: number
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize(
- n?: number
- ): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize(
- n?: number
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sampleSize
- */
- sampleSize<T>(
- n?: number
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.shuffle
- interface LoDashStatic {
- /**
- * Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.
- *
- * @param collection The collection to shuffle.
- * @return Returns the new shuffled array.
- */
- shuffle<T>(collection: List<T>|Dictionary<T>): T[];
-
- /**
- * @see _.shuffle
- */
- shuffle(collection: string): string[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle(): LoDashExplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.shuffle
- */
- shuffle<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.size
- interface LoDashStatic {
- /**
- * Gets the size of collection by returning its length for array-like values or the number of own enumerable
- * properties for objects.
- *
- * @param collection The collection to inspect.
- * @return Returns the size of collection.
- */
- size<T>(collection: List<T>|Dictionary<T>): number;
-
- /**
- * @see _.size
- */
- size(collection: string): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.size
- */
- size(): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.size
- */
- size(): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.size
- */
- size(): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.size
- */
- size(): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.size
- */
- size(): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.size
- */
- size(): LoDashExplicitWrapper<number>;
- }
-
- //_.some
- interface LoDashStatic {
- /**
- * Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate
- * returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).
- *
- * @param collection The collection to iterate over.
- * @param predicate The function invoked per iteration.
- * @return Returns true if any element passes the predicate check, else false.
- */
- some<T>(
- collection: List<T>,
- predicate?: ListIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: Dictionary<T>,
- predicate?: DictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: NumericDictionary<T>,
- predicate?: NumericDictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some(
- collection: Object,
- predicate?: ObjectIterator<any, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- predicate?: string|[string, any]
- ): boolean;
-
- /**
- * @see _.some
- */
- some(
- collection: Object,
- predicate?: string|[string, any]
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- predicate?: PartialObject<T>
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: List<T>|Dictionary<T>|NumericDictionary<T>,
- predicate?: PartialObject<T>
- ): boolean;
-
- /**
- * @see _.some
- */
- some<T>(
- collection: Object,
- predicate?: PartialObject<T>
- ): boolean;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.some
- */
- some(
- predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some(
- predicate?: string|[string, any]
- ): boolean;
-
- /**
- * @see _.some
- */
- some(
- predicate?: PartialObject<T>
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.some
- */
- some<TResult>(
- predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>|ObjectIterator<any, boolean>
- ): boolean;
-
- /**
- * @see _.some
- */
- some(
- predicate?: string|[string, any]
- ): boolean;
-
- /**
- * @see _.some
- */
- some<TResult>(
- predicate?: PartialObject<TResult>
- ): boolean;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.some
- */
- some(
- predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.some
- */
- some(
- predicate?: string|[string, any]
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.some
- */
- some(
- predicate?: PartialObject<T>
- ): LoDashExplicitWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.some
- */
- some<TResult>(
- predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>|ObjectIterator<any, boolean>
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.some
- */
- some(
- predicate?: string|[string, any]
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.some
- */
- some<TResult>(
- predicate?: PartialObject<TResult>
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.sortBy
- interface LoDashStatic {
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection through each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[]|Object|Object[]|string|string[])} [iteratees=[_.identity]]
- * The iteratees to sort by, specified individually or in arrays.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 42 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]
- *
- * _.sortBy(users, 'user', function(o) {
- * return Math.floor(o.age / 10);
- * });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
- */
- sortBy<T, TSort>(
- collection: List<T>,
- iteratee?: ListIterator<T, TSort>
- ): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<T, TSort>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, TSort>
- ): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(
- collection: List<T>|Dictionary<T>,
- iteratee: string
- ): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<W extends {}, T>(
- collection: List<T>|Dictionary<T>,
- whereValue: W
- ): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(
- collection: List<T>|Dictionary<T>
- ): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(
- collection: List<T>,
- iteratees: Array<ListIterator<T, any>|string|Object>): T[];
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(
- collection: List<T>,
- ...iteratees: Array<ListIterator<T, boolean>|Object|string>): T[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sortBy
- */
- sortBy<TSort>(
- iteratee?: ListIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy(iteratee: string): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<W extends {}>(whereValue: W): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy(): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy(...iteratees: Array<ListIterator<T, boolean>|Object|string>): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- **/
- sortBy(iteratees: Array<ListIterator<T, any>|string|Object>): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sortBy
- */
- sortBy<T, TSort>(
- iteratee?: ListIterator<T, TSort>|DictionaryIterator<T, TSort>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(iteratee: string): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<W extends {}, T>(whereValue: W): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sortBy
- */
- sortBy<TSort>(
- iteratee?: ListIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy(iteratee: string): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<W extends {}>(whereValue: W): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sortBy
- */
- sortBy<T, TSort>(
- iteratee?: ListIterator<T, TSort>|DictionaryIterator<T, TSort>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(iteratee: string): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<W extends {}, T>(whereValue: W): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.sortBy
- */
- sortBy<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.orderBy
- interface LoDashStatic {
- /**
- * This method is like `_.sortBy` except that it allows specifying the sort
- * orders of the iteratees to sort by. If `orders` is unspecified, all values
- * are sorted in ascending order. Otherwise, specify an order of "desc" for
- * descending or "asc" for ascending sort order of corresponding values.
- *
- * @static
- * @memberOf _
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} [iteratees=[_.identity]] The iteratees to sort by.
- * @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 42 },
- * { 'user': 'barney', 'age': 36 }
- * ];
- *
- * // sort by `user` in ascending order and by `age` in descending order
- * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
- */
- orderBy<W extends Object, T>(
- collection: List<T>,
- iteratees: Many<ListIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): T[];
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- collection: List<T>,
- iteratees: Many<ListIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): T[];
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- collection: NumericDictionary<T>,
- iteratees: Many<NumericDictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): T[];
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- collection: NumericDictionary<T>,
- iteratees: Many<NumericDictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): T[];
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- collection: Dictionary<T>,
- iteratees: Many<DictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): T[];
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- collection: Dictionary<T>,
- iteratees: Many<DictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy(
- iteratees: Many<ListIterator<T, any>|string>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object>(
- iteratees: Many<ListIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<ListIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<ListIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<NumericDictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<NumericDictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<DictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<DictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy(
- iteratees: Many<ListIterator<T, any>|string>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object>(
- iteratees: Many<ListIterator<T, any>|string|W|(ListIterator<T, any>|string|W)>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<ListIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<ListIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<NumericDictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<NumericDictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<W extends Object, T>(
- iteratees: Many<DictionaryIterator<T, any>|string|W>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
-
- /**
- * @see _.orderBy
- */
- orderBy<T>(
- iteratees: Many<DictionaryIterator<T, any>|string|Object>,
- orders?: Many<boolean|string>
- ): LoDashExplicitArrayWrapper<T>;
- }
-
- /********
- * Date *
- ********/
-
- //_.now
- interface LoDashStatic {
- /**
- * Gets the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @return The number of milliseconds.
- */
- now(): number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.now
- */
- now(): number;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.now
- */
- now(): LoDashExplicitWrapper<number>;
- }
-
- /*************
- * Functions *
- *************/
-
- //_.after
- interface LoDashStatic {
- /**
- * The opposite of _.before; this method creates a function that invokes func once it’s called n or more times.
- *
- * @param n The number of calls before func is invoked.
- * @param func The function to restrict.
- * @return Returns the new restricted function.
- */
- after<TFunc extends Function>(
- n: number,
- func: TFunc
- ): TFunc;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.after
- **/
- after<TFunc extends Function>(func: TFunc): LoDashImplicitObjectWrapper<TFunc>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.after
- **/
- after<TFunc extends Function>(func: TFunc): LoDashExplicitObjectWrapper<TFunc>;
- }
-
- //_.ary
- interface LoDashStatic {
- /**
- * Creates a function that accepts up to n arguments ignoring any additional arguments.
- *
- * @param func The function to cap arguments for.
- * @param n The arity cap.
- * @returns Returns the new function.
- */
- ary<TResult extends Function>(
- func: Function,
- n?: number
- ): TResult;
-
- ary<T extends Function, TResult extends Function>(
- func: T,
- n?: number
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.ary
- */
- ary<TResult extends Function>(n?: number): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.ary
- */
- ary<TResult extends Function>(n?: number): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.before
- interface LoDashStatic {
- /**
- * Creates a function that invokes func, with the this binding and arguments of the created function, while
- * it’s called less than n times. Subsequent calls to the created function return the result of the last func
- * invocation.
- *
- * @param n The number of calls at which func is no longer invoked.
- * @param func The function to restrict.
- * @return Returns the new restricted function.
- */
- before<TFunc extends Function>(
- n: number,
- func: TFunc
- ): TFunc;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.before
- **/
- before<TFunc extends Function>(func: TFunc): LoDashImplicitObjectWrapper<TFunc>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.before
- **/
- before<TFunc extends Function>(func: TFunc): LoDashExplicitObjectWrapper<TFunc>;
- }
-
- //_.bind
- interface FunctionBind {
- placeholder: any;
-
- <T extends Function, TResult extends Function>(
- func: T,
- thisArg: any,
- ...partials: any[]
- ): TResult;
-
- <TResult extends Function>(
- func: Function,
- thisArg: any,
- ...partials: any[]
- ): TResult;
- }
-
- interface LoDashStatic {
- /**
- * Creates a function that invokes func with the this binding of thisArg and prepends any additional _.bind
- * arguments to those provided to the bound function.
- *
- * The _.bind.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for
- * partially applied arguments.
- *
- * Note: Unlike native Function#bind this method does not set the "length" property of bound functions.
- *
- * @param func The function to bind.
- * @param thisArg The this binding of func.
- * @param partials The arguments to be partially applied.
- * @return Returns the new bound function.
- */
- bind: FunctionBind;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.bind
- */
- bind<TResult extends Function>(
- thisArg: any,
- ...partials: any[]
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.bind
- */
- bind<TResult extends Function>(
- thisArg: any,
- ...partials: any[]
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.bindAll
- interface LoDashStatic {
- /**
- * Binds methods of an object to the object itself, overwriting the existing method. Method names may be
- * specified as individual arguments or as arrays of method names. If no method names are provided all
- * enumerable function properties, own and inherited, of object are bound.
- *
- * Note: This method does not set the "length" property of bound functions.
- *
- * @param object The object to bind and assign the bound methods to.
- * @param methodNames The object method names to bind, specified as individual method names or arrays of
- * method names.
- * @return Returns object.
- */
- bindAll<T>(
- object: T,
- ...methodNames: Array<Many<string>>
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.bindAll
- */
- bindAll(...methodNames: Array<Many<string>>): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.bindAll
- */
- bindAll(...methodNames: Array<Many<string>>): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.bindKey
- interface FunctionBindKey {
- placeholder: any;
-
- <T extends Object, TResult extends Function>(
- object: T,
- key: any,
- ...partials: any[]
- ): TResult;
-
- <TResult extends Function>(
- object: Object,
- key: any,
- ...partials: any[]
- ): TResult;
- }
-
- interface LoDashStatic {
- /**
- * Creates a function that invokes the method at object[key] and prepends any additional _.bindKey arguments
- * to those provided to the bound function.
- *
- * This method differs from _.bind by allowing bound functions to reference methods that may be redefined
- * or don’t yet exist. See Peter Michaux’s article for more details.
- *
- * The _.bindKey.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder
- * for partially applied arguments.
- *
- * @param object The object the method belongs to.
- * @param key The key of the method.
- * @param partials The arguments to be partially applied.
- * @return Returns the new bound function.
- */
- bindKey: FunctionBindKey;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.bindKey
- */
- bindKey<TResult extends Function>(
- key: any,
- ...partials: any[]
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.bindKey
- */
- bindKey<TResult extends Function>(
- key: any,
- ...partials: any[]
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.createCallback
- interface LoDashStatic {
- /**
- * Produces a callback bound to an optional thisArg. If func is a property name the created
- * callback will return the property value for a given element. If func is an object the created
- * callback will return true for elements that contain the equivalent object properties,
- * otherwise it will return false.
- * @param func The value to convert to a callback.
- * @param thisArg The this binding of the created callback.
- * @param argCount The number of arguments the callback accepts.
- * @return A callback function.
- **/
- createCallback(
- func: string,
- argCount?: number): () => any;
-
- /**
- * @see _.createCallback
- **/
- createCallback(
- func: Dictionary<any>,
- argCount?: number): () => boolean;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.createCallback
- **/
- createCallback(
- argCount?: number): LoDashImplicitObjectWrapper<() => any>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.createCallback
- **/
- createCallback(
- argCount?: number): LoDashImplicitObjectWrapper<() => any>;
- }
-
- //_.curry
- interface LoDashStatic {
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curry<T1, R>(func: (t1: T1) => R):
- CurriedFunction1<T1, R>;
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curry<T1, T2, R>(func: (t1: T1, t2: T2) => R):
- CurriedFunction2<T1, T2, R>;
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curry<T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3) => R):
- CurriedFunction3<T1, T2, T3, R>;
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curry<T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R):
- CurriedFunction4<T1, T2, T3, T4, R>;
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curry<T1, T2, T3, T4, T5, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R):
- CurriedFunction5<T1, T2, T3, T4, T5, R>;
- /**
- * Creates a function that accepts one or more arguments of func that when called either invokes func returning
- * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
- * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
- * @param func The function to curry.
- * @param arity The arity of func.
- * @return Returns the new curried function.
- */
- curry<TResult extends Function>(
- func: Function,
- arity?: number): TResult;
- }
-
- interface CurriedFunction1<T1, R> {
- (): CurriedFunction1<T1, R>;
- (t1: T1): R;
- }
-
- interface CurriedFunction2<T1, T2, R> {
- (): CurriedFunction2<T1, T2, R>;
- (t1: T1): CurriedFunction1<T2, R>;
- (t1: T1, t2: T2): R;
- }
-
- interface CurriedFunction3<T1, T2, T3, R> {
- (): CurriedFunction3<T1, T2, T3, R>;
- (t1: T1): CurriedFunction2<T2, T3, R>;
- (t1: T1, t2: T2): CurriedFunction1<T3, R>;
- (t1: T1, t2: T2, t3: T3): R;
- }
-
- interface CurriedFunction4<T1, T2, T3, T4, R> {
- (): CurriedFunction4<T1, T2, T3, T4, R>;
- (t1: T1): CurriedFunction3<T2, T3, T4, R>;
- (t1: T1, t2: T2): CurriedFunction2<T3, T4, R>;
- (t1: T1, t2: T2, t3: T3): CurriedFunction1<T4, R>;
- (t1: T1, t2: T2, t3: T3, t4: T4): R;
- }
-
- interface CurriedFunction5<T1, T2, T3, T4, T5, R> {
- (): CurriedFunction5<T1, T2, T3, T4, T5, R>;
- (t1: T1): CurriedFunction4<T2, T3, T4, T5, R>;
- (t1: T1, t2: T2): CurriedFunction3<T3, T4, T5, R>;
- (t1: T1, t2: T2, t3: T3): CurriedFunction2<T4, T5, R>;
- (t1: T1, t2: T2, t3: T3, t4: T4): CurriedFunction1<T5, R>;
- (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): R;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.curry
- **/
- curry<TResult extends Function>(arity?: number): LoDashImplicitObjectWrapper<TResult>;
- }
-
- //_.curryRight
- interface LoDashStatic {
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curryRight<T1, R>(func: (t1: T1) => R):
- CurriedFunction1<T1, R>;
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curryRight<T1, T2, R>(func: (t1: T1, t2: T2) => R):
- CurriedFunction2<T2, T1, R>;
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curryRight<T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3) => R):
- CurriedFunction3<T3, T2, T1, R>;
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curryRight<T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R):
- CurriedFunction4<T4, T3, T2, T1, R>;
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @return Returns the new curried function.
- */
- curryRight<T1, T2, T3, T4, T5, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R):
- CurriedFunction5<T5, T4, T3, T2, T1, R>;
- /**
- * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
- * instead of _.partial.
- * @param func The function to curry.
- * @param arity The arity of func.
- * @return Returns the new curried function.
- */
- curryRight<TResult extends Function>(
- func: Function,
- arity?: number): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.curryRight
- **/
- curryRight<TResult extends Function>(arity?: number): LoDashImplicitObjectWrapper<TResult>;
- }
-
- //_.debounce
- interface DebounceSettings {
- /**
- * Specify invoking on the leading edge of the timeout.
- */
- leading?: boolean;
-
- /**
- * The maximum time func is allowed to be delayed before it’s invoked.
- */
- maxWait?: number;
-
- /**
- * Specify invoking on the trailing edge of the timeout.
- */
- trailing?: boolean;
- }
-
- interface LoDashStatic {
- /**
- * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since
- * the last time the debounced function was invoked. The debounced function comes with a cancel method to
- * cancel delayed invocations and a flush method to immediately invoke them. Provide an options object to
- * indicate that func should be invoked on the leading and/or trailing edge of the wait timeout. Subsequent
- * calls to the debounced function return the result of the last func invocation.
- *
- * Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only
- * if the the debounced function is invoked more than once during the wait timeout.
- *
- * See David Corbacho’s article for details over the differences between _.debounce and _.throttle.
- *
- * @param func The function to debounce.
- * @param wait The number of milliseconds to delay.
- * @param options The options object.
- * @param options.leading Specify invoking on the leading edge of the timeout.
- * @param options.maxWait The maximum time func is allowed to be delayed before it’s invoked.
- * @param options.trailing Specify invoking on the trailing edge of the timeout.
- * @return Returns the new debounced function.
- */
- debounce<T extends Function>(
- func: T,
- wait?: number,
- options?: DebounceSettings
- ): T & Cancelable;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.debounce
- */
- debounce(
- wait?: number,
- options?: DebounceSettings
- ): LoDashImplicitObjectWrapper<T & Cancelable>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.debounce
- */
- debounce(
- wait?: number,
- options?: DebounceSettings
- ): LoDashExplicitObjectWrapper<T & Cancelable>;
- }
-
- //_.defer
- interface LoDashStatic {
- /**
- * Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to
- * func when it’s invoked.
- *
- * @param func The function to defer.
- * @param args The arguments to invoke the function with.
- * @return Returns the timer id.
- */
- defer<T extends Function>(
- func: T,
- ...args: any[]
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.defer
- */
- defer(...args: any[]): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.defer
- */
- defer(...args: any[]): LoDashExplicitWrapper<number>;
- }
-
- //_.delay
- interface LoDashStatic {
- /**
- * Invokes func after wait milliseconds. Any additional arguments are provided to func when it’s invoked.
- *
- * @param func The function to delay.
- * @param wait The number of milliseconds to delay invocation.
- * @param args The arguments to invoke the function with.
- * @return Returns the timer id.
- */
- delay<T extends Function>(
- func: T,
- wait: number,
- ...args: any[]
- ): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.delay
- */
- delay(
- wait: number,
- ...args: any[]
- ): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.delay
- */
- delay(
- wait: number,
- ...args: any[]
- ): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashStatic {
- /**
- * Creates a function that invokes `func` with arguments reversed.
- *
- * @static
- * @memberOf _
- * @category Function
- * @param {Function} func The function to flip arguments for.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var flipped = _.flip(function() {
- * return _.toArray(arguments);
- * });
- *
- * flipped('a', 'b', 'c', 'd');
- * // => ['d', 'c', 'b', 'a']
- */
- flip<T extends Function>(func: T): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flip
- */
- flip(): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flip
- */
- flip(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.flow
- interface LoDashStatic {
- /**
- * Creates a function that returns the result of invoking the provided functions with the this binding of the
- * created function, where each successive invocation is supplied the return value of the previous.
- *
- * @param funcs Functions to invoke.
- * @return Returns the new function.
- */
- // 0-argument first function
- flow<R1, R2>(f1: () => R1, f2: (a: R1) => R2): () => R2;
- flow<R1, R2, R3>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): () => R3;
- flow<R1, R2, R3, R4>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): () => R4;
- flow<R1, R2, R3, R4, R5>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): () => R5;
- flow<R1, R2, R3, R4, R5, R6>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): () => R6;
- flow<R1, R2, R3, R4, R5, R6, R7>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): () => R7;
- // 1-argument first function
- flow<A1, R1, R2>(f1: (a1: A1) => R1, f2: (a: R1) => R2): (a1: A1) => R2;
- flow<A1, R1, R2, R3>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1) => R3;
- flow<A1, R1, R2, R3, R4>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1) => R4;
- flow<A1, R1, R2, R3, R4, R5>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1) => R5;
- flow<A1, R1, R2, R3, R4, R5, R6>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1) => R6;
- flow<A1, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1) => R7;
- // 2-argument first function
- flow<A1, A2, R1, R2>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2) => R2;
- flow<A1, A2, R1, R2, R3>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2) => R3;
- flow<A1, A2, R1, R2, R3, R4>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2) => R4;
- flow<A1, A2, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2) => R5;
- flow<A1, A2, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2) => R6;
- flow<A1, A2, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2) => R7;
- // 3-argument first function
- flow<A1, A2, A3, R1, R2>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2, a3: A3) => R2;
- flow<A1, A2, A3, R1, R2, R3>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2, a3: A3) => R3;
- flow<A1, A2, A3, R1, R2, R3, R4>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2, a3: A3) => R4;
- flow<A1, A2, A3, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2, a3: A3) => R5;
- flow<A1, A2, A3, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2, a3: A3) => R6;
- flow<A1, A2, A3, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2, a3: A3) => R7;
- // 4-argument first function
- flow<A1, A2, A3, A4, R1, R2>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2, a3: A3, a4: A4) => R2;
- flow<A1, A2, A3, A4, R1, R2, R3>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2, a3: A3, a4: A4) => R3;
- flow<A1, A2, A3, A4, R1, R2, R3, R4>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2, a3: A3, a4: A4) => R4;
- flow<A1, A2, A3, A4, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2, a3: A3, a4: A4) => R5;
- flow<A1, A2, A3, A4, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2, a3: A3, a4: A4) => R6;
- flow<A1, A2, A3, A4, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2, a3: A3, a4: A4) => R7;
- // generic function
- flow<TResult extends Function>(...funcs: Function[]): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flow
- */
- flow<TResult extends Function>(...funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flow
- */
- flow<TResult extends Function>(...funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.flowRight
- interface LoDashStatic {
- /**
- * This method is like _.flow except that it creates a function that invokes the provided functions from right
- * to left.
- *
- * @param funcs Functions to invoke.
- * @return Returns the new function.
- */
- flowRight<TResult extends Function>(...funcs: Function[]): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.flowRight
- */
- flowRight<TResult extends Function>(...funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.flowRight
- */
- flowRight<TResult extends Function>(...funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.memoize
- interface MemoizedFunction extends Function {
- cache: MapCache;
- }
-
- interface LoDashStatic {
- /**
- * Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for
- * storing the result based on the arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with
- * the this binding of the memoized function.
- *
- * @param func The function to have its output memoized.
- * @param resolver The function to resolve the cache key.
- * @return Returns the new memoizing function.
- */
- memoize: {
- <T extends Function>(func: T, resolver?: Function): T & MemoizedFunction;
- Cache: MapCacheConstructor;
- };
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.memoize
- */
- memoize(resolver?: Function): LoDashImplicitObjectWrapper<T & MemoizedFunction>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.memoize
- */
- memoize(resolver?: Function): LoDashExplicitObjectWrapper<T & MemoizedFunction>;
- }
-
- //_.overArgs (was _.modArgs)
- interface LoDashStatic {
- /**
- * Creates a function that runs each argument through a corresponding transform function.
- *
- * @param func The function to wrap.
- * @param transforms The functions to transform arguments, specified as individual functions or arrays
- * of functions.
- * @return Returns the new function.
- */
- overArgs<T extends Function, TResult extends Function>(
- func: T,
- ...transforms: Function[]
- ): TResult;
-
- /**
- * @see _.overArgs
- */
- overArgs<T extends Function, TResult extends Function>(
- func: T,
- transforms: Function[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.overArgs
- */
- overArgs<TResult extends Function>(...transforms: Function[]): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.overArgs
- */
- overArgs<TResult extends Function>(transforms: Function[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.overArgs
- */
- overArgs<TResult extends Function>(...transforms: Function[]): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.overArgs
- */
- overArgs<TResult extends Function>(transforms: Function[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.negate
- interface LoDashStatic {
- /**
- * Creates a function that negates the result of the predicate func. The func predicate is invoked with
- * the this binding and arguments of the created function.
- *
- * @param predicate The predicate to negate.
- * @return Returns the new function.
- */
- negate<T extends Function>(predicate: T): (...args: any[]) => boolean;
-
- /**
- * @see _.negate
- */
- negate<T extends Function, TResult extends Function>(predicate: T): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.negate
- */
- negate(): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
-
- /**
- * @see _.negate
- */
- negate<TResult extends Function>(): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.negate
- */
- negate(): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
-
- /**
- * @see _.negate
- */
- negate<TResult extends Function>(): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.once
- interface LoDashStatic {
- /**
- * Creates a function that is restricted to invoking func once. Repeat calls to the function return the value
- * of the first call. The func is invoked with the this binding and arguments of the created function.
- *
- * @param func The function to restrict.
- * @return Returns the new restricted function.
- */
- once<T extends Function>(func: T): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.once
- */
- once(): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.once
- */
- once(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.partial
- interface LoDashStatic {
- /**
- * Creates a function that, when called, invokes func with any additional partial arguments
- * prepended to those provided to the new function. This method is similar to _.bind except
- * it does not alter the this binding.
- * @param func The function to partially apply arguments to.
- * @param args Arguments to be partially applied.
- * @return The new partially applied function.
- **/
- partial: Partial;
- }
-
- type PH = LoDashStatic;
-
- type Function0<R> = () => R;
- type Function1<T1, R> = (t1: T1) => R;
- type Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
- type Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
- type Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
-
- interface Partial {
- // arity 0
- <R>(func: Function0<R>): Function0<R>;
- // arity 1
- <T1, R>(func: Function1<T1, R>): Function1<T1, R>;
- <T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
- // arity 2
- <T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1): Function1< T2, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, plc1: PH, arg2: T2): Function1<T1, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
- // arity 3
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1): Function2< T2, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, arg2: T2): Function2<T1, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2): Function1< T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, plc2: PH, arg3: T3): Function2<T1, T2, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, arg2: T2, arg3: T3): Function1<T1, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
- // arity 4
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1): Function3< T2, T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2): Function3<T1, T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2): Function2< T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, arg3: T3): Function3<T1, T2, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3): Function2< T2, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, arg3: T3): Function2<T1, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3): Function1< T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, plc3: PH, arg4: T4): Function3<T1, T2, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, arg3: T3, arg4: T4): Function2<T1, T2, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
- // catch-all
- (func: Function, ...args: any[]): Function;
- }
-
- //_.partialRight
- interface LoDashStatic {
- /**
- * This method is like _.partial except that partial arguments are appended to those provided
- * to the new function.
- * @param func The function to partially apply arguments to.
- * @param args Arguments to be partially applied.
- * @return The new partially applied function.
- **/
- partialRight: PartialRight;
- }
-
- interface PartialRight {
- // arity 0
- <R>(func: Function0<R>): Function0<R>;
- // arity 1
- <T1, R>(func: Function1<T1, R>): Function1<T1, R>;
- <T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
- // arity 2
- <T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, plc2: PH): Function1< T2, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, arg2: T2): Function1<T1, R>;
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
- // arity 3
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, plc3: PH): Function2< T2, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, plc3: PH): Function2<T1, T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, plc3: PH): Function1< T3, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg3: T3): Function2<T1, T2, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, arg3: T3): Function1<T1, R>;
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
- // arity 4
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
- <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>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, plc4: PH): Function3<T1, T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): Function2< T3, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, plc4: PH): Function3<T1, T2, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): Function2< T2, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, plc4: PH): Function2<T1, T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): Function1< T4, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg4: T4): Function3<T1, T2, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, arg4: T4): Function2<T1, T2, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
- // catch-all
- (func: Function, ...args: any[]): Function;
- }
-
- //_.rearg
- interface LoDashStatic {
- /**
- * Creates a function that invokes func with arguments arranged according to the specified indexes where the
- * argument value at the first index is provided as the first argument, the argument value at the second index
- * is provided as the second argument, and so on.
- * @param func The function to rearrange arguments for.
- * @param indexes The arranged argument indexes, specified as individual indexes or arrays of indexes.
- * @return Returns the new function.
- */
- rearg<TResult extends Function>(func: Function, indexes: number[]): TResult;
-
- /**
- * @see _.rearg
- */
- rearg<TResult extends Function>(func: Function, ...indexes: number[]): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.rearg
- */
- rearg<TResult extends Function>(indexes: number[]): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.rearg
- */
- rearg<TResult extends Function>(...indexes: number[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- //_.rest
- interface LoDashStatic {
- /**
- * Creates a function that invokes func with the this binding of the created function and arguments from start
- * and beyond provided as an array.
- *
- * Note: This method is based on the rest parameter.
- *
- * @param func The function to apply a rest parameter to.
- * @param start The start position of the rest parameter.
- * @return Returns the new function.
- */
- rest<TResult extends Function>(
- func: Function,
- start?: number
- ): TResult;
-
- /**
- * @see _.rest
- */
- rest<TResult extends Function, TFunc extends Function>(
- func: TFunc,
- start?: number
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.rest
- */
- rest<TResult extends Function>(start?: number): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.rest
- */
- rest<TResult extends Function>(start?: number): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.spread
- interface LoDashStatic {
- /**
- * Creates a function that invokes func with the this binding of the created function and an array of arguments
- * much like Function#apply.
- *
- * Note: This method is based on the spread operator.
- *
- * @param func The function to spread arguments over.
- * @return Returns the new function.
- */
- spread<F extends Function, T extends Function>(func: F): T;
-
- /**
- * @see _.spread
- */
- spread<T extends Function>(func: Function): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.spread
- */
- spread<T extends Function>(): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.spread
- */
- spread<T extends Function>(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.throttle
- interface ThrottleSettings {
- /**
- * If you'd like to disable the leading-edge call, pass this as false.
- */
- leading?: boolean;
-
- /**
- * If you'd like to disable the execution on the trailing-edge, pass false.
- */
- trailing?: boolean;
- }
-
- interface LoDashStatic {
- /**
- * Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled
- * function comes with a cancel method to cancel delayed invocations and a flush method to immediately invoke
- * them. Provide an options object to indicate that func should be invoked on the leading and/or trailing edge
- * of the wait timeout. Subsequent calls to the throttled function return the result of the last func call.
- *
- * Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if
- * the the throttled function is invoked more than once during the wait timeout.
- *
- * @param func The function to throttle.
- * @param wait The number of milliseconds to throttle invocations to.
- * @param options The options object.
- * @param options.leading Specify invoking on the leading edge of the timeout.
- * @param options.trailing Specify invoking on the trailing edge of the timeout.
- * @return Returns the new throttled function.
- */
- throttle<T extends Function>(
- func: T,
- wait?: number,
- options?: ThrottleSettings
- ): T & Cancelable;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.throttle
- */
- throttle(
- wait?: number,
- options?: ThrottleSettings
- ): LoDashImplicitObjectWrapper<T & Cancelable>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.throttle
- */
- throttle(
- wait?: number,
- options?: ThrottleSettings
- ): LoDashExplicitObjectWrapper<T & Cancelable>;
- }
-
- //_.unary
- interface LoDashStatic {
- /**
- * Creates a function that accepts up to one argument, ignoring any
- * additional arguments.
- *
- * @static
- * @memberOf _
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new function.
- * @example
- *
- * _.map(['6', '8', '10'], _.unary(parseInt));
- * // => [6, 8, 10]
- */
- unary<T extends Function>(func: T): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.unary
- */
- unary(): LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.unary
- */
- unary(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.wrap
- interface LoDashStatic {
- /**
- * Creates a function that provides value to the wrapper function as its first argument. Any additional
- * arguments provided to the function are appended to those provided to the wrapper function. The wrapper is
- * invoked with the this binding of the created function.
- *
- * @param value The value to wrap.
- * @param wrapper The wrapper function.
- * @return Returns the new function.
- */
- wrap<V, W extends Function, R extends Function>(
- value: V,
- wrapper: W
- ): R;
-
- /**
- * @see _.wrap
- */
- wrap<V, R extends Function>(
- value: V,
- wrapper: Function
- ): R;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(
- value: any,
- wrapper: Function
- ): R;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.wrap
- */
- wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
-
- /**
- * @see _.wrap
- */
- wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
- }
-
- /********
- * Lang *
- ********/
-
- //_.castArray
- interface LoDashStatic {
- /**
- * Casts value as an array if it’s not one.
- *
- * @param value The value to inspect.
- * @return Returns the cast array.
- */
- castArray<T>(value?: Many<T>): T[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.castArray
- */
- castArray(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.clone
- interface LoDashStatic {
- /**
- * Creates a shallow clone of value.
- *
- * Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
- * array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
- * and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
- * object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @param value The value to clone.
- * @return Returns the cloned value.
- */
- clone<T>(value: T): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): T[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): LoDashExplicitWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.clone
- */
- clone(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.cloneDeep
- interface LoDashStatic {
- /**
- * This method is like _.clone except that it recursively clones value.
- *
- * @param value The value to recursively clone.
- * @return Returns the deep cloned value.
- */
- cloneDeep<T>(value: T): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): T[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): LoDashExplicitWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.cloneDeep
- */
- cloneDeep(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.cloneDeepWith
- type CloneDeepWithCustomizer<TValue, TResult> = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult;
-
- interface LoDashStatic {
- /**
- * This method is like _.cloneWith except that it recursively clones value.
- *
- * @param value The value to recursively clone.
- * @param customizer The function to customize cloning.
- * @return Returns the deep cloned value.
- */
- cloneDeepWith<TResult>(
- value: any,
- customizer?: CloneDeepWithCustomizer<any, TResult>
- ): TResult;
-
- /**
- * @see _.clonDeepeWith
- */
- cloneDeepWith<T, TResult>(
- value: T,
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T[], TResult>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends (number|string|boolean)>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T, TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends Object>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends (number|string|boolean)>(
- customizer?: CloneDeepWithCustomizer<T[], TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T[], TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends Object>(
- customizer?: CloneDeepWithCustomizer<T[], TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends (number|string|boolean)>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult>(
- customizer?: CloneDeepWithCustomizer<T, TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneDeepWith
- */
- cloneDeepWith<TResult extends Object>(
- customizer?: CloneDeepWithCustomizer<T, TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.cloneWith
- type CloneWithCustomizer<TValue, TResult> = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult;
-
- interface LoDashStatic {
- /**
- * This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
- * If customizer returns undefined cloning is handled by the method instead.
- *
- * @param value The value to clone.
- * @param customizer The function to customize cloning.
- * @return Returns the cloned value.
- */
- cloneWith<TResult>(
- value: any,
- customizer?: CloneWithCustomizer<any, TResult>
- ): TResult;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<T, TResult>(
- value: T,
- customizer?: CloneWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T[], TResult>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): TResult;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends (number|string|boolean)>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T, TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends Object>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends (number|string|boolean)>(
- customizer?: CloneWithCustomizer<T[], TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T[], TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends Object>(
- customizer?: CloneWithCustomizer<T[], TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends (number|string|boolean)>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): LoDashExplicitWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult>(
- customizer?: CloneWithCustomizer<T, TResult[]>
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.cloneWith
- */
- cloneWith<TResult extends Object>(
- customizer?: CloneWithCustomizer<T, TResult>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- /**
- * An object containing predicate functions for each property of T
- */
- type ConformsPredicateObject<T> = {
- [P in keyof T]: (val: T[P]) => boolean;
- };
-
- //_.conforms
- interface LoDashStatic {
- /**
- * Creates a function that invokes the predicate properties of `source` with the corresponding
- * property values of a given object, returning true if all predicates return truthy, else false.
- */
- conforms<T>(source: ConformsPredicateObject<T>): (Target: T) => boolean;
- }
-
- //_.conformsTo
- interface LoDashStatic {
- /**
- * Checks if object conforms to source by invoking the predicate properties of source with the
- * corresponding property values of object.
- *
- * Note: This method is equivalent to _.conforms when source is partially applied.
- */
- conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
- }
-
- //_.eq
- interface LoDashStatic {
- /**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- eq(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqual
- */
- eq(
- other: any
- ): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqual
- */
- eq(
- other: any
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.gt
- interface LoDashStatic {
- /**
- * Checks if value is greater than other.
- *
- * @param value The value to compare.
- * @param other The other value to compare.
- * @return Returns true if value is greater than other, else false.
- */
- gt(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.gt
- */
- gt(other: any): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.gt
- */
- gt(other: any): LoDashExplicitWrapper<boolean>;
- }
-
- //_.gte
- interface LoDashStatic {
- /**
- * Checks if value is greater than or equal to other.
- *
- * @param value The value to compare.
- * @param other The other value to compare.
- * @return Returns true if value is greater than or equal to other, else false.
- */
- gte(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.gte
- */
- gte(other: any): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.gte
- */
- gte(other: any): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isArguments
- interface LoDashStatic {
- /**
- * Checks if value is classified as an arguments object.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isArguments(value?: any): value is IArguments;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArguments
- */
- isArguments(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArguments
- */
- isArguments(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isArray
- interface LoDashStatic {
- /**
- * Checks if value is classified as an Array object.
- * @param value The value to check.
- *
- * @return Returns true if value is correctly classified, else false.
- */
- isArray<T>(value?: any): value is T[];
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArray
- */
- isArray(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArray
- */
- isArray(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isArrayBuffer
- interface LoDashStatic {
- /**
- * Checks if value is classified as an ArrayBuffer object.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isArrayBuffer(value?: any): value is ArrayBuffer;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayBuffer
- */
- isArrayBuffer(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayBuffer
- */
- isArrayBuffer(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isArrayLike
- interface LoDashStatic {
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- isArrayLike<T>(value?: any): value is T[];
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayLike
- */
- isArrayLike(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayLike
- */
- isArrayLike(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isArrayLikeObject
- interface LoDashStatic {
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- isArrayLikeObject<T>(value?: any): value is T[];
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayLikeObject
- */
- isArrayLikeObject(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isArrayLikeObject
- */
- isArrayLikeObject(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isBoolean
- interface LoDashStatic {
- /**
- * Checks if value is classified as a boolean primitive or object.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isBoolean(value?: any): value is boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isBoolean
- */
- isBoolean(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isBoolean
- */
- isBoolean(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isBuffer
- interface LoDashStatic {
- /**
- * Checks if value is a buffer.
- *
- * @param value The value to check.
- * @return Returns true if value is a buffer, else false.
- */
- isBuffer(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isBuffer
- */
- isBuffer(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isBuffer
- */
- isBuffer(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isDate
- interface LoDashStatic {
- /**
- * Checks if value is classified as a Date object.
- * @param value The value to check.
- *
- * @return Returns true if value is correctly classified, else false.
- */
- isDate(value?: any): value is Date;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isDate
- */
- isDate(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isDate
- */
- isDate(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isElement
- interface LoDashStatic {
- /**
- * Checks if value is a DOM element.
- *
- * @param value The value to check.
- * @return Returns true if value is a DOM element, else false.
- */
- isElement(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isElement
- */
- isElement(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isElement
- */
- isElement(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isEmpty
- interface LoDashStatic {
- /**
- * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
- * jQuery-like collection with a length greater than 0 or an object with own enumerable properties.
- *
- * @param value The value to inspect.
- * @return Returns true if value is empty, else false.
- */
- isEmpty(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEmpty
- */
- isEmpty(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEmpty
- */
- isEmpty(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isEqual
- interface LoDashStatic {
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are **not** supported.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- isEqual(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqual
- */
- isEqual(
- other: any
- ): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqual
- */
- isEqual(
- other: any
- ): LoDashExplicitWrapper<boolean>;
- }
-
- // _.isEqualWith
- type IsEqualCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean;
-
- interface LoDashStatic {
- /**
- * This method is like `_.isEqual` except that it accepts `customizer` which is
- * invoked to compare values. If `customizer` returns `undefined` comparisons are
- * handled by the method instead. The `customizer` is invoked with up to seven arguments:
- * (objValue, othValue [, index|key, object, other, stack]).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, othValue) {
- * if (isGreeting(objValue) && isGreeting(othValue)) {
- * return true;
- * }
- * }
- *
- * var array = ['hello', 'goodbye'];
- * var other = ['hi', 'goodbye'];
- *
- * _.isEqualWith(array, other, customizer);
- * // => true
- */
- isEqualWith(
- value: any,
- other: any,
- customizer: IsEqualCustomizer
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqualWith
- */
- isEqualWith(
- other: any,
- customizer: IsEqualCustomizer
- ): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isEqualWith
- */
- isEqualWith(
- other: any,
- customizer: IsEqualCustomizer
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isError
- interface LoDashStatic {
- /**
- * Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError
- * object.
- *
- * @param value The value to check.
- * @return Returns true if value is an error object, else false.
- */
- isError(value: any): value is Error;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isError
- */
- isError(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isError
- */
- isError(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isFinite
- interface LoDashStatic {
- /**
- * Checks if value is a finite primitive number.
- *
- * Note: This method is based on Number.isFinite.
- *
- * @param value The value to check.
- * @return Returns true if value is a finite number, else false.
- */
- isFinite(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isFinite
- */
- isFinite(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isFinite
- */
- isFinite(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isFunction
- interface LoDashStatic {
- /**
- * Checks if value is classified as a Function object.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isFunction(value?: any): value is Function;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isFunction
- */
- isFunction(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isFunction
- */
- isFunction(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isInteger
- interface LoDashStatic {
- /**
- * Checks if `value` is an integer.
- *
- * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
- * @example
- *
- * _.isInteger(3);
- * // => true
- *
- * _.isInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isInteger(Infinity);
- * // => false
- *
- * _.isInteger('3');
- * // => false
- */
- isInteger(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isInteger
- */
- isInteger(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isInteger
- */
- isInteger(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isLength
- interface LoDashStatic {
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- isLength(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isLength
- */
- isLength(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isLength
- */
- isLength(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isMap
- interface LoDashStatic {
- /**
- * Checks if value is classified as a Map object.
- *
- * @param value The value to check.
- * @returns Returns true if value is correctly classified, else false.
- */
- isMap<K, V>(value?: any): value is Map<K, V>;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isMap
- */
- isMap(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isMap
- */
- isMap(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isMatch
- type isMatchCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean;
-
- interface LoDashStatic {
- /**
- * Performs a deep comparison between `object` and `source` to determine if
- * `object` contains equivalent property values.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * var object = { 'user': 'fred', 'age': 40 };
- *
- * _.isMatch(object, { 'age': 40 });
- * // => true
- *
- * _.isMatch(object, { 'age': 36 });
- * // => false
- */
- isMatch(object: Object, source: Object): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.isMatch
- */
- isMatch(source: Object): boolean;
- }
-
- //_.isMatchWith
- type isMatchWithCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean;
-
- interface LoDashStatic {
- /**
- * This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined` comparisons
- * are handled by the method instead. The `customizer` is invoked with three
- * arguments: (objValue, srcValue, index|key, object, source).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, srcValue) {
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
- * return true;
- * }
- * }
- *
- * var object = { 'greeting': 'hello' };
- * var source = { 'greeting': 'hi' };
- *
- * _.isMatchWith(object, source, customizer);
- * // => true
- */
- isMatchWith(object: Object, source: Object, customizer: isMatchWithCustomizer): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.isMatchWith
- */
- isMatchWith(source: Object, customizer: isMatchWithCustomizer): boolean;
- }
-
- //_.isNaN
- interface LoDashStatic {
- /**
- * Checks if value is NaN.
- *
- * Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.
- *
- * @param value The value to check.
- * @return Returns true if value is NaN, else false.
- */
- isNaN(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isNaN
- */
- isNaN(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isNaN
- */
- isNaN(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isNative
- interface LoDashStatic {
- /**
- * Checks if value is a native function.
- * @param value The value to check.
- *
- * @retrun Returns true if value is a native function, else false.
- */
- isNative(value: any): value is Function;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNative
- */
- isNative(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNative
- */
- isNative(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isNil
- interface LoDashStatic {
- /**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
- isNil(value: any): value is null | undefined;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNil
- */
- isNil(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNil
- */
- isNil(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isNull
- interface LoDashStatic {
- /**
- * Checks if value is null.
- *
- * @param value The value to check.
- * @return Returns true if value is null, else false.
- */
- isNull(value: any): value is null;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNull
- */
- isNull(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNull
- */
- isNull(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isNumber
- interface LoDashStatic {
- /**
- * Checks if value is classified as a Number primitive or object.
- *
- * Note: To exclude Infinity, -Infinity, and NaN, which are classified as numbers, use the _.isFinite method.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isNumber(value?: any): value is number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNumber
- */
- isNumber(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isNumber
- */
- isNumber(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isObject
- interface LoDashStatic {
- /**
- * Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0),
- * and new String(''))
- *
- * @param value The value to check.
- * @return Returns true if value is an object, else false.
- */
- isObject(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isObject
- */
- isObject(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isObject
- */
- isObject(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isObjectLike
- interface LoDashStatic {
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- isObjectLike(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isObjectLike
- */
- isObjectLike(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isObjectLike
- */
- isObjectLike(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isPlainObject
- interface LoDashStatic {
- /**
- * Checks if value is a plain object, that is, an object created by the Object constructor or one with a
- * [[Prototype]] of null.
- *
- * Note: This method assumes objects created by the Object constructor have no inherited enumerable properties.
- *
- * @param value The value to check.
- * @return Returns true if value is a plain object, else false.
- */
- isPlainObject(value?: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isPlainObject
- */
- isPlainObject(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isPlainObject
- */
- isPlainObject(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isRegExp
- interface LoDashStatic {
- /**
- * Checks if value is classified as a RegExp object.
- * @param value The value to check.
- *
- * @return Returns true if value is correctly classified, else false.
- */
- isRegExp(value?: any): value is RegExp;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isRegExp
- */
- isRegExp(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isRegExp
- */
- isRegExp(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isSafeInteger
- interface LoDashStatic {
- /**
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
- * double precision number which isn't the result of a rounded unsafe integer.
- *
- * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
- * @example
- *
- * _.isSafeInteger(3);
- * // => true
- *
- * _.isSafeInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isSafeInteger(Infinity);
- * // => false
- *
- * _.isSafeInteger('3');
- * // => false
- */
- isSafeInteger(value: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isSafeInteger
- */
- isSafeInteger(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isSafeInteger
- */
- isSafeInteger(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isSet
- interface LoDashStatic {
- /**
- * Checks if value is classified as a Set object.
- *
- * @param value The value to check.
- * @returns Returns true if value is correctly classified, else false.
- */
- isSet<T>(value?: any): value is Set<T>;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isSet
- */
- isSet(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isSet
- */
- isSet(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isString
- interface LoDashStatic {
- /**
- * Checks if value is classified as a String primitive or object.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isString(value?: any): value is string;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isString
- */
- isString(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isString
- */
- isString(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isSymbol
- interface LoDashStatic {
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- isSymbol(value: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isSymbol
- */
- isSymbol(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isSymbol
- */
- isSymbol(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isTypedArray
- interface LoDashStatic {
- /**
- * Checks if value is classified as a typed array.
- *
- * @param value The value to check.
- * @return Returns true if value is correctly classified, else false.
- */
- isTypedArray(value: any): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isTypedArray
- */
- isTypedArray(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isTypedArray
- */
- isTypedArray(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isUndefined
- interface LoDashStatic {
- /**
- * Checks if value is undefined.
- *
- * @param value The value to check.
- * @return Returns true if value is undefined, else false.
- */
- isUndefined(value: any): value is undefined;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isUndefined
- */
- isUndefined(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * see _.isUndefined
- */
- isUndefined(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isWeakMap
- interface LoDashStatic {
- /**
- * Checks if value is classified as a WeakMap object.
- *
- * @param value The value to check.
- * @returns Returns true if value is correctly classified, else false.
- */
- isWeakMap<K extends object, V>(value?: any): value is WeakMap<K, V>;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isSet
- */
- isWeakMap(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isSet
- */
- isWeakMap(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.isWeakSet
- interface LoDashStatic {
- /**
- * Checks if value is classified as a WeakSet object.
- *
- * @param value The value to check.
- * @returns Returns true if value is correctly classified, else false.
- */
- isWeakSet<T>(value?: any): value is WeakSet<T>;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isWeakSet
- */
- isWeakSet(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.isWeakSet
- */
- isWeakSet(): LoDashExplicitWrapper<boolean>;
- }
-
- //_.lt
- interface LoDashStatic {
- /**
- * Checks if value is less than other.
- *
- * @param value The value to compare.
- * @param other The other value to compare.
- * @return Returns true if value is less than other, else false.
- */
- lt(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.lt
- */
- lt(other: any): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.lt
- */
- lt(other: any): LoDashExplicitWrapper<boolean>;
- }
-
- //_.lte
- interface LoDashStatic {
- /**
- * Checks if value is less than or equal to other.
- *
- * @param value The value to compare.
- * @param other The other value to compare.
- * @return Returns true if value is less than or equal to other, else false.
- */
- lte(
- value: any,
- other: any
- ): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.lte
- */
- lte(other: any): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.lte
- */
- lte(other: any): LoDashExplicitWrapper<boolean>;
- }
-
- //_.toArray
- interface LoDashStatic {
- /**
- * Converts value to an array.
- *
- * @param value The value to convert.
- * @return Returns the converted array.
- */
- toArray<T>(value: List<T>|Dictionary<T>|NumericDictionary<T>): T[];
-
- /**
- * @see _.toArray
- */
- toArray<TValue, TResult>(value: TValue): TResult[];
-
- /**
- * @see _.toArray
- */
- toArray<TResult>(value?: any): TResult[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray<TResult>(): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray<TResult>(): LoDashImplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray<TResult>(): LoDashExplicitArrayWrapper<TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.toArray
- */
- toArray<TResult>(): LoDashExplicitArrayWrapper<TResult>;
- }
-
- //_.toPlainObject
- interface LoDashStatic {
- /**
- * Converts value to a plain object flattening inherited enumerable properties of value to own properties
- * of the plain object.
- *
- * @param value The value to convert.
- * @return Returns the converted plain object.
- */
- toPlainObject<TResult extends {}>(value?: any): TResult;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toPlainObject
- */
- toPlainObject<TResult extends {}>(): LoDashImplicitObjectWrapper<TResult>;
- }
-
- //_.toInteger
- interface LoDashStatic {
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3');
- * // => 3
- */
- toInteger(value: any): number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toInteger
- */
- toInteger(): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toInteger
- */
- toInteger(): LoDashExplicitWrapper<number>;
- }
-
- //_.toLength
- interface LoDashStatic {
- /**
- * Converts `value` to an integer suitable for use as the length of an
- * array-like object.
- *
- * **Note:** This method is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @return {number} Returns the converted integer.
- * @example
- *
- * _.toLength(3);
- * // => 3
- *
- * _.toLength(Number.MIN_VALUE);
- * // => 0
- *
- * _.toLength(Infinity);
- * // => 4294967295
- *
- * _.toLength('3');
- * // => 3
- */
- toLength(value: any): number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toLength
- */
- toLength(): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toLength
- */
- toLength(): LoDashExplicitWrapper<number>;
- }
-
- //_.toNumber
- interface LoDashStatic {
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3);
- * // => 3
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3');
- * // => 3
- */
- toNumber(value: any): number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toNumber
- */
- toNumber(): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toNumber
- */
- toNumber(): LoDashExplicitWrapper<number>;
- }
-
- //_.toSafeInteger
- interface LoDashStatic {
- /**
- * Converts `value` to a safe integer. A safe integer can be compared and
- * represented correctly.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toSafeInteger(3);
- * // => 3
- *
- * _.toSafeInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toSafeInteger(Infinity);
- * // => 9007199254740991
- *
- * _.toSafeInteger('3');
- * // => 3
- */
- toSafeInteger(value: any): number;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toSafeInteger
- */
- toSafeInteger(): LoDashImplicitWrapper<number>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toSafeInteger
- */
- toSafeInteger(): LoDashExplicitWrapper<number>;
- }
-
- //_.toString DUMMY
- interface LoDashStatic {
- /**
- * Converts `value` to a string if it's not one. An empty string is returned
- * for `null` and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- toString(value: any): string;
- }
-
- /********
- * Math *
- ********/
-
- //_.add
- interface LoDashStatic {
- /**
- * Adds two numbers.
- *
- * @param augend The first number to add.
- * @param addend The second number to add.
- * @return Returns the sum.
- */
- add(
- augend: number,
- addend: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.add
- */
- add(addend: number): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.add
- */
- add(addend: number): LoDashExplicitWrapper<number>;
- }
-
- //_.ceil
- interface LoDashStatic {
- /**
- * Calculates n rounded up to precision.
- *
- * @param n The number to round up.
- * @param precision The precision to round up to.
- * @return Returns the rounded up number.
- */
- ceil(
- n: number,
- precision?: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.ceil
- */
- ceil(precision?: number): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.ceil
- */
- ceil(precision?: number): LoDashExplicitWrapper<number>;
- }
-
- //_.floor
- interface LoDashStatic {
- /**
- * Calculates n rounded down to precision.
- *
- * @param n The number to round down.
- * @param precision The precision to round down to.
- * @return Returns the rounded down number.
- */
- floor(
- n: number,
- precision?: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.floor
- */
- floor(precision?: number): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.floor
- */
- floor(precision?: number): LoDashExplicitWrapper<number>;
- }
-
- //_.max
- interface LoDashStatic {
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey
- * `undefined` is returned.
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- */
- max<T>(
- collection: List<T>
- ): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.max
- */
- max(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.max
- */
- max<T>(): T;
- }
-
- //_.maxBy
- interface LoDashStatic {
- /**
- * This method is like `_.max` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.maxBy(objects, function(o) { return o.a; });
- * // => { 'n': 2 }
- *
- * // using the `_.property` iteratee shorthand
- * _.maxBy(objects, 'n');
- * // => { 'n': 2 }
- */
- maxBy<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<T>(
- collection: List<T>|Dictionary<T>,
- iteratee?: string
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<TObject extends {}, T>(
- collection: List<T>|Dictionary<T>,
- whereValue?: TObject
- ): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.maxBy
- */
- maxBy(
- iteratee?: ListIterator<T, any>
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy(
- iteratee?: string
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<TObject extends {}>(
- whereValue?: TObject
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.maxBy
- */
- maxBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<T>(
- iteratee?: string
- ): T;
-
- /**
- * @see _.maxBy
- */
- maxBy<TObject extends {}, T>(
- whereValue?: TObject
- ): T;
- }
-
- //_.mean
- interface LoDashStatic {
- /**
- * Computes the mean of the values in `array`.
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([4, 2, 8, 6]);
- * // => 5
- */
- mean<T>(
- collection: List<T>
- ): number;
- }
-
- //_.meanBy
- interface LoDashStatic {
- /**
- * Computes the mean of the provided propties of the objects in the `array`
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }], 'n');
- * // => 5
- */
- meanBy<T>(
- collection: List<T>,
- iteratee?: DictionaryIterator<T, any>
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.mean
- */
- mean<T>(): number;
-
- /**
- * @see _.mean
- */
- mean(): number;
- }
-
- //_.min
- interface LoDashStatic {
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey
- * `undefined` is returned.
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- */
- min<T>(
- collection: List<T>
- ): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.min
- */
- min(): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.min
- */
- min<T>(): T;
- }
-
- //_.minBy
- interface LoDashStatic {
- /**
- * This method is like `_.min` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.minBy(objects, function(o) { return o.a; });
- * // => { 'n': 1 }
- *
- * // using the `_.property` iteratee shorthand
- * _.minBy(objects, 'n');
- * // => { 'n': 1 }
- */
- minBy<T>(
- collection: List<T>,
- iteratee?: ListIterator<T, any>
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<T>(
- collection: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<T>(
- collection: List<T>|Dictionary<T>,
- iteratee?: string
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<TObject extends {}, T>(
- collection: List<T>|Dictionary<T>,
- whereValue?: TObject
- ): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.minBy
- */
- minBy(
- iteratee?: ListIterator<T, any>
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy(
- iteratee?: string
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<TObject extends {}>(
- whereValue?: TObject
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.minBy
- */
- minBy<T>(
- iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<T>(
- iteratee?: string
- ): T;
-
- /**
- * @see _.minBy
- */
- minBy<TObject extends {}, T>(
- whereValue?: TObject
- ): T;
- }
-
- //_.round
- interface LoDashStatic {
- /**
- * Calculates n rounded to precision.
- *
- * @param n The number to round.
- * @param precision The precision to round to.
- * @return Returns the rounded number.
- */
- round(
- n: number,
- precision?: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.round
- */
- round(precision?: number): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.round
- */
- round(precision?: number): LoDashExplicitWrapper<number>;
- }
-
- //_.sum
- interface LoDashStatic {
- /**
- * Computes the sum of the values in `array`.
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the sum.
- * @example
- *
- * _.sum([4, 2, 8, 6]);
- * // => 20
- */
- sum<T>(collection: List<T>): number;
-
- /**
- * @see _.sum
- */
- sum(collection: List<number>|Dictionary<number>): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sum
- */
- sum(): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sum
- **/
- sum<TValue>(): number;
-
- /**
- * @see _.sum
- */
- sum(): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sum
- */
- sum(): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sum
- */
- sum<TValue>(): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sum
- */
- sum(): LoDashExplicitWrapper<number>;
- }
-
- //_.sumBy
- interface LoDashStatic {
- /**
- * This method is like `_.sum` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be summed.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the sum.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.sumBy(objects, function(o) { return o.n; });
- * // => 20
- *
- * // using the `_.property` iteratee shorthand
- * _.sumBy(objects, 'n');
- * // => 20
- */
- sumBy<T>(
- collection: List<T>,
- iteratee: ListIterator<T, number>
- ): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(
- collection: List<{}>,
- iteratee: string
- ): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(
- collection: List<number>
- ): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(
- collection: List<{}>,
- iteratee: Dictionary<{}>
- ): number;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.sumBy
- */
- sumBy(
- iteratee: ListIterator<T, number>
- ): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: string): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: Dictionary<{}>): number;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.sumBy
- */
- sumBy(
- iteratee: ListIterator<{}, number>
- ): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: string): number;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: Dictionary<{}>): number;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.sumBy
- */
- sumBy(
- iteratee: ListIterator<T, number>
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: string): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sumBy
- */
- sumBy(): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper<number>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.sumBy
- */
- sumBy(
- iteratee: ListIterator<{}, number>
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: string): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.sumBy
- */
- sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper<number>;
- }
-
- /**********
- * Number *
- **********/
-
- //_.subtract
- interface LoDashStatic {
- /**
- * Subtract two numbers.
- *
- * @static
- * @memberOf _
- * @category Math
- * @param {number} minuend The first number in a subtraction.
- * @param {number} subtrahend The second number in a subtraction.
- * @returns {number} Returns the difference.
- * @example
- *
- * _.subtract(6, 4);
- * // => 2
- */
- subtract(
- minuend: number,
- subtrahend: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.subtract
- */
- subtract(
- subtrahend: number
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.subtract
- */
- subtract(
- subtrahend: number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.clamp
- interface LoDashStatic {
- /**
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
- *
- * @static
- * @memberOf _
- * @category Number
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- * @example
- *
- * _.clamp(-10, -5, 5);
- * // => -5
- *
- * _.clamp(10, -5, 5);
- * // => 5
- */
- clamp(
- number: number,
- lower: number,
- upper: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.clamp
- */
- clamp(
- lower: number,
- upper: number
- ): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.clamp
- */
- clamp(
- lower: number,
- upper: number
- ): LoDashExplicitWrapper<number>;
- }
-
- //_.inRange
- interface LoDashStatic {
- /**
- * Checks if n is between start and up to but not including, end. If end is not specified it’s set to start
- * with start then set to 0.
- *
- * @param n The number to check.
- * @param start The start of the range.
- * @param end The end of the range.
- * @return Returns true if n is in the range, else false.
- */
- inRange(
- n: number,
- start: number,
- end: number
- ): boolean;
-
- /**
- * @see _.inRange
- */
- inRange(
- n: number,
- end: number
- ): boolean;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.inRange
- */
- inRange(
- start: number,
- end: number
- ): boolean;
-
- /**
- * @see _.inRange
- */
- inRange(end: number): boolean;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.inRange
- */
- inRange(
- start: number,
- end: number
- ): LoDashExplicitWrapper<boolean>;
-
- /**
- * @see _.inRange
- */
- inRange(end: number): LoDashExplicitWrapper<boolean>;
- }
-
- //_.random
- interface LoDashStatic {
- /**
- * Produces a random number between min and max (inclusive). If only one argument is provided a number between
- * 0 and the given number is returned. If floating is true, or either min or max are floats, a floating-point
- * number is returned instead of an integer.
- *
- * @param min The minimum possible value.
- * @param max The maximum possible value.
- * @param floating Specify returning a floating-point number.
- * @return Returns the random number.
- */
- random(
- min?: number,
- max?: number,
- floating?: boolean
- ): number;
-
- /**
- * @see _.random
- */
- random(
- min?: number,
- floating?: boolean
- ): number;
-
- /**
- * @see _.random
- */
- random(floating?: boolean): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.random
- */
- random(
- max?: number,
- floating?: boolean
- ): number;
-
- /**
- * @see _.random
- */
- random(floating?: boolean): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.random
- */
- random(
- max?: number,
- floating?: boolean
- ): LoDashExplicitWrapper<number>;
-
- /**
- * @see _.random
- */
- random(floating?: boolean): LoDashExplicitWrapper<number>;
- }
-
- /**********
- * Object *
- **********/
-
- //_.assign
- interface LoDashStatic {
- /**
- * Assigns own enumerable properties of source objects to the destination
- * object. Source objects are applied from left to right. Subsequent sources
- * overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function Foo() {
- * this.c = 3;
- * }
- *
- * function Bar() {
- * this.e = 5;
- * }
- *
- * Foo.prototype.d = 4;
- * Bar.prototype.f = 6;
- *
- * _.assign({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3, 'e': 5 }
- */
- assign<TObject, TSource>(
- object: TObject,
- source: TSource
- ): TObject & TSource;
-
- /**
- * @see assign
- */
- assign<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see assign
- */
- assign<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see assign
- */
- assign<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assign
- */
- assign<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assign
- */
- assign<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assign
- */
- assign<TSource>(
- source: TSource
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assign
- */
- assign(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assign
- */
- assign<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assign
- */
- assign<TSource>(
- source: TSource
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assign
- */
- assign<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assign
- */
- assign(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assign
- */
- assign<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashStatic {
- /**
- * This method is like `_.assign` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- assignWith<TObject, TSource>(
- object: TObject,
- source: TSource,
- customizer: AssignCustomizer
- ): TObject & TSource;
-
- /**
- * @see assignWith
- */
- assignWith<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see assignWith
- */
- assignWith<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see assignWith
- */
- assignWith<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assignWith
- */
- assignWith<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assignWith
- */
- assignWith<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assignWith
- */
- assignWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignWith
- */
- assignWith(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assignWith
- */
- assignWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assignWith
- */
- assignWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignWith
- */
- assignWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignWith
- */
- assignWith(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assignWith
- */
- assignWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.assignIn
- interface LoDashStatic {
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * function Bar() {
- * this.d = 4;
- * }
- *
- * Foo.prototype.c = 3;
- * Bar.prototype.e = 5;
- *
- * _.assignIn({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
- */
- assignIn<TObject, TSource>(
- object: TObject,
- source: TSource
- ): TObject & TSource;
-
- /**
- * @see assignIn
- */
- assignIn<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see assignIn
- */
- assignIn<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see assignIn
- */
- assignIn<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assignIn
- */
- assignIn<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assignIn
- */
- assignIn<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assignIn
- */
- assignIn<TSource>(
- source: TSource
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignIn
- */
- assignIn(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assignIn
- */
- assignIn<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assignIn
- */
- assignIn<TSource>(
- source: TSource
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignIn
- */
- assignIn<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignIn
- */
- assignIn(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assignIn
- */
- assignIn<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.assignInWith
- type AssignCustomizer = (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}) => any;
-
- interface LoDashStatic {
- /**
- * This method is like `_.assignIn` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- assignInWith<TObject, TSource>(
- object: TObject,
- source: TSource,
- customizer: AssignCustomizer
- ): TObject & TSource;
-
- /**
- * @see assignInWith
- */
- assignInWith<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see assignInWith
- */
- assignInWith<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see assignInWith
- */
- assignInWith<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assignInWith
- */
- assignInWith<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assignInWith
- */
- assignInWith<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assignInWith
- */
- assignInWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignInWith
- */
- assignInWith(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assignInWith
- */
- assignInWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assignInWith
- */
- assignInWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see assignInWith
- */
- assignInWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignInWith
- */
- assignInWith(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assignInWith
- */
- assignInWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.create
- interface LoDashStatic {
- /**
- * Creates an object that inherits from the given prototype object. If a properties object is provided its own
- * enumerable properties are assigned to the created object.
- *
- * @param prototype The object to inherit from.
- * @param properties The properties to assign to the object.
- * @return Returns the new object.
- */
- create<T extends Object, U extends Object>(
- prototype: T,
- properties?: U
- ): T & U;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.create
- */
- create<U extends Object>(properties?: U): LoDashImplicitObjectWrapper<T & U>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.create
- */
- create<U extends Object>(properties?: U): LoDashExplicitObjectWrapper<T & U>;
- }
-
- //_.defaults
- interface LoDashStatic {
- /**
- * Assigns own enumerable properties of source object(s) to the destination object for all destination
- * properties that resolve to undefined. Once a property is set, additional values of the same property are
- * ignored.
- *
- * Note: This method mutates object.
- *
- * @param object The destination object.
- * @param sources The source objects.
- * @return The destination object.
- */
- defaults<TObject, TSource>(
- object: TObject,
- source: TSource
- ): TSource & TObject;
-
- /**
- * @see _.defaults
- */
- defaults<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2
- ): TSource2 & TSource1 & TObject;
-
- /**
- * @see _.defaults
- */
- defaults<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): TSource3 & TSource2 & TSource1 & TObject;
-
- /**
- * @see _.defaults
- */
- defaults<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): TSource4 & TSource3 & TSource2 & TSource1 & TObject;
-
- /**
- * @see _.defaults
- */
- defaults<TObject>(object: TObject): TObject;
-
- /**
- * @see _.defaults
- */
- defaults<TResult>(
- object: any,
- ...sources: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.defaults
- */
- defaults<TSource>(
- source: TSource
- ): LoDashImplicitObjectWrapper<TSource & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashImplicitObjectWrapper<TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashImplicitObjectWrapper<TSource3 & TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashImplicitObjectWrapper<TSource4 & TSource3 & TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.defaults
- */
- defaults<TResult>(...sources: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.defaults
- */
- defaults<TSource>(
- source: TSource
- ): LoDashExplicitObjectWrapper<TSource & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashExplicitObjectWrapper<TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashExplicitObjectWrapper<TSource3 & TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashExplicitObjectWrapper<TSource4 & TSource3 & TSource2 & TSource1 & T>;
-
- /**
- * @see _.defaults
- */
- defaults(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.defaults
- */
- defaults<TResult>(...sources: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.defaultsDeep
- interface LoDashStatic {
- /**
- * This method is like _.defaults except that it recursively assigns default properties.
- * @param object The destination object.
- * @param sources The source objects.
- * @return Returns object.
- **/
- defaultsDeep<T, TResult>(
- object: T,
- ...sources: any[]): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.defaultsDeep
- **/
- defaultsDeep<TResult>(...sources: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- // _.extend
- interface LoDashStatic {
- /**
- * @see _.assignIn
- */
- extend<TObject, TSource>(
- object: TObject,
- source: TSource
- ): TObject & TSource;
-
- /**
- * @see _.assignIn
- */
- extend<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see _.assignIn
- */
- extend<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see _.assignIn
- */
- extend<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assignIn
- */
- extend<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assignIn
- */
- extend<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assignIn
- */
- extend<TSource>(
- source: TSource
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignIn
- */
- extend(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assignIn
- */
- extend<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assignIn
- */
- extend<TSource>(
- source: TSource
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.assignIn
- */
- extend<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignIn
- */
- extend(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assignIn
- */
- extend<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- interface LoDashStatic {
- /**
- * @see _.assignInWith
- */
- extendWith<TObject, TSource>(
- object: TObject,
- source: TSource,
- customizer: AssignCustomizer
- ): TObject & TSource;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TObject>(object: TObject): TObject;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.assignInWith
- */
- extendWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignInWith
- */
- extendWith(): LoDashImplicitObjectWrapper<T>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.assignInWith
- */
- extendWith<TSource>(
- source: TSource,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: AssignCustomizer
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.assignInWith
- */
- extendWith(): LoDashExplicitObjectWrapper<T>;
-
- /**
- * @see _.assignInWith
- */
- extendWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.findKey
- interface LoDashStatic {
- /**
- * This method is like _.find except that it returns the key of the first element predicate returns truthy for
- * instead of the element itself.
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param object The object to search.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the key of the matched element, else undefined.
- */
- findKey<TValues, TObject>(
- object: TObject,
- predicate?: DictionaryIterator<TValues, boolean>
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey<TObject>(
- object: TObject,
- predicate?: ObjectIterator<any, boolean>
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey<TObject>(
- object: TObject,
- predicate?: string
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey<TWhere extends Dictionary<any>, TObject>(
- object: TObject,
- predicate?: TWhere
- ): string;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.findKey
- */
- findKey<TValues>(
- predicate?: DictionaryIterator<TValues, boolean>
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey(
- predicate?: ObjectIterator<any, boolean>
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey(
- predicate?: string
- ): string;
-
- /**
- * @see _.findKey
- */
- findKey<TWhere extends Dictionary<any>>(
- predicate?: TWhere
- ): string;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.findKey
- */
- findKey<TValues>(
- predicate?: DictionaryIterator<TValues, boolean>
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findKey
- */
- findKey(
- predicate?: ObjectIterator<any, boolean>
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findKey
- */
- findKey(
- predicate?: string
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findKey
- */
- findKey<TWhere extends Dictionary<any>>(
- predicate?: TWhere
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.findLastKey
- interface LoDashStatic {
- /**
- * This method is like _.findKey except that it iterates over elements of a collection in the opposite order.
- *
- * If a property name is provided for predicate the created _.property style callback returns the property
- * value of the given element.
- *
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
- * elements that have a matching property value, else false.
- *
- * If an object is provided for predicate the created _.matches style callback returns true for elements that
- * have the properties of the given object, else false.
- *
- * @param object The object to search.
- * @param predicate The function invoked per iteration.
- * @param thisArg The this binding of predicate.
- * @return Returns the key of the matched element, else undefined.
- */
- findLastKey<TValues, TObject>(
- object: TObject,
- predicate?: DictionaryIterator<TValues, boolean>
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey<TObject>(
- object: TObject,
- predicate?: ObjectIterator<any, boolean>
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey<TObject>(
- object: TObject,
- predicate?: string
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey<TWhere extends Dictionary<any>, TObject>(
- object: TObject,
- predicate?: TWhere
- ): string;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.findLastKey
- */
- findLastKey<TValues>(
- predicate?: DictionaryIterator<TValues, boolean>
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey(
- predicate?: ObjectIterator<any, boolean>
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey(
- predicate?: string
- ): string;
-
- /**
- * @see _.findLastKey
- */
- findLastKey<TWhere extends Dictionary<any>>(
- predicate?: TWhere
- ): string;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.findLastKey
- */
- findLastKey<TValues>(
- predicate?: DictionaryIterator<TValues, boolean>
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findLastKey
- */
- findLastKey(
- predicate?: ObjectIterator<any, boolean>
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findLastKey
- */
- findLastKey(
- predicate?: string
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.findLastKey
- */
- findLastKey<TWhere extends Dictionary<any>>(
- predicate?: TWhere
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.forIn
- interface LoDashStatic {
- /**
- * Iterates over own and inherited enumerable properties of an object invoking iteratee for each property. The
- * iteratee is bound to thisArg and invoked with three arguments: (value, key, object). Iteratee functions may
- * exit iteration early by explicitly returning false.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns object.
- */
- forIn<T>(
- object: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forIn
- */
- forIn<T extends {}>(
- object: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forIn
- */
- forIn<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forIn
- */
- forIn<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashExplicitObjectWrapper<T>;
- }
-
- //_.forInRight
- interface LoDashStatic {
- /**
- * This method is like _.forIn except that it iterates over properties of object in the opposite order.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns object.
- */
- forInRight<T>(
- object: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forInRight
- */
- forInRight<T extends {}>(
- object: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forInRight
- */
- forInRight<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forInRight
- */
- forInRight<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashExplicitObjectWrapper<T>;
- }
-
- //_.forOwn
- interface LoDashStatic {
- /**
- * Iterates over own enumerable properties of an object invoking iteratee for each property. The iteratee is
- * bound to thisArg and invoked with three arguments: (value, key, object). Iteratee functions may exit
- * iteration early by explicitly returning false.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns object.
- */
- forOwn<T>(
- object: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forOwn
- */
- forOwn<T extends {}>(
- object: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forOwn
- */
- forOwn<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forOwn
- */
- forOwn<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashExplicitObjectWrapper<T>;
- }
-
- //_.forOwnRight
- interface LoDashStatic {
- /**
- * This method is like _.forOwn except that it iterates over properties of object in the opposite order.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns object.
- */
- forOwnRight<T>(
- object: Dictionary<T>,
- iteratee?: DictionaryIterator<T, any>
- ): Dictionary<T>;
-
- /**
- * @see _.forOwnRight
- */
- forOwnRight<T extends {}>(
- object: T,
- iteratee?: ObjectIterator<any, any>
- ): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.forOwnRight
- */
- forOwnRight<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashImplicitObjectWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.forOwnRight
- */
- forOwnRight<TValue>(
- iteratee?: DictionaryIterator<TValue, any>
- ): _.LoDashExplicitObjectWrapper<T>;
- }
-
- //_.functions
- interface LoDashStatic {
- /**
- * Creates an array of function property names from own enumerable properties
- * of `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the new array of property names.
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functions(new Foo);
- * // => ['a', 'b']
- */
- functions<T extends {}>(object: any): string[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.functions
- */
- functions(): _.LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.functions
- */
- functions(): _.LoDashExplicitArrayWrapper<string>;
- }
-
- //_.functionsIn
- interface LoDashStatic {
- /**
- * Creates an array of function property names from own and inherited
- * enumerable properties of `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the new array of property names.
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functionsIn(new Foo);
- * // => ['a', 'b', 'c']
- */
- functionsIn<T extends {}>(object: any): string[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.functionsIn
- */
- functionsIn(): _.LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.functionsIn
- */
- functionsIn(): _.LoDashExplicitArrayWrapper<string>;
- }
-
- //_.get
- interface LoDashStatic {
- /**
- * Gets the property value at path of object. If the resolved value is undefined the defaultValue is used
- * in its place.
- *
- * @param object The object to query.
- * @param path The path of the property to get.
- * @param defaultValue The value returned if the resolved value is undefined.
- * @return Returns the resolved value.
- */
- get<TObject, TResult>(
- object: TObject,
- path: Many<StringRepresentable>,
- defaultValue?: TResult
- ): TResult;
-
- /**
- * @see _.get
- */
- get<TResult>(
- object: any,
- path: Many<StringRepresentable>,
- defaultValue?: TResult
- ): TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.get
- */
- get<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult
- ): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.get
- */
- get<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.get
- */
- get<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult
- ): TResult;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.get
- */
- get<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.get
- */
- get<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.get
- */
- get<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- //_.has
- interface LoDashStatic {
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': { 'c': 3 } } };
- * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b.c');
- * // => true
- *
- * _.has(object, ['a', 'b', 'c']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- has<T extends {}>(
- object: T,
- path: Many<StringRepresentable>
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.has
- */
- has(path: Many<StringRepresentable>): boolean;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.has
- */
- has(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
- }
-
- //_.hasIn
- interface LoDashStatic {
- /**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b.c');
- * // => true
- *
- * _.hasIn(object, ['a', 'b', 'c']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
- hasIn<T extends {}>(
- object: T,
- path: Many<StringRepresentable>
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.hasIn
- */
- hasIn(path: Many<StringRepresentable>): boolean;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.hasIn
- */
- hasIn(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
- }
-
- //_.invert
- interface LoDashStatic {
- /**
- * Creates an object composed of the inverted keys and values of object. If object contains duplicate values,
- * subsequent values overwrite property assignments of previous values unless multiValue is true.
- *
- * @param object The object to invert.
- * @param multiValue Allow multiple values per key.
- * @return Returns the new inverted object.
- */
- invert<T extends {}, TResult extends {}>(
- object: T,
- multiValue?: boolean
- ): TResult;
-
- /**
- * @see _.invert
- */
- invert<TResult extends {}>(
- object: Object,
- multiValue?: boolean
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.invert
- */
- invert<TResult extends {}>(multiValue?: boolean): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.invert
- */
- invert<TResult extends {}>(multiValue?: boolean): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.inverBy
- type InvertByIterator<T> = (value: T) => any;
-
- interface LoDashStatic {
- /**
- * This method is like _.invert except that the inverted object is generated from the results of running each
- * element of object through iteratee. The corresponding inverted value of each inverted key is an array of
- * keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).
- *
- * @param object The object to invert.
- * @param interatee The iteratee invoked per element.
- * @return Returns the new inverted object.
- */
- invertBy(
- object: Object,
- interatee?: InvertByIterator<any>|string
- ): Dictionary<string[]>;
-
- /**
- * @see _.invertBy
- */
- invertBy<T>(
- object: _.Dictionary<T>|_.NumericDictionary<T>,
- interatee?: InvertByIterator<T>|string
- ): Dictionary<string[]>;
-
- /**
- * @see _.invertBy
- */
- invertBy<W>(
- object: Object,
- interatee?: W
- ): Dictionary<string[]>;
-
- /**
- * @see _.invertBy
- */
- invertBy<T, W>(
- object: _.Dictionary<T>,
- interatee?: W
- ): Dictionary<string[]>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<any>
- ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<T>|string
- ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
-
- /**
- * @see _.invertBy
- */
- invertBy<W>(
- interatee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<any>|string
- ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
-
- /**
- * @see _.invertBy
- */
- invertBy<W>(
- interatee?: W
- ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<any>
- ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<T>|string
- ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
-
- /**
- * @see _.invertBy
- */
- invertBy<W>(
- interatee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.invertBy
- */
- invertBy(
- interatee?: InvertByIterator<any>|string
- ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
-
- /**
- * @see _.invertBy
- */
- invertBy<W>(
- interatee?: W
- ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
- }
-
- //_.keys
- interface LoDashStatic {
- /**
- * Creates an array of the own enumerable property names of object.
- *
- * Note: Non-object values are coerced to objects. See the ES spec for more details.
- *
- * @param object The object to query.
- * @return Returns the array of property names.
- */
- keys(object?: any): string[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.keys
- */
- keys(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.keys
- */
- keys(): LoDashExplicitArrayWrapper<string>;
- }
-
- //_.keysIn
- interface LoDashStatic {
- /**
- * Creates an array of the own and inherited enumerable property names of object.
- *
- * Note: Non-object values are coerced to objects.
- *
- * @param object The object to query.
- * @return An array of property names.
- */
- keysIn(object?: any): string[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.keysIn
- */
- keysIn(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.keysIn
- */
- keysIn(): LoDashExplicitArrayWrapper<string>;
- }
-
- //_.mapKeys
- interface LoDashStatic {
- /**
- * The opposite of _.mapValues; this method creates an object with the same values as object and keys generated
- * by running each own enumerable property of object through iteratee.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param thisArg The this binding of iteratee.
- * @return Returns the new mapped object.
- */
- mapKeys<T, TKey>(
- object: List<T>,
- iteratee?: ListIterator<T, TKey>
- ): Dictionary<T>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<T, TKey>(
- object: Dictionary<T>,
- iteratee?: DictionaryIterator<T, TKey>
- ): Dictionary<T>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<T, TObject extends {}>(
- object: List<T>|Dictionary<T>,
- iteratee?: TObject
- ): Dictionary<T>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<T>(
- object: List<T>|Dictionary<T>,
- iteratee?: string
- ): Dictionary<T>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.mapKeys
- */
- mapKeys<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TObject extends {}>(
- iteratee?: TObject
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult, TKey>(
- iteratee?: ListIterator<TResult, TKey>|DictionaryIterator<TResult, TKey>
- ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult, TObject extends {}>(
- iteratee?: TObject
- ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult>(
- iteratee?: string
- ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.mapKeys
- */
- mapKeys<TKey>(
- iteratee?: ListIterator<T, TKey>
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TObject extends {}>(
- iteratee?: TObject
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<T>>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult, TKey>(
- iteratee?: ListIterator<TResult, TKey>|DictionaryIterator<TResult, TKey>
- ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult, TObject extends {}>(
- iteratee?: TObject
- ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapKeys
- */
- mapKeys<TResult>(
- iteratee?: string
- ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
- }
-
- //_.mapValues
- interface LoDashStatic {
- /**
- * Creates an object with the same keys as object and values generated by running each own
- * enumerable property of object through iteratee. The iteratee function is bound to thisArg
- * and invoked with three arguments: (value, key, object).
- *
- * If a property name is provided iteratee the created "_.property" style callback returns
- * the property value of the given element.
- *
- * If a value is also provided for thisArg the creted "_.matchesProperty" style callback returns
- * true for elements that have a matching property value, else false;.
- *
- * If an object is provided for iteratee the created "_.matches" style callback returns true
- * for elements that have the properties of the given object, else false.
- *
- * @param {Object} object The object to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
- * @param {Object} [thisArg] The `this` binding of `iteratee`.
- * @return {Object} Returns the new mapped object.
- */
- mapValues<T, TResult>(obj: Dictionary<T>, callback: ObjectIterator<T, TResult>): Dictionary<TResult>;
- mapValues<T>(obj: Dictionary<T>, where: Dictionary<T>): Dictionary<boolean>;
- mapValues<T, TMapped>(obj: T, pluck: string): TMapped;
- mapValues<T>(obj: T, callback: ObjectIterator<any, any>): T;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.mapValues
- * TValue is the type of the property values of T.
- * TResult is the type output by the ObjectIterator function
- */
- mapValues<TValue, TResult>(callback: ObjectIterator<TValue, TResult>): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapValues
- * TResult is the type of the property specified by pluck.
- * T should be a Dictionary<Dictionary<TResult>>
- */
- mapValues<TResult>(pluck: string): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapValues
- * TResult is the type of the properties of each object in the values of T
- * T should be a Dictionary<Dictionary<TResult>>
- */
- mapValues<TResult>(where: Dictionary<TResult>): LoDashImplicitArrayWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.mapValues
- * TValue is the type of the property values of T.
- * TResult is the type output by the ObjectIterator function
- */
- mapValues<TValue, TResult>(callback: ObjectIterator<TValue, TResult>): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapValues
- * TResult is the type of the property specified by pluck.
- * T should be a Dictionary<Dictionary<TResult>>
- */
- mapValues<TResult>(pluck: string): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.mapValues
- * TResult is the type of the properties of each object in the values of T
- * T should be a Dictionary<Dictionary<TResult>>
- */
- mapValues<TResult>(where: Dictionary<TResult>): LoDashExplicitObjectWrapper<boolean>;
- }
-
- //_.merge
- interface LoDashStatic {
- /**
- * Recursively merges own and inherited enumerable properties of source
- * objects into the destination object, skipping source properties that resolve
- * to `undefined`. Array and plain object properties are merged recursively.
- * Other objects and value types are overridden by assignment. Source objects
- * are applied from left to right. Subsequent sources overwrite property
- * assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var users = {
- * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
- * };
- *
- * var ages = {
- * 'data': [{ 'age': 36 }, { 'age': 40 }]
- * };
- *
- * _.merge(users, ages);
- * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
- */
- merge<TObject, TSource>(
- object: TObject,
- source: TSource
- ): TObject & TSource;
-
- /**
- * @see _.merge
- */
- merge<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see _.merge
- */
- merge<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see _.merge
- */
- merge<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.merge
- */
- merge<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.merge
- */
- merge<TSource>(
- source: TSource
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.merge
- */
- merge<TResult>(
- ...otherArgs: any[]
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.merge
- */
- merge<TSource>(
- source: TSource
- ): LoDashExplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.merge
- */
- merge<TSource1, TSource2, TSource3, TSource4>(
- ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.merge
- */
- merge<TResult>(
- ...otherArgs: any[]
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.mergeWith
- type MergeWithCustomizer = (value: any, srcValue: any, key?: string, object?: Object, source?: Object) => any;
-
- interface LoDashStatic {
- /**
- * This method is like `_.merge` except that it accepts `customizer` which
- * is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined` merging is handled by the
- * method instead. The `customizer` is invoked with seven arguments:
- * (objValue, srcValue, key, object, source, stack).
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} customizer The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * if (_.isArray(objValue)) {
- * return objValue.concat(srcValue);
- * }
- * }
- *
- * var object = {
- * 'fruits': ['apple'],
- * 'vegetables': ['beet']
- * };
- *
- * var other = {
- * 'fruits': ['banana'],
- * 'vegetables': ['carrot']
- * };
- *
- * _.merge(object, other, customizer);
- * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
- */
- mergeWith<TObject, TSource>(
- object: TObject,
- source: TSource,
- customizer: MergeWithCustomizer
- ): TObject & TSource;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TObject, TSource1, TSource2>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- customizer: MergeWithCustomizer
- ): TObject & TSource1 & TSource2;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TObject, TSource1, TSource2, TSource3>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: MergeWithCustomizer
- ): TObject & TSource1 & TSource2 & TSource3;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TObject, TSource1, TSource2, TSource3, TSource4>(
- object: TObject,
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: MergeWithCustomizer
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TResult>(
- object: any,
- ...otherArgs: any[]
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.mergeWith
- */
- mergeWith<TSource>(
- source: TSource,
- customizer: MergeWithCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource>;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TSource1, TSource2>(
- source1: TSource1,
- source2: TSource2,
- customizer: MergeWithCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TSource1, TSource2, TSource3>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- customizer: MergeWithCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TSource1, TSource2, TSource3, TSource4>(
- source1: TSource1,
- source2: TSource2,
- source3: TSource3,
- source4: TSource4,
- customizer: MergeWithCustomizer
- ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
-
- /**
- * @see _.mergeWith
- */
- mergeWith<TResult>(
- ...otherArgs: any[]
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- //_.omit
- interface LoDashStatic {
- /**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable properties of `object` that are not omitted.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property names to omit, specified
- * individually or in arrays..
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
-
- omit<TResult extends {}, T extends {}>(
- object: T,
- ...predicate: Array<Many<StringRepresentable>>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.omit
- */
- omit<TResult extends {}>(
- ...predicate: Array<Many<StringRepresentable>>
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.omit
- */
- omit<TResult extends {}>(
- ...predicate: Array<Many<StringRepresentable>>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.omitBy
- interface LoDashStatic {
- /**
- * The opposite of `_.pickBy`; this method creates an object composed of the
- * own and inherited enumerable properties of `object` that `predicate`
- * doesn't return truthy for.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omitBy(object, _.isNumber);
- * // => { 'b': '2' }
- */
- omitBy<TResult extends {}, T extends {}>(
- object: T,
- predicate: ObjectIterator<any, boolean>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.omitBy
- */
- omitBy<TResult extends {}>(
- predicate: ObjectIterator<any, boolean>
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.omitBy
- */
- omitBy<TResult extends {}>(
- predicate: ObjectIterator<any, boolean>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.pick
- interface LoDashStatic {
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property names to pick, specified
- * individually or in arrays.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- pick<TResult extends {}, T extends {}>(
- object: T,
- ...predicate: Array<Many<StringRepresentable>>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.pick
- */
- pick<TResult extends {}>(
- ...predicate: Array<Many<StringRepresentable>>
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.pick
- */
- pick<TResult extends {}>(
- ...predicate: Array<Many<StringRepresentable>>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.pickBy
- interface LoDashStatic {
- /**
- * Creates an object composed of the `object` properties `predicate` returns
- * truthy for. The predicate is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pickBy(object, _.isNumber);
- * // => { 'a': 1, 'c': 3 }
- */
- pickBy<TResult extends {}, T extends {}>(
- object: T,
- predicate?: ObjectIterator<any, boolean>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.pickBy
- */
- pickBy<TResult extends {}>(
- predicate?: ObjectIterator<any, boolean>
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.pickBy
- */
- pickBy<TResult extends {}>(
- predicate?: ObjectIterator<any, boolean>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.result
- interface LoDashStatic {
- /**
- * This method is like _.get except that if the resolved value is a function it’s invoked with the this binding
- * of its parent object and its result is returned.
- *
- * @param object The object to query.
- * @param path The path of the property to resolve.
- * @param defaultValue The value returned if the resolved value is undefined.
- * @return Returns the resolved value.
- */
- result<TObject, TResult>(
- object: TObject,
- path: Many<StringRepresentable>,
- defaultValue?: TResult|((...args: any[]) => TResult)
- ): TResult;
-
- /**
- * @see _.result
- */
- result<TResult>(
- object: any,
- path: Many<StringRepresentable>,
- defaultValue?: TResult|((...args: any[]) => TResult)
- ): TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.result
- */
- result<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult|((...args: any[]) => TResult)
- ): TResult;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.result
- */
- result<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult|((...args: any[]) => TResult)
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.result
- */
- result<TResult>(
- path: Many<StringRepresentable>,
- defaultValue?: TResult|((...args: any[]) => TResult)
- ): TResult;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.result
- */
- result<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.result
- */
- result<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.result
- */
- result<TResultWrapper>(
- path: Many<StringRepresentable>,
- defaultValue?: any
- ): TResultWrapper;
- }
-
- //_.set
- interface LoDashStatic {
- /**
- * Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for
- * missing index properties while objects are created for all other missing properties. Use _.setWith to
- * customize path creation.
- *
- * @param object The object to modify.
- * @param path The path of the property to set.
- * @param value The value to set.
- * @return Returns object.
- */
- set<TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- value: any
- ): TResult;
-
- /**
- * @see _.set
- */
- set<V, TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- value: V
- ): TResult;
-
- /**
- * @see _.set
- */
- set<O, V, TResult>(
- object: O,
- path: Many<StringRepresentable>,
- value: V
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.set
- */
- set<TResult>(
- path: Many<StringRepresentable>,
- value: any
- ): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.set
- */
- set<V, TResult>(
- path: Many<StringRepresentable>,
- value: V
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.set
- */
- set<TResult>(
- path: Many<StringRepresentable>,
- value: any
- ): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.set
- */
- set<V, TResult>(
- path: Many<StringRepresentable>,
- value: V
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.setWith
- type SetWithCustomizer<T> = (nsValue: any, key: string, nsObject: T) => any;
-
- interface LoDashStatic {
- /**
- * This method is like _.set except that it accepts customizer which is invoked to produce the objects of
- * path. If customizer returns undefined path creation is handled by the method instead. The customizer is
- * invoked with three arguments: (nsValue, key, nsObject).
- *
- * @param object The object to modify.
- * @param path The path of the property to set.
- * @param value The value to set.
- * @parem customizer The function to customize assigned values.
- * @return Returns object.
- */
- setWith<TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- value: any,
- customizer?: SetWithCustomizer<Object>
- ): TResult;
-
- /**
- * @see _.setWith
- */
- setWith<V, TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- value: V,
- customizer?: SetWithCustomizer<Object>
- ): TResult;
-
- /**
- * @see _.setWith
- */
- setWith<O, V, TResult>(
- object: O,
- path: Many<StringRepresentable>,
- value: V,
- customizer?: SetWithCustomizer<O>
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.setWith
- */
- setWith<TResult>(
- path: Many<StringRepresentable>,
- value: any,
- customizer?: SetWithCustomizer<T>
- ): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.setWith
- */
- setWith<V, TResult>(
- path: Many<StringRepresentable>,
- value: V,
- customizer?: SetWithCustomizer<T>
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.setWith
- */
- setWith<TResult>(
- path: Many<StringRepresentable>,
- value: any,
- customizer?: SetWithCustomizer<T>
- ): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.setWith
- */
- setWith<V, TResult>(
- path: Many<StringRepresentable>,
- value: V,
- customizer?: SetWithCustomizer<T>
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.toPairs
- interface LoDashStatic {
- /**
- * Creates an array of own enumerable key-value pairs for object.
- *
- * @param object The object to query.
- * @return Returns the new array of key-value pairs.
- */
- toPairs<T extends {}>(object?: T): [string, any][];
-
- toPairs<T extends {}, TResult>(object?: T): [string, TResult][];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.toPairs
- */
- toPairs<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.toPairs
- */
- toPairs<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>;
- }
-
- //_.toPairsIn
- interface LoDashStatic {
- /**
- * Creates an array of own and inherited enumerable key-value pairs for object.
- *
- * @param object The object to query.
- * @return Returns the new array of key-value pairs.
- */
- toPairsIn<T extends {}>(object?: T): [string, any][];
-
- toPairsIn<T extends {}, TResult>(object?: T): [string, TResult][];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.toPairsIn
- */
- toPairsIn<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.toPairsIn
- */
- toPairsIn<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>;
- }
-
- //_.transform
- interface LoDashStatic {
- /**
- * An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of
- * running each of its own enumerable properties through iteratee, with each invocation potentially mutating
- * the accumulator object. The iteratee is bound to thisArg and invoked with four arguments: (accumulator,
- * value, key, object). Iteratee functions may exit iteration early by explicitly returning false.
- *
- * @param object The object to iterate over.
- * @param iteratee The function invoked per iteration.
- * @param accumulator The custom accumulator value.
- * @param thisArg The this binding of iteratee.
- * @return Returns the accumulated value.
- */
- transform<T, TResult>(
- object: T[],
- iteratee?: MemoVoidArrayIterator<T, TResult[]>,
- accumulator?: TResult[]
- ): TResult[];
-
- /**
- * @see _.transform
- */
- transform<T, TResult>(
- object: T[],
- iteratee?: MemoVoidArrayIterator<T, Dictionary<TResult>>,
- accumulator?: Dictionary<TResult>
- ): Dictionary<TResult>;
-
- /**
- * @see _.transform
- */
- transform<T, TResult>(
- object: Dictionary<T>,
- iteratee?: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
- accumulator?: Dictionary<TResult>
- ): Dictionary<TResult>;
-
- /**
- * @see _.transform
- */
- transform<T, TResult>(
- object: Dictionary<T>,
- iteratee?: MemoVoidDictionaryIterator<T, TResult[]>,
- accumulator?: TResult[]
- ): TResult[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.transform
- */
- transform<TResult>(
- iteratee?: MemoVoidArrayIterator<T, TResult[]>,
- accumulator?: TResult[]
- ): LoDashImplicitArrayWrapper<TResult>;
-
- /**
- * @see _.transform
- */
- transform<TResult>(
- iteratee?: MemoVoidArrayIterator<T, Dictionary<TResult>>,
- accumulator?: Dictionary<TResult>
- ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.transform
- */
- transform<T, TResult>(
- iteratee?: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
- accumulator?: Dictionary<TResult>
- ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
-
- /**
- * @see _.transform
- */
- transform<T, TResult>(
- iteratee?: MemoVoidDictionaryIterator<T, TResult[]>,
- accumulator?: TResult[]
- ): LoDashImplicitArrayWrapper<TResult>;
- }
-
- //_.unset
- interface LoDashStatic {
- /**
- * Removes the property at path of object.
- *
- * Note: This method mutates object.
- *
- * @param object The object to modify.
- * @param path The path of the property to unset.
- * @return Returns true if the property is deleted, else false.
- */
- unset<T>(
- object: T,
- path: Many<StringRepresentable>
- ): boolean;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.unset
- */
- unset(path: Many<StringRepresentable>): LoDashImplicitWrapper<boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.unset
- */
- unset(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
- }
-
- //_.update
- interface LoDashStatic {
- /**
- * This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to
- * customize path creation. The updater is invoked with one argument: (value).
- *
- * @param object The object to modify.
- * @param path The path of the property to set.
- * @param updater The function to produce the updated value.
- * @return Returns object.
- */
- update<TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- updater: Function
- ): TResult;
-
- /**
- * @see _.update
- */
- update<U extends Function, TResult>(
- object: Object,
- path: Many<StringRepresentable>,
- updater: U
- ): TResult;
-
- /**
- * @see _.update
- */
- update<O extends {}, TResult>(
- object: O,
- path: Many<StringRepresentable>,
- updater: Function
- ): TResult;
-
- /**
- * @see _.update
- */
- update<O, U extends Function, TResult>(
- object: O,
- path: Many<StringRepresentable>,
- updater: U
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.update
- */
- update<TResult>(
- path: Many<StringRepresentable>,
- updater: any
- ): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.update
- */
- update<U extends Function, TResult>(
- path: Many<StringRepresentable>,
- updater: U
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.update
- */
- update<TResult>(
- path: Many<StringRepresentable>,
- updater: any
- ): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.update
- */
- update<U extends Function, TResult>(
- path: Many<StringRepresentable>,
- updater: U
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.values
- interface LoDashStatic {
- /**
- * Creates an array of the own enumerable property values of object.
- *
- * @param object The object to query.
- * @return Returns an array of property values.
- */
- values<T>(object?: Dictionary<T>|NumericDictionary<T>|List<T>): T[];
-
- /**
- * @see _.values
- */
- values<T>(object?: any): T[];
- }
-
- interface LoDashImplicitStringWrapper {
- /**
- * @see _.values
- */
- values(): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.values
- */
- values(): LoDashImplicitArrayWrapper<any>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.values
- */
- values(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.values
- */
- values<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.values
- */
- values<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.values
- */
- values(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.values
- */
- values<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- //_.valuesIn
- interface LoDashStatic {
- /**
- * Creates an array of the own and inherited enumerable property values of object.
- *
- * @param object The object to query.
- * @return Returns the array of property values.
- */
- valuesIn<T>(object?: Dictionary<T>): T[];
-
- /**
- * @see _.valuesIn
- */
- valuesIn<T>(object?: any): T[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.valuesIn
- */
- valuesIn<T>(): LoDashImplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.valuesIn
- */
- valuesIn<T>(): LoDashExplicitArrayWrapper<T>;
- }
-
- /**********
- * String *
- **********/
-
- //_.camelCase
- interface LoDashStatic {
- /**
- * Converts string to camel case.
- *
- * @param string The string to convert.
- * @return Returns the camel cased string.
- */
- camelCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.camelCase
- */
- camelCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.camelCase
- */
- camelCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.capitalize
- interface LoDashStatic {
- /**
- * Converts the first character of string to upper case and the remaining to lower case.
- *
- * @param string The string to capitalize.
- * @return Returns the capitalized string.
- */
- capitalize(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.capitalize
- */
- capitalize(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.capitalize
- */
- capitalize(): LoDashExplicitWrapper<string>;
- }
-
- //_.deburr
- interface LoDashStatic {
- /**
- * Deburrs string by converting latin-1 supplementary letters to basic latin letters and removing combining
- * diacritical marks.
- *
- * @param string The string to deburr.
- * @return Returns the deburred string.
- */
- deburr(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.deburr
- */
- deburr(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.deburr
- */
- deburr(): LoDashExplicitWrapper<string>;
- }
-
- //_.endsWith
- interface LoDashStatic {
- /**
- * Checks if string ends with the given target string.
- *
- * @param string The string to search.
- * @param target The string to search for.
- * @param position The position to search from.
- * @return Returns true if string ends with target, else false.
- */
- endsWith(
- string?: string,
- target?: string,
- position?: number
- ): boolean;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.endsWith
- */
- endsWith(
- target?: string,
- position?: number
- ): boolean;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.endsWith
- */
- endsWith(
- target?: string,
- position?: number
- ): LoDashExplicitWrapper<boolean>;
- }
-
- // _.escape
- interface LoDashStatic {
- /**
- * Converts the characters "&", "<", ">", '"', "'", and "`" in string to their corresponding HTML entities.
- *
- * Note: No other characters are escaped. To escape additional characters use a third-party library like he.
- *
- * hough the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML
- * and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens’s
- * article (under "semi-related fun fact") for more details.
- *
- * Backticks are escaped because in IE < 9, they can break out of attribute values or HTML comments. See #59,
- * #102, #108, and #133 of the HTML5 Security Cheatsheet for more details.
- *
- * When working with HTML you should always quote attribute values to reduce XSS vectors.
- *
- * @param string The string to escape.
- * @return Returns the escaped string.
- */
- escape(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.escape
- */
- escape(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.escape
- */
- escape(): LoDashExplicitWrapper<string>;
- }
-
- // _.escapeRegExp
- interface LoDashStatic {
- /**
- * Escapes the RegExp special characters "^", "$", "\", ".", "*", "+", "?", "(", ")", "[", "]",
- * "{", "}", and "|" in string.
- *
- * @param string The string to escape.
- * @return Returns the escaped string.
- */
- escapeRegExp(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.escapeRegExp
- */
- escapeRegExp(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.escapeRegExp
- */
- escapeRegExp(): LoDashExplicitWrapper<string>;
- }
-
- //_.kebabCase
- interface LoDashStatic {
- /**
- * Converts string to kebab case.
- *
- * @param string The string to convert.
- * @return Returns the kebab cased string.
- */
- kebabCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.kebabCase
- */
- kebabCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.kebabCase
- */
- kebabCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.lowerCase
- interface LoDashStatic {
- /**
- * Converts `string`, as space separated words, to lower case.
- *
- * @param string The string to convert.
- * @return Returns the lower cased string.
- */
- lowerCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.lowerCase
- */
- lowerCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.lowerCase
- */
- lowerCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.lowerFirst
- interface LoDashStatic {
- /**
- * Converts the first character of `string` to lower case.
- *
- * @param string The string to convert.
- * @return Returns the converted string.
- */
- lowerFirst(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.lowerFirst
- */
- lowerFirst(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.lowerFirst
- */
- lowerFirst(): LoDashExplicitWrapper<string>;
- }
-
- //_.pad
- interface LoDashStatic {
- /**
- * Pads string on the left and right sides if it’s shorter than length. Padding characters are truncated if
- * they can’t be evenly divided by length.
- *
- * @param string The string to pad.
- * @param length The padding length.
- * @param chars The string used as padding.
- * @return Returns the padded string.
- */
- pad(
- string?: string,
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.pad
- */
- pad(
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.pad
- */
- pad(
- length?: number,
- chars?: string
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.padEnd
- interface LoDashStatic {
- /**
- * Pads string on the right side if it’s shorter than length. Padding characters are truncated if they exceed
- * length.
- *
- * @param string The string to pad.
- * @param length The padding length.
- * @param chars The string used as padding.
- * @return Returns the padded string.
- */
- padEnd(
- string?: string,
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.padEnd
- */
- padEnd(
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.padEnd
- */
- padEnd(
- length?: number,
- chars?: string
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.padStart
- interface LoDashStatic {
- /**
- * Pads string on the left side if it’s shorter than length. Padding characters are truncated if they exceed
- * length.
- *
- * @param string The string to pad.
- * @param length The padding length.
- * @param chars The string used as padding.
- * @return Returns the padded string.
- */
- padStart(
- string?: string,
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.padStart
- */
- padStart(
- length?: number,
- chars?: string
- ): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.padStart
- */
- padStart(
- length?: number,
- chars?: string
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.parseInt
- interface LoDashStatic {
- /**
- * Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used
- * unless value is a hexadecimal, in which case a radix of 16 is used.
- *
- * Note: This method aligns with the ES5 implementation of parseInt.
- *
- * @param string The string to convert.
- * @param radix The radix to interpret value by.
- * @return Returns the converted integer.
- */
- parseInt(
- string: string,
- radix?: number
- ): number;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.parseInt
- */
- parseInt(radix?: number): number;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.parseInt
- */
- parseInt(radix?: number): LoDashExplicitWrapper<number>;
- }
-
- //_.repeat
- interface LoDashStatic {
- /**
- * Repeats the given string n times.
- *
- * @param string The string to repeat.
- * @param n The number of times to repeat the string.
- * @return Returns the repeated string.
- */
- repeat(
- string?: string,
- n?: number
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.repeat
- */
- repeat(n?: number): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.repeat
- */
- repeat(n?: number): LoDashExplicitWrapper<string>;
- }
-
- //_.replace
- interface LoDashStatic {
- /**
- * Replaces matches for pattern in string with replacement.
- *
- * Note: This method is based on String#replace.
- *
- * @param string
- * @param pattern
- * @param replacement
- * @return Returns the modified string.
- */
- replace(
- string: string,
- pattern: RegExp|string,
- replacement: Function|string
- ): string;
-
- /**
- * @see _.replace
- */
- replace(
- pattern?: RegExp|string,
- replacement?: Function|string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.replace
- */
- replace(
- pattern?: RegExp|string,
- replacement?: Function|string
- ): string;
-
- /**
- * @see _.replace
- */
- replace(
- replacement?: Function|string
- ): string;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.replace
- */
- replace(
- pattern?: RegExp|string,
- replacement?: Function|string
- ): string;
-
- /**
- * @see _.replace
- */
- replace(
- replacement?: Function|string
- ): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.replace
- */
- replace(
- pattern?: RegExp|string,
- replacement?: Function|string
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.replace
- */
- replace(
- replacement?: Function|string
- ): LoDashExplicitWrapper<string>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.replace
- */
- replace(
- pattern?: RegExp|string,
- replacement?: Function|string
- ): LoDashExplicitWrapper<string>;
-
- /**
- * @see _.replace
- */
- replace(
- replacement?: Function|string
- ): LoDashExplicitWrapper<string>;
- }
-
- //_.snakeCase
- interface LoDashStatic {
- /**
- * Converts string to snake case.
- *
- * @param string The string to convert.
- * @return Returns the snake cased string.
- */
- snakeCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.snakeCase
- */
- snakeCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.snakeCase
- */
- snakeCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.split
- interface LoDashStatic {
- /**
- * Splits string by separator.
- *
- * Note: This method is based on String#split.
- *
- * @param string
- * @param separator
- * @param limit
- * @return Returns the new array of string segments.
- */
- split(
- string: string,
- separator?: RegExp|string,
- limit?: number
- ): string[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.split
- */
- split(
- separator?: RegExp|string,
- limit?: number
- ): LoDashImplicitArrayWrapper<string>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.split
- */
- split(
- separator?: RegExp|string,
- limit?: number
- ): LoDashExplicitArrayWrapper<string>;
- }
-
- //_.startCase
- interface LoDashStatic {
- /**
- * Converts string to start case.
- *
- * @param string The string to convert.
- * @return Returns the start cased string.
- */
- startCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.startCase
- */
- startCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.startCase
- */
- startCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.startsWith
- interface LoDashStatic {
- /**
- * Checks if string starts with the given target string.
- *
- * @param string The string to search.
- * @param target The string to search for.
- * @param position The position to search from.
- * @return Returns true if string starts with target, else false.
- */
- startsWith(
- string?: string,
- target?: string,
- position?: number
- ): boolean;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.startsWith
- */
- startsWith(
- target?: string,
- position?: number
- ): boolean;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.startsWith
- */
- startsWith(
- target?: string,
- position?: number
- ): LoDashExplicitWrapper<boolean>;
- }
-
- //_.template
- interface TemplateOptions extends TemplateSettings {
- /**
- * The sourceURL of the template's compiled source.
- */
- sourceURL?: string;
- }
-
- interface TemplateExecutor {
- (data?: Object): string;
- source: string;
- }
-
- interface LoDashStatic {
- /**
- * Creates a compiled template function that can interpolate data properties in "interpolate" delimiters,
- * HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate"
- * delimiters. Data properties may be accessed as free variables in the template. If a setting object is
- * provided it takes precedence over _.templateSettings values.
- *
- * Note: In the development build _.template utilizes
- * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) for easier
- * debugging.
- *
- * For more information on precompiling templates see
- * [lodash's custom builds documentation](https://lodash.com/custom-builds).
- *
- * For more information on Chrome extension sandboxes see
- * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
- *
- * @param string The template string.
- * @param options The options object.
- * @param options.escape The HTML "escape" delimiter.
- * @param options.evaluate The "evaluate" delimiter.
- * @param options.imports An object to import into the template as free variables.
- * @param options.interpolate The "interpolate" delimiter.
- * @param options.sourceURL The sourceURL of the template's compiled source.
- * @param options.variable The data object variable name.
- * @return Returns the compiled template function.
- */
- template(
- string: string,
- options?: TemplateOptions
- ): TemplateExecutor;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.template
- */
- template(options?: TemplateOptions): TemplateExecutor;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.template
- */
- template(options?: TemplateOptions): LoDashExplicitObjectWrapper<TemplateExecutor>;
- }
-
- //_.toLower
- interface LoDashStatic {
- /**
- * Converts `string`, as a whole, to lower case.
- *
- * @param string The string to convert.
- * @return Returns the lower cased string.
- */
- toLower(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.toLower
- */
- toLower(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.toLower
- */
- toLower(): LoDashExplicitWrapper<string>;
- }
-
- //_.toUpper
- interface LoDashStatic {
- /**
- * Converts `string`, as a whole, to upper case.
- *
- * @param string The string to convert.
- * @return Returns the upper cased string.
- */
- toUpper(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.toUpper
- */
- toUpper(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.toUpper
- */
- toUpper(): LoDashExplicitWrapper<string>;
- }
-
- //_.trim
- interface LoDashStatic {
- /**
- * Removes leading and trailing whitespace or specified characters from string.
- *
- * @param string The string to trim.
- * @param chars The characters to trim.
- * @return Returns the trimmed string.
- */
- trim(
- string?: string,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.trim
- */
- trim(chars?: string): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.trim
- */
- trim(chars?: string): LoDashExplicitWrapper<string>;
- }
-
- //_.trimEnd
- interface LoDashStatic {
- /**
- * Removes trailing whitespace or specified characters from string.
- *
- * @param string The string to trim.
- * @param chars The characters to trim.
- * @return Returns the trimmed string.
- */
- trimEnd(
- string?: string,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.trimEnd
- */
- trimEnd(chars?: string): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.trimEnd
- */
- trimEnd(chars?: string): LoDashExplicitWrapper<string>;
- }
-
- //_.trimStart
- interface LoDashStatic {
- /**
- * Removes leading whitespace or specified characters from string.
- *
- * @param string The string to trim.
- * @param chars The characters to trim.
- * @return Returns the trimmed string.
- */
- trimStart(
- string?: string,
- chars?: string
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.trimStart
- */
- trimStart(chars?: string): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.trimStart
- */
- trimStart(chars?: string): LoDashExplicitWrapper<string>;
- }
-
- //_.truncate
- interface TruncateOptions {
- /** The maximum string length. */
- length?: number;
- /** The string to indicate text is omitted. */
- omission?: string;
- /** The separator pattern to truncate to. */
- separator?: string|RegExp;
- }
-
- interface LoDashStatic {
- /**
- * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
- * string are replaced with the omission string which defaults to "…".
- *
- * @param string The string to truncate.
- * @param options The options object or maximum string length.
- * @return Returns the truncated string.
- */
- truncate(
- string?: string,
- options?: TruncateOptions
- ): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.truncate
- */
- truncate(options?: TruncateOptions): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.truncate
- */
- truncate(options?: TruncateOptions): LoDashExplicitWrapper<string>;
- }
-
- //_.unescape
- interface LoDashStatic {
- /**
- * The inverse of _.escape; this method converts the HTML entities &amp;, &lt;, &gt;, &quot;, &#39;, and &#96;
- * in string to their corresponding characters.
- *
- * Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library
- * like he.
- *
- * @param string The string to unescape.
- * @return Returns the unescaped string.
- */
- unescape(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.unescape
- */
- unescape(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.unescape
- */
- unescape(): LoDashExplicitWrapper<string>;
- }
-
- //_.upperCase
- interface LoDashStatic {
- /**
- * Converts `string`, as space separated words, to upper case.
- *
- * @param string The string to convert.
- * @return Returns the upper cased string.
- */
- upperCase(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.upperCase
- */
- upperCase(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.upperCase
- */
- upperCase(): LoDashExplicitWrapper<string>;
- }
-
- //_.upperFirst
- interface LoDashStatic {
- /**
- * Converts the first character of `string` to upper case.
- *
- * @param string The string to convert.
- * @return Returns the converted string.
- */
- upperFirst(string?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.upperFirst
- */
- upperFirst(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.upperFirst
- */
- upperFirst(): LoDashExplicitWrapper<string>;
- }
-
- //_.words
- interface LoDashStatic {
- /**
- * Splits `string` into an array of its words.
- *
- * @param string The string to inspect.
- * @param pattern The pattern to match words.
- * @return Returns the words of `string`.
- */
- words(
- string?: string,
- pattern?: string|RegExp
- ): string[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.words
- */
- words(pattern?: string|RegExp): string[];
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.words
- */
- words(pattern?: string|RegExp): LoDashExplicitArrayWrapper<string>;
- }
-
- /***********
- * Utility *
- ***********/
-
- //_.attempt
- interface LoDashStatic {
- /**
- * Attempts to invoke func, returning either the result or the caught error object. Any additional arguments
- * are provided to func when it’s invoked.
- *
- * @param func The function to attempt.
- * @return Returns the func result or error object.
- */
- attempt<TResult>(func: (...args: any[]) => TResult, ...args: any[]): TResult|Error;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.attempt
- */
- attempt<TResult>(...args: any[]): TResult|Error;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.attempt
- */
- attempt<TResult>(...args: any[]): LoDashExplicitObjectWrapper<TResult|Error>;
- }
-
- //_.constant
- interface LoDashStatic {
- /**
- * Creates a function that returns value.
- *
- * @param value The value to return from the new function.
- * @return Returns the new function.
- */
- constant<T>(value: T): () => T;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.constant
- */
- constant<TResult>(): LoDashImplicitObjectWrapper<() => TResult>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.constant
- */
- constant<TResult>(): LoDashExplicitObjectWrapper<() => TResult>;
- }
-
- //_.defaultTo
- interface LoDashStatic {
- /**
- * Checks `value` to determine whether a default value should be returned in
- * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
- * or `undefined`.
- *
- * @param value The value to check.
- * @param defaultValue The default value.
- * @returns Returns the resolved value.
- */
- defaultTo<T>(value: T | null | undefined, defaultValue: T): T;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.defaultTo
- */
- defaultTo<TResult>(value: TResult): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.defaultTo
- */
- defaultTo<TResult>(value: TResult): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.identity
- interface LoDashStatic {
- /**
- * This method returns the first argument provided to it.
- *
- * @param value Any value.
- * @return Returns value.
- */
- identity<T>(value?: T): T;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): T;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): T[];
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): T;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): LoDashExplicitWrapper<T>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): LoDashExplicitArrayWrapper<T>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.identity
- */
- identity(): LoDashExplicitObjectWrapper<T>;
- }
-
- //_.iteratee
- interface LoDashStatic {
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name the created callback returns the
- * property value for a given element. If `func` is an object the created
- * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
- *
- * @static
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // create custom iteratee shorthands
- * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
- * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
- * return !p ? callback(func) : function(object) {
- * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
- * };
- * });
- *
- * _.filter(users, 'age > 36');
- * // => [{ 'user': 'fred', 'age': 40 }]
- */
- iteratee<TResult>(
- func: Function
- ): (...args: any[]) => TResult;
-
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(
- func: string
- ): (object: any) => TResult;
-
- /**
- * @see _.iteratee
- */
- iteratee(
- func: Object
- ): (object: any) => boolean;
-
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(): (value: TResult) => TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(): LoDashImplicitObjectWrapper<(object: any) => TResult>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.iteratee
- */
- iteratee(): LoDashImplicitObjectWrapper<(object: any) => boolean>;
-
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(): LoDashImplicitObjectWrapper<(...args: any[]) => TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(): LoDashExplicitObjectWrapper<(object: any) => TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.iteratee
- */
- iteratee(): LoDashExplicitObjectWrapper<(object: any) => boolean>;
-
- /**
- * @see _.iteratee
- */
- iteratee<TResult>(): LoDashExplicitObjectWrapper<(...args: any[]) => TResult>;
- }
-
- //_.matches
- interface LoDashStatic {
- /**
- * Creates a function that performs a deep comparison between a given object and source, returning true if the
- * given object has equivalent property values, else false.
- *
- * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
- * strings. Objects are compared by their own, not inherited, enumerable properties. For comparing a single own
- * or inherited property value see _.matchesProperty.
- *
- * @param source The object of property values to match.
- * @return Returns the new function.
- */
- matches<T>(source: T): (value: any) => boolean;
-
- /**
- * @see _.matches
- */
- matches<T, V>(source: T): (value: V) => boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.matches
- */
- matches<V>(): LoDashImplicitObjectWrapper<(value: V) => boolean>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.matches
- */
- matches<V>(): LoDashExplicitObjectWrapper<(value: V) => boolean>;
- }
-
- //_.matchesProperty
- interface LoDashStatic {
- /**
- * Creates a function that compares the property value of path on a given object to value.
- *
- * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
- * strings. Objects are compared by their own, not inherited, enumerable properties.
- *
- * @param path The path of the property to get.
- * @param srcValue The value to match.
- * @return Returns the new function.
- */
- matchesProperty<T>(
- path: Many<StringRepresentable>,
- srcValue: T
- ): (value: any) => boolean;
-
- /**
- * @see _.matchesProperty
- */
- matchesProperty<T, V>(
- path: Many<StringRepresentable>,
- srcValue: T
- ): (value: V) => boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.matchesProperty
- */
- matchesProperty<SrcValue>(
- srcValue: SrcValue
- ): LoDashImplicitObjectWrapper<(value: any) => boolean>;
-
- /**
- * @see _.matchesProperty
- */
- matchesProperty<SrcValue, Value>(
- srcValue: SrcValue
- ): LoDashImplicitObjectWrapper<(value: Value) => boolean>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.matchesProperty
- */
- matchesProperty<SrcValue>(
- srcValue: SrcValue
- ): LoDashExplicitObjectWrapper<(value: any) => boolean>;
-
- /**
- * @see _.matchesProperty
- */
- matchesProperty<SrcValue, Value>(
- srcValue: SrcValue
- ): LoDashExplicitObjectWrapper<(value: Value) => boolean>;
- }
-
- //_.method
- interface LoDashStatic {
- /**
- * Creates a function that invokes the method at path on a given object. Any additional arguments are provided
- * to the invoked method.
- *
- * @param path The path of the method to invoke.
- * @param args The arguments to invoke the method with.
- * @return Returns the new function.
- */
- method<TObject, TResult>(
- path: string|StringRepresentable[],
- ...args: any[]
- ): (object: TObject) => TResult;
-
- /**
- * @see _.method
- */
- method<TResult>(
- path: string|StringRepresentable[],
- ...args: any[]
- ): (object: any) => TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.method
- */
- method<TObject, TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>;
-
- /**
- * @see _.method
- */
- method<TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.method
- */
- method<TObject, TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>;
-
- /**
- * @see _.method
- */
- method<TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.method
- */
- method<TObject, TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>;
-
- /**
- * @see _.method
- */
- method<TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.method
- */
- method<TObject, TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>;
-
- /**
- * @see _.method
- */
- method<TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>;
- }
-
- //_.methodOf
- interface LoDashStatic {
- /**
- * The opposite of _.method; this method creates a function that invokes the method at a given path on object.
- * Any additional arguments are provided to the invoked method.
- *
- * @param object The object to query.
- * @param args The arguments to invoke the method with.
- * @return Returns the new function.
- */
- methodOf<TObject extends {}, TResult>(
- object: TObject,
- ...args: any[]
- ): (path: Many<StringRepresentable>) => TResult;
-
- /**
- * @see _.methodOf
- */
- methodOf<TResult>(
- object: {},
- ...args: any[]
- ): (path: Many<StringRepresentable>) => TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.methodOf
- */
- methodOf<TResult>(
- ...args: any[]
- ): LoDashImplicitObjectWrapper<(path: Many<StringRepresentable>) => TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.methodOf
- */
- methodOf<TResult>(
- ...args: any[]
- ): LoDashExplicitObjectWrapper<(path: Many<StringRepresentable>) => TResult>;
- }
-
- //_.mixin
- interface MixinOptions {
- chain?: boolean;
- }
-
- interface LoDashStatic {
- /**
- * Adds all own enumerable function properties of a source object to the destination object. If object is a
- * function then methods are added to its prototype as well.
- *
- * Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying
- * the original.
- *
- * @param object The destination object.
- * @param source The object of functions to add.
- * @param options The options object.
- * @param options.chain Specify whether the functions added are chainable.
- * @return Returns object.
- */
- mixin<TResult, TObject>(
- object: TObject,
- source: Dictionary<Function>,
- options?: MixinOptions
- ): TResult;
-
- /**
- * @see _.mixin
- */
- mixin<TResult>(
- source: Dictionary<Function>,
- options?: MixinOptions
- ): TResult;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.mixin
- */
- mixin<TResult>(
- source: Dictionary<Function>,
- options?: MixinOptions
- ): LoDashImplicitObjectWrapper<TResult>;
-
- /**
- * @see _.mixin
- */
- mixin<TResult>(
- options?: MixinOptions
- ): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.mixin
- */
- mixin<TResult>(
- source: Dictionary<Function>,
- options?: MixinOptions
- ): LoDashExplicitObjectWrapper<TResult>;
-
- /**
- * @see _.mixin
- */
- mixin<TResult>(
- options?: MixinOptions
- ): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.noConflict
- interface LoDashStatic {
- /**
- * Reverts the _ variable to its previous value and returns a reference to the lodash function.
- *
- * @return Returns the lodash function.
- */
- noConflict(): typeof _;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.noConflict
- */
- noConflict(): typeof _;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.noConflict
- */
- noConflict(): LoDashExplicitObjectWrapper<typeof _>;
- }
-
- //_.noop
- interface LoDashStatic {
- /**
- * A no-operation function that returns undefined regardless of the arguments it receives.
- *
- * @return undefined
- */
- noop(...args: any[]): void;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.noop
- */
- noop(...args: any[]): void;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.noop
- */
- noop(...args: any[]): _.LoDashExplicitWrapper<void>;
- }
-
- //_.nthArg
- interface LoDashStatic {
- /**
- * Creates a function that returns its nth argument.
- *
- * @param n The index of the argument to return.
- * @return Returns the new function.
- */
- nthArg<TResult extends Function>(n?: number): TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.nthArg
- */
- nthArg<TResult extends Function>(): LoDashImplicitObjectWrapper<TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.nthArg
- */
- nthArg<TResult extends Function>(): LoDashExplicitObjectWrapper<TResult>;
- }
-
- //_.over
- interface LoDashStatic {
- /**
- * Creates a function that invokes iteratees with the arguments provided to the created function and returns
- * their results.
- *
- * @param iteratees The iteratees to invoke.
- * @return Returns the new function.
- */
- over<TResult>(...iteratees: Array<Many<Function>>): (...args: any[]) => TResult[];
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.over
- */
- over<TResult>(...iteratees: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.over
- */
- over<TResult>(...iteratees: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.over
- */
- over<TResult>(...iteratees: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.over
- */
- over<TResult>(...iteratees: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>;
- }
-
- //_.overEvery
- interface LoDashStatic {
- /**
- * Creates a function that checks if all of the predicates return truthy when invoked with the arguments
- * provided to the created function.
- *
- * @param predicates The predicates to check.
- * @return Returns the new function.
- */
- overEvery(...predicates: Array<Many<Function>>): (...args: any[]) => boolean;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.overEvery
- */
- overEvery(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.overEvery
- */
- overEvery(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.overEvery
- */
- overEvery(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.overEvery
- */
- overEvery(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- //_.overSome
- interface LoDashStatic {
- /**
- * Creates a function that checks if any of the predicates return truthy when invoked with the arguments
- * provided to the created function.
- *
- * @param predicates The predicates to check.
- * @return Returns the new function.
- */
- overSome(...predicates: Array<Many<Function>>): (...args: any[]) => boolean;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.overSome
- */
- overSome(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.overSome
- */
- overSome(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.overSome
- */
- overSome(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.overSome
- */
- overSome(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
- }
-
- //_.property
- interface LoDashStatic {
- /**
- * Creates a function that returns the property value at path on a given object.
- *
- * @param path The path of the property to get.
- * @return Returns the new function.
- */
- property<TObj, TResult>(path: Many<StringRepresentable>): (obj: TObj) => TResult;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.property
- */
- property<TObj, TResult>(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>;
- }
-
- interface LoDashImplicitArrayWrapper<T> {
- /**
- * @see _.property
- */
- property<TObj, TResult>(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.property
- */
- property<TObj, TResult>(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>;
- }
-
- interface LoDashExplicitArrayWrapper<T> {
- /**
- * @see _.property
- */
- property<TObj, TResult>(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>;
- }
-
- //_.propertyOf
- interface LoDashStatic {
- /**
- * The opposite of _.property; this method creates a function that returns the property value at a given path
- * on object.
- *
- * @param object The object to query.
- * @return Returns the new function.
- */
- propertyOf<T extends {}>(object: T): (path: Many<string>) => any;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.propertyOf
- */
- propertyOf(): LoDashImplicitObjectWrapper<(path: Many<string>) => any>;
- }
-
- interface LoDashExplicitObjectWrapper<T> {
- /**
- * @see _.propertyOf
- */
- propertyOf(): LoDashExplicitObjectWrapper<(path: Many<string>) => any>;
- }
-
- //_.range
- interface LoDashStatic {
- /**
- * Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end.
- * If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length
- * range is created unless a negative step is specified.
- *
- * @param start The start of the range.
- * @param end The end of the range.
- * @param step The value to increment or decrement by.
- * @return Returns a new range array.
- */
- range(
- start: number,
- end: number,
- step?: number
- ): number[];
-
- /**
- * @see _.range
- */
- range(
- end: number,
- step?: number
- ): number[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.range
- */
- range(
- end?: number,
- step?: number
- ): LoDashImplicitArrayWrapper<number>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.range
- */
- range(
- end?: number,
- step?: number
- ): LoDashExplicitArrayWrapper<number>;
- }
-
- //_.rangeRight
- interface LoDashStatic {
- /**
- * This method is like `_.range` except that it populates values in
- * descending order.
- *
- * @static
- * @memberOf _
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the new array of numbers.
- * @example
- *
- * _.rangeRight(4);
- * // => [3, 2, 1, 0]
- *
- * _.rangeRight(-4);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 5);
- * // => [4, 3, 2, 1]
- *
- * _.rangeRight(0, 20, 5);
- * // => [15, 10, 5, 0]
- *
- * _.rangeRight(0, -4, -1);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.rangeRight(0);
- * // => []
- */
- rangeRight(
- start: number,
- end: number,
- step?: number
- ): number[];
-
- /**
- * @see _.rangeRight
- */
- rangeRight(
- end: number,
- step?: number
- ): number[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.rangeRight
- */
- rangeRight(
- end?: number,
- step?: number
- ): LoDashImplicitArrayWrapper<number>;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.rangeRight
- */
- rangeRight(
- end?: number,
- step?: number
- ): LoDashExplicitArrayWrapper<number>;
- }
-
- //_.runInContext
- interface LoDashStatic {
- /**
- * Create a new pristine lodash function using the given context object.
- *
- * @param context The context object.
- * @return Returns a new lodash function.
- */
- runInContext(context?: Object): typeof _;
- }
-
- interface LoDashImplicitObjectWrapper<T> {
- /**
- * @see _.runInContext
- */
- runInContext(): typeof _;
- }
-
- // _.stubArray
- interface LoDashStatic {
- /**
- * This method returns a new empty array.
- *
- * @returns Returns the new empty array.
- */
- stubArray(): any[];
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubArray
- */
- stubArray(): any[];
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubArray
- */
- stubArray(): _.LoDashExplicitArrayWrapper<any>;
- }
-
- // _.stubFalse
- interface LoDashStatic {
- /**
- * This method returns `false`.
- *
- * @returns Returns `false`.
- */
- stubFalse(): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubFalse
- */
- stubFalse(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubFalse
- */
- stubFalse(): _.LoDashExplicitWrapper<boolean>;
- }
-
- interface LoDashStatic {
- /**
- * This method returns a new empty object.
- *
- * @returns Returns the new empty object.
- */
- stubObject(): Object;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubObject
- */
- stubObject(): Object;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubObject
- */
- stubObject(): _.LoDashExplicitObjectWrapper<Object>;
- }
-
- interface LoDashStatic {
- /**
- * This method returns an empty string.
- *
- * @returns Returns the empty string.
- */
- stubString(): string;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubString
- */
- stubString(): string;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubString
- */
- stubString(): _.LoDashExplicitWrapper<string>;
- }
-
- interface LoDashStatic {
- /**
- * This method returns `true`.
- *
- * @returns Returns `true`.
- */
- stubTrue(): boolean;
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubTrue
- */
- stubTrue(): boolean;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.stubTrue
- */
- stubTrue(): _.LoDashExplicitWrapper<boolean>;
- }
-
- //_.times
- interface LoDashStatic {
- /**
- * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee
- * is invoked with one argument; (index).
- *
- * @param n The number of times to invoke iteratee.
- * @param iteratee The function invoked per iteration.
- * @return Returns the array of results.
- */
- times<TResult>(
- n: number,
- iteratee: (num: number) => TResult
- ): TResult[];
-
- /**
- * @see _.times
- */
- times(n: number): number[];
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.times
- */
- times<TResult>(
- iteratee: (num: number) => TResult
- ): TResult[];
-
- /**
- * @see _.times
- */
- times(): number[];
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.times
- */
- times<TResult>(
- iteratee: (num: number) => TResult
- ): LoDashExplicitArrayWrapper<TResult>;
-
- /**
- * @see _.times
- */
- times(): LoDashExplicitArrayWrapper<number>;
- }
-
- //_.toPath
- interface LoDashStatic {
- /**
- * Converts `value` to a property path array.
- *
- * @static
- * @memberOf _
- * @category Util
- * @param {*} value The value to convert.
- * @returns {Array} Returns the new property path array.
- * @example
- *
- * _.toPath('a.b.c');
- * // => ['a', 'b', 'c']
- *
- * _.toPath('a[0].b.c');
- * // => ['a', '0', 'b', 'c']
- *
- * var path = ['a', 'b', 'c'],
- * newPath = _.toPath(path);
- *
- * console.log(newPath);
- * // => ['a', 'b', 'c']
- *
- * console.log(path === newPath);
- * // => false
- */
- toPath(value: any): string[];
- }
-
- interface LoDashImplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toPath
- */
- toPath(): LoDashImplicitWrapper<string[]>;
- }
-
- interface LoDashExplicitWrapperBase<T, TWrapper> {
- /**
- * @see _.toPath
- */
- toPath(): LoDashExplicitWrapper<string[]>;
- }
-
- //_.uniqueId
- interface LoDashStatic {
- /**
- * Generates a unique ID. If prefix is provided the ID is appended to it.
- *
- * @param prefix The value to prefix the ID with.
- * @return Returns the unique ID.
- */
- uniqueId(prefix?: string): string;
- }
-
- interface LoDashImplicitWrapper<T> {
- /**
- * @see _.uniqueId
- */
- uniqueId(): string;
- }
-
- interface LoDashExplicitWrapper<T> {
- /**
- * @see _.uniqueId
- */
- uniqueId(): LoDashExplicitWrapper<string>;
- }
-
- type ListIterator<T, TResult> = (value: T, index: number, collection: List<T>) => TResult;
-
- type DictionaryIterator<T, TResult> = (value: T, key: string, collection: Dictionary<T>) => TResult;
-
- type NumericDictionaryIterator<T, TResult> = (value: T, key: number, collection: Dictionary<T>) => TResult;
-
- type ObjectIterator<T, TResult> = (element: T, key: string, collection: any) => TResult;
-
- type StringIterator<TResult> = (char: string, index: number, string: string) => TResult;
-
- type MemoVoidIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => void;
-
- type MemoIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => TResult;
-
- type MemoVoidArrayIterator<T, TResult> = (acc: TResult, curr: T, index: number, arr: T[]) => void;
- type MemoVoidDictionaryIterator<T, TResult> = (acc: TResult, curr: T, key: string, dict: Dictionary<T>) => void;
-
- // Common interface between Arrays and jQuery objects
- interface List<T> {
- [index: number]: T;
- length: number;
- }
-
- interface Dictionary<T> {
- [index: string]: T;
- }
-
- interface NumericDictionary<T> {
- [index: number]: T;
- }
-
- interface StringRepresentable {
- toString(): string;
- }
-
- interface Cancelable {
- cancel(): void;
- flush(): void;
- }
-}
-
-// Backward compatibility with --target es5
-declare global {
- interface Set<T> { }
- interface Map<K, V> { }
- interface WeakSet<T> { }
- interface WeakMap<K extends object, V> { }
-}
+// Type definitions for Lo-Dash 4.14
+// Project: http://lodash.com/
+// Definitions by: Brian Zengel <https://github.com/bczengel>,
+// Ilya Mochalov <https://github.com/chrootsu>,
+// Stepan Mikhaylyuk <https://github.com/stepancar>,
+// Eric L Anderson <https://github.com/ericanderson>,
+// AJ Richardson <https://github.com/aj-r>,
+// Junyoung Clare Jang <https://github.com/ailrun>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+/**
+### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog)
+
+#### TODO:
+removed:
+- [x] Removed _.support
+- [x] Removed _.findWhere in favor of _.find with iteratee shorthand
+- [x] Removed _.where in favor of _.filter with iteratee shorthand
+- [x] Removed _.pluck in favor of _.map with iteratee shorthand
+
+renamed:
+- [x] Renamed _.first to _.head
+- [x] Renamed _.indexBy to _.keyBy
+- [x] Renamed _.invoke to _.invokeMap
+- [x] Renamed _.overArgs to _.overArgs
+- [x] Renamed _.padLeft & _.padRight to _.padStart & _.padEnd
+- [x] Renamed _.pairs to _.toPairs
+- [x] Renamed _.rest to _.tail
+- [x] Renamed _.restParam to _.rest
+- [x] Renamed _.sortByOrder to _.orderBy
+- [x] Renamed _.trimLeft & _.trimRight to _.trimStart & _.trimEnd
+- [x] Renamed _.trunc to _.truncate
+
+split:
+- [x] Split _.indexOf & _.lastIndexOf into _.sortedIndexOf & _.sortedLastIndexOf
+- [x] Split _.max & _.min into _.maxBy & _.minBy
+- [x] Split _.omit & _.pick into _.omitBy & _.pickBy
+- [x] Split _.sample into _.sampleSize
+- [x] Split _.sortedIndex into _.sortedIndexBy
+- [x] Split _.sortedLastIndex into _.sortedLastIndexBy
+- [x] Split _.uniq into _.sortedUniq, _.sortedUniqBy, & _.uniqBy
+
+changes:
+- [x] Absorbed _.sortByAll into _.sortBy
+- [x] Changed the category of _.at to “Object”
+- [x] Changed the category of _.bindAll to “Utility”
+- [x] Made _.capitalize uppercase the first character & lowercase the rest
+- [x] Made _.functions return only own method names
+
+added 23 array methods:
+- [x] _.concat
+- [x] _.differenceBy
+- [x] _.differenceWith
+- [x] _.flatMap
+- [x] _.fromPairs
+- [x] _.intersectionBy
+- [x] _.intersectionWith
+- [x] _.join
+- [x] _.pullAll
+- [x] _.pullAllBy
+- [x] _.reverse
+- [x] _.sortedIndexBy
+- [x] _.sortedIndexOf
+- [x] _.sortedLastIndexBy
+- [x] _.sortedLastIndexOf
+- [x] _.sortedUniq
+- [x] _.sortedUniqBy
+- [x] _.unionBy
+- [x] _.unionWith
+- [x] _.uniqBy
+- [x] _.uniqWith
+- [x] _.xorBy
+- [x] _.xorWith
+
+added 20 lang methods:
+- [x] _.cloneDeepWith
+- [x] _.cloneWith
+- [x] _.eq
+- [x] _.isArrayLike
+- [x] _.isArrayLikeObject
+- [x] _.isEqualWith
+- [x] _.isInteger
+- [x] _.isLength
+- [x] _.isMatchWith
+- [x] _.isNil
+- [x] _.isObjectLike
+- [x] _.isSafeInteger
+- [x] _.isSymbol
+- [x] _.toInteger
+- [x] _.toLength
+- [x] _.toNumber
+- [x] _.toSafeInteger
+- [x] _.toString
+- [X] _.conforms
+- [X] _.conformsTo
+
+added 13 object methods:
+- [x] _.assignIn
+- [x] _.assignInWith
+- [x] _.assignWith
+- [x] _.functionsIn
+- [x] _.hasIn
+- [x] _.mergeWith
+- [x] _.omitBy
+- [x] _.pickBy
+
+added 8 string methods:
+- [x] _.lowerCase
+- [x] _.lowerFirst
+- [x] _.upperCase
+- [x] _.upperFirst
+- [x] _.toLower
+- [x] _.toUpper
+
+added 8 utility methods:
+- [x] _.toPath
+
+added 4 math methods:
+- [x] _.maxBy
+- [x] _.mean
+- [x] _.minBy
+- [x] _.sumBy
+
+added 2 function methods:
+- [x] _.flip
+- [x] _.unary
+
+added 2 number methods:
+- [x] _.clamp
+- [x] _.subtract
+
+added collection method:
+- [x] _.sampleSize
+
+Added 3 aliases
+
+- [x] _.first as an alias of _.head
+
+Removed 17 aliases
+- [x] Removed aliase _.all
+- [x] Removed aliase _.any
+- [x] Removed aliase _.backflow
+- [x] Removed aliase _.callback
+- [x] Removed aliase _.collect
+- [x] Removed aliase _.compose
+- [x] Removed aliase _.contains
+- [x] Removed aliase _.detect
+- [x] Removed aliase _.foldl
+- [x] Removed aliase _.foldr
+- [x] Removed aliase _.include
+- [x] Removed aliase _.inject
+- [x] Removed aliase _.methods
+- [x] Removed aliase _.object
+- [x] Removed aliase _.run
+- [x] Removed aliase _.select
+- [x] Removed aliase _.unique
+
+Other changes
+- [x] Added support for array buffers to _.isEqual
+- [x] Added support for converting iterators to _.toArray
+- [x] Added support for deep paths to _.zipObject
+- [x] Changed UMD to export to window or self when available regardless of other exports
+- [x] Ensured debounce cancel clears args & thisArg references
+- [x] Ensured _.add, _.subtract, & _.sum don’t skip NaN values
+- [x] Ensured _.clone treats generators like functions
+- [x] Ensured _.clone produces clones with the source’s [[Prototype]]
+- [x] Ensured _.defaults assigns properties that shadow Object.prototype
+- [x] Ensured _.defaultsDeep doesn’t merge a string into an array
+- [x] Ensured _.defaultsDeep & _.merge don’t modify sources
+- [x] Ensured _.defaultsDeep works with circular references
+- [x] Ensured _.keys skips “length” on strict mode arguments objects in Safari 9
+- [x] Ensured _.merge doesn’t convert strings to arrays
+- [x] Ensured _.merge merges plain-objects onto non plain-objects
+- [x] Ensured _#plant resets iterator data of cloned sequences
+- [x] Ensured _.random swaps min & max if min is greater than max
+- [x] Ensured _.range preserves the sign of start of -0
+- [x] Ensured _.reduce & _.reduceRight use getIteratee in their array branch
+- [x] Fixed rounding issue with the precision param of _.floor
+- [x] Added flush method to debounced & throttled functions
+
+** LATER **
+Misc:
+- [ ] Made _.forEach, _.forIn, _.forOwn, & _.times implicitly end a chain sequence
+- [ ] Removed thisArg params from most methods
+- [ ] Made “By” methods provide a single param to iteratees
+- [ ] Made _.words chainable by default
+- [ ] Removed isDeep params from _.clone & _.flatten
+- [ ] Removed _.bindAll support for binding all methods when no names are provided
+- [ ] Removed func-first param signature from _.before & _.after
+- [ ] _.extend as an alias of _.assignIn
+- [ ] _.extendWith as an alias of _.assignInWith
+- [ ] Added clear method to _.memoize.Cache
+- [ ] Added support for ES6 maps, sets, & symbols to _.clone, _.isEqual, & _.toArray
+- [x] Enabled _.flow & _.flowRight to accept an array of functions
+- [ ] Ensured “Collection” methods treat functions as objects
+- [ ] Ensured _.assign, _.defaults, & _.merge coerce object values to objects
+- [ ] Ensured _.bindKey bound functions call object[key] when called with the new operator
+- [ ] Ensured _.isFunction returns true for generator functions
+- [ ] Ensured _.merge assigns typed arrays directly
+- [ ] Made _(...) an iterator & iterable
+- [ ] Made _.drop, _.take, & right forms coerce n of undefined to 0
+
+Methods:
+- [ ] _.concat
+- [ ] _.differenceBy
+- [ ] _.differenceWith
+- [ ] _.flatMap
+- [ ] _.fromPairs
+- [ ] _.intersectionBy
+- [ ] _.intersectionWith
+- [ ] _.join
+- [ ] _.pullAll
+- [ ] _.pullAllBy
+- [ ] _.reverse
+- [ ] _.sortedLastIndexOf
+- [ ] _.unionBy
+- [ ] _.unionWith
+- [ ] _.uniqWith
+- [ ] _.xorBy
+- [ ] _.xorWith
+- [ ] _.toString
+
+- [ ] _.invoke
+- [ ] _.setWith
+- [ ] _.toPairs
+- [ ] _.toPairsIn
+- [ ] _.unset
+
+- [ ] _.replace
+- [ ] _.split
+
+- [ ] _.cond
+- [ ] _.nthArg
+- [ ] _.over
+- [ ] _.overEvery
+- [ ] _.overSome
+- [ ] _.rangeRight
+
+- [ ] _.next
+*/
+
+export = _;
+export as namespace _;
+
+declare var _: _.LoDashStatic;
+
+type PartialObject<T> = Partial<T>;
+
+declare namespace _ {
+ type Many<T> = T | T[];
+
+ interface LoDashStatic {
+ /**
+ * Creates a lodash object which wraps the given value to enable intuitive method chaining.
+ *
+ * In addition to Lo-Dash methods, wrappers also have the following Array methods:
+ * concat, join, pop, push, reverse, shift, slice, sort, splice, and unshift
+ *
+ * Chaining is supported in custom builds as long as the value method is implicitly or
+ * explicitly included in the build.
+ *
+ * The chainable wrapper functions are:
+ * after, assign, bind, bindAll, bindKey, chain, chunk, compact, compose, concat, countBy,
+ * createCallback, curry, debounce, defaults, defer, delay, difference, filter, flatten,
+ * forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy,
+ * keyBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min,
+ * object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject,
+ * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times,
+ * toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip
+ *
+ * The non-chainable wrapper functions are:
+ * clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast,
+ * findLastIndex, findLastKey, has, identity, indexOf, isArguments, isArray, isBoolean,
+ * isDate, isElement, isEmpty, isEqual, isFinite, isFunction, isNaN, isNull, isNumber,
+ * isObject, isPlainObject, isRegExp, isString, isUndefined, join, lastIndexOf, mixin,
+ * noConflict, parseInt, pop, random, reduce, reduceRight, result, shift, size, some,
+ * sortedIndex, runInContext, template, unescape, uniqueId, and value
+ *
+ * The wrapper functions first and last return wrapped values when n is provided, otherwise
+ * they return unwrapped values.
+ *
+ * Explicit chaining can be enabled by using the _.chain method.
+ **/
+ (value: number): LoDashImplicitWrapper<number>;
+ (value: string): LoDashImplicitStringWrapper;
+ (value: boolean): LoDashImplicitWrapper<boolean>;
+ (value: null | undefined): LoDashImplicitWrapper<null | undefined>;
+ (value: number[]): LoDashImplicitNumberArrayWrapper;
+ <T>(value: T[]): LoDashImplicitArrayWrapper<T>;
+ <T>(value: T[] | null | undefined): LoDashImplicitNillableArrayWrapper<T>;
+ <T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
+ <T extends {}>(value: T | null | undefined): LoDashImplicitNillableObjectWrapper<T>;
+ (value: any): LoDashImplicitWrapper<any>;
+
+ /**
+ * The semantic version number.
+ **/
+ VERSION: string;
+
+ /**
+ * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
+ * (ERB). Change the following template settings to use alternative delimiters.
+ **/
+ templateSettings: TemplateSettings;
+ }
+
+ /**
+ * By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
+ * (ERB). Change the following template settings to use alternative delimiters.
+ **/
+ interface TemplateSettings {
+ /**
+ * The "escape" delimiter.
+ **/
+ escape?: RegExp;
+
+ /**
+ * The "evaluate" delimiter.
+ **/
+ evaluate?: RegExp;
+
+ /**
+ * An object to import into the template as local variables.
+ **/
+ imports?: Dictionary<any>;
+
+ /**
+ * The "interpolate" delimiter.
+ **/
+ interpolate?: RegExp;
+
+ /**
+ * Used to reference the data object in the template text.
+ **/
+ variable?: string;
+ }
+
+ /**
+ * Creates a cache object to store key/value pairs.
+ */
+ interface MapCache {
+ /**
+ * Removes `key` and its value from the cache.
+ * @param key The key of the value to remove.
+ * @return Returns `true` if the entry was removed successfully, else `false`.
+ */
+ delete(key: string): boolean;
+
+ /**
+ * Gets the cached value for `key`.
+ * @param key The key of the value to get.
+ * @return Returns the cached value.
+ */
+ get(key: string): any;
+
+ /**
+ * Checks if a cached value for `key` exists.
+ * @param key The key of the entry to check.
+ * @return Returns `true` if an entry for `key` exists, else `false`.
+ */
+ has(key: string): boolean;
+
+ /**
+ * Sets `value` to `key` of the cache.
+ * @param key The key of the value to cache.
+ * @param value The value to cache.
+ * @return Returns the cache object.
+ */
+ set(key: string, value: any): _.Dictionary<any>;
+ }
+ interface MapCacheConstructor {
+ new (): MapCache;
+ }
+
+ interface LoDashWrapperBase<T, TWrapper> { }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { }
+
+ interface LoDashImplicitWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitWrapper<T>> { }
+
+ interface LoDashExplicitWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitWrapper<T>> { }
+
+ interface LoDashImplicitStringWrapper extends LoDashImplicitWrapper<string> { }
+
+ interface LoDashExplicitStringWrapper extends LoDashExplicitWrapper<string> { }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> extends LoDashImplicitWrapperBase<TObject, TWrapper> { }
+
+ interface LoDashImplicitObjectWrapper<T> extends LoDashImplicitObjectWrapperBase<T, T, LoDashImplicitObjectWrapper<T>> { }
+
+ interface LoDashImplicitNillableObjectWrapper<T> extends LoDashImplicitObjectWrapperBase<T, T | null | undefined, LoDashImplicitNillableObjectWrapper<T>> { }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> extends LoDashExplicitWrapperBase<TObject, TWrapper> { }
+
+ interface LoDashExplicitObjectWrapper<T> extends LoDashExplicitObjectWrapperBase<T, T, LoDashExplicitObjectWrapper<T>> { }
+
+ interface LoDashExplicitNillableObjectWrapper<T> extends LoDashExplicitObjectWrapperBase<T, T | null | undefined, LoDashExplicitNillableObjectWrapper<T>> { }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> extends LoDashImplicitWrapperBase<TArray, TWrapper> {
+ pop(): T | undefined;
+ push(...items: T[]): TWrapper;
+ shift(): T | undefined;
+ sort(compareFn?: (a: T, b: T) => number): TWrapper;
+ splice(start: number): TWrapper;
+ splice(start: number, deleteCount: number, ...items: T[]): TWrapper;
+ unshift(...items: T[]): TWrapper;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> extends LoDashImplicitArrayWrapperBase<T, T[], LoDashImplicitArrayWrapper<T>> { }
+
+ interface LoDashImplicitNillableArrayWrapper<T> extends LoDashImplicitArrayWrapperBase<T, T[] | null | undefined, LoDashImplicitNillableArrayWrapper<T>> { }
+
+ interface LoDashImplicitNumberArrayWrapperBase<TArray extends number[] | null | undefined, TWrapper> extends LoDashImplicitArrayWrapperBase<number, TArray, TWrapper> { }
+
+ interface LoDashImplicitNumberArrayWrapper extends LoDashImplicitArrayWrapper<number> { }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> extends LoDashExplicitWrapperBase<TArray, TWrapper> {
+ pop(): LoDashExplicitObjectWrapper<T | undefined>;
+ push(...items: T[]): TWrapper;
+ shift(): LoDashExplicitObjectWrapper<T | undefined>;
+ sort(compareFn?: (a: T, b: T) => number): TWrapper;
+ splice(start: number): TWrapper;
+ splice(start: number, deleteCount: number, ...items: T[]): TWrapper;
+ unshift(...items: T[]): TWrapper;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> extends LoDashExplicitArrayWrapperBase<T, T[], LoDashExplicitArrayWrapper<T>> { }
+
+ interface LoDashExplicitNillableArrayWrapper<T> extends LoDashExplicitArrayWrapperBase<T, T[] | null | undefined, LoDashExplicitNillableArrayWrapper<T>> { }
+
+ interface LoDashExplicitNumberArrayWrapper extends LoDashExplicitArrayWrapper<number> { }
+
+ /*********
+ * Array *
+ *********/
+
+ //_.chunk
+ interface LoDashStatic {
+ /**
+ * Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the
+ * final chunk will be the remaining elements.
+ *
+ * @param array The array to process.
+ * @param size The length of each chunk.
+ * @return Returns the new array containing chunks.
+ */
+ chunk<T>(
+ array: List<T> | null | undefined,
+ size?: number
+ ): T[][];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.chunk
+ */
+ chunk(size?: number): LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.chunk
+ */
+ chunk<TResult>(size?: number): LoDashImplicitArrayWrapper<TResult[]>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.chunk
+ */
+ chunk(size?: number): LoDashExplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.chunk
+ */
+ chunk<TResult>(size?: number): LoDashExplicitArrayWrapper<TResult[]>;
+ }
+
+ //_.compact
+ interface LoDashStatic {
+ /**
+ * Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are
+ * falsey.
+ *
+ * @param array The array to compact.
+ * @return (Array) Returns the new array of filtered values.
+ */
+ compact<T>(array?: List<T | null | undefined | false | "" | 0> | null | undefined): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.compact
+ */
+ compact(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.compact
+ */
+ compact<TResult>(): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.compact
+ */
+ compact(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.compact
+ */
+ compact<TResult>(): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.concat DUMMY
+ interface LoDashStatic {
+ /**
+ * Creates a new array concatenating `array` with any additional arrays
+ * and/or values.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to concatenate.
+ * @param {...*} [values] The values to concatenate.
+ * @returns {Array} Returns the new concatenated array.
+ * @example
+ *
+ * var array = [1];
+ * var other = _.concat(array, 2, [3], [[4]]);
+ *
+ * console.log(other);
+ * // => [1, 2, 3, [4]]
+ *
+ * console.log(array);
+ * // => [1]
+ */
+ concat<T>(array: List<T>, ...values: Array<T|List<T>>): T[];
+ }
+
+ //_.difference
+ interface LoDashStatic {
+ /**
+ * Creates an array of unique array values not included in the other provided arrays using SameValueZero for
+ * equality comparisons.
+ *
+ * @param array The array to inspect.
+ * @param values The arrays of values to exclude.
+ * @return Returns the new array of filtered values.
+ */
+ difference<T>(
+ array: List<T> | null | undefined,
+ ...values: Array<List<T>>
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.difference
+ */
+ difference(...values: Array<List<T>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.difference
+ */
+ difference<TValue>(...values: Array<List<TValue>>): LoDashImplicitArrayWrapper<TValue>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.difference
+ */
+ difference(...values: Array<List<T>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.difference
+ */
+ difference<TValue>(...values: Array<List<TValue>>): LoDashExplicitArrayWrapper<TValue>;
+ }
+
+ //_.differenceBy
+ interface LoDashStatic {
+ /**
+ * This method is like _.difference except that it accepts iteratee which is invoked for each element of array
+ * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one
+ * argument: (value).
+ *
+ * @param array The array to inspect.
+ * @param values The values to exclude.
+ * @param iteratee The iteratee invoked per element.
+ * @returns Returns the new array of filtered values.
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ values?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ array: List<T> | null | undefined,
+ values?: List<T>,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ array: List<T> | null | undefined,
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ array: List<T> | null | undefined,
+ ...values: any[]
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ ...values: any[]
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ ...values: any[]
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ ...values: any[]
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: ((value: T) => any)|string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T, W extends Object>(
+ values1?: List<T>,
+ values2?: List<T>,
+ values3?: List<T>,
+ values4?: List<T>,
+ values5?: List<T>,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.differenceBy
+ */
+ differenceBy<T>(
+ ...values: any[]
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.differenceWith DUMMY
+ interface LoDashStatic {
+ /**
+ * Creates an array of unique `array` values not included in the other
+ * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {...Array} [values] The values to exclude.
+ * @returns {Array} Returns the new array of filtered values.
+ * @example
+ *
+ * _.difference([3, 2, 1], [4, 2]);
+ * // => [3, 1]
+ */
+ differenceWith(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.drop
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with n elements dropped from the beginning.
+ *
+ * @param array The array to query.
+ * @param n The number of elements to drop.
+ * @return Returns the slice of array.
+ */
+ drop<T>(array: List<T> | null | undefined, n?: number): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.drop
+ */
+ drop(n?: number): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.drop
+ */
+ drop<T>(n?: number): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.drop
+ */
+ drop(n?: number): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.drop
+ */
+ drop<T>(n?: number): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.dropRight
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with n elements dropped from the end.
+ *
+ * @param array The array to query.
+ * @param n The number of elements to drop.
+ * @return Returns the slice of array.
+ */
+ dropRight<T>(
+ array: List<T> | null | undefined,
+ n?: number
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRight
+ */
+ dropRight(n?: number): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRight
+ */
+ dropRight<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRight
+ */
+ dropRight(n?: number): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRight
+ */
+ dropRight<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.dropRightWhile
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate
+ * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * match the properties of the given object, else false.
+ *
+ * @param array The array to query.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the slice of array.
+ */
+ dropRightWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: ListIterator<TValue, boolean>
+ ): TValue[];
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: string
+ ): TValue[];
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TWhere, TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: TWhere
+ ): TValue[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TValue>(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<TValue>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TValue>(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropRightWhile
+ */
+ dropRightWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<TValue>;
+ }
+
+ //_.dropWhile
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate
+ * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param array The array to query.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the slice of array.
+ */
+ dropWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: ListIterator<TValue, boolean>
+ ): TValue[];
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: string
+ ): TValue[];
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TWhere, TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: TWhere
+ ): TValue[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TValue>(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<TValue>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TValue>(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.dropWhile
+ */
+ dropWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<TValue>;
+ }
+
+ //_.fill
+ interface LoDashStatic {
+ /**
+ * Fills elements of array with value from start up to, but not including, end.
+ *
+ * Note: This method mutates array.
+ *
+ * @param array The array to fill.
+ * @param value The value to fill array with.
+ * @param start The start position.
+ * @param end The end position.
+ * @return Returns array.
+ */
+ fill<T>(
+ array: any[] | null | undefined,
+ value: T,
+ start?: number,
+ end?: number
+ ): T[];
+
+ /**
+ * @see _.fill
+ */
+ fill<T>(
+ array: List<any> | null | undefined,
+ value: T,
+ start?: number,
+ end?: number
+ ): List<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.fill
+ */
+ fill<T>(
+ value: T,
+ start?: number,
+ end?: number
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.fill
+ */
+ fill<T>(
+ value: T,
+ start?: number,
+ end?: number
+ ): LoDashImplicitObjectWrapper<List<T>>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.fill
+ */
+ fill<T>(
+ value: T,
+ start?: number,
+ end?: number
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.fill
+ */
+ fill<T>(
+ value: T,
+ start?: number,
+ end?: number
+ ): LoDashExplicitObjectWrapper<List<T>>;
+ }
+
+ //_.findIndex
+ interface LoDashStatic {
+ /**
+ * This method is like _.find except that it returns the index of the first element predicate returns truthy
+ * for instead of the element itself.
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param array The array to search.
+ * @param predicate The function invoked per iteration.
+ * @param fromIndex The index to search from.
+ * @return Returns the index of the found element, else -1.
+ */
+ findIndex<T>(
+ array: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<T>(
+ array: List<T> | null | undefined,
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<W, T>(
+ array: List<T> | null | undefined,
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findIndex
+ */
+ findIndex<TResult>(
+ predicate?: ListIterator<TResult, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findIndex
+ */
+ findIndex<TResult>(
+ predicate?: ListIterator<TResult, boolean>,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findIndex
+ */
+ findIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.findLastIndex
+ interface LoDashStatic {
+ /**
+ * This method is like _.findIndex except that it iterates over elements of collection from right to left.
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param array The array to search.
+ * @param predicate The function invoked per iteration.
+ * @param fromIndex The index to search from.
+ * @return Returns the index of the found element, else -1.
+ */
+ findLastIndex<T>(
+ array: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<T>(
+ array: List<T> | null | undefined,
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<W, T>(
+ array: List<T> | null | undefined,
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<TResult>(
+ predicate?: ListIterator<TResult, boolean>,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): number;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<TResult>(
+ predicate?: ListIterator<TResult, boolean>,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex(
+ predicate?: string,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.findLastIndex
+ */
+ findLastIndex<W>(
+ predicate?: W,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.first
+ interface LoDashStatic {
+ /**
+ * @see _.head
+ */
+ first<T>(array: List<T> | null | undefined): T | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.head
+ */
+ first(): string | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ first(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ first<T>(): T | undefined;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.head
+ */
+ first(): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ first<T>(): T;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ first<T>(): T;
+ }
+
+ interface RecursiveArray<T> extends Array<T|RecursiveArray<T>> {}
+ interface ListOfRecursiveArraysOrValues<T> extends List<T|RecursiveArray<T>> {}
+
+ //_.flatten
+ interface LoDashStatic {
+ /**
+ * Flattens a nested array. If isDeep is true the array is recursively flattened, otherwise it’s only
+ * flattened a single level.
+ *
+ * @param array The array to flatten.
+ * @param isDeep Specify a deep flatten.
+ * @return Returns the new flattened array.
+ */
+ flatten<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, isDeep: boolean): T[];
+
+ /**
+ * @see _.flatten
+ */
+ flatten<T>(array: List<Many<T>> | null | undefined): T[];
+
+ /**
+ * @see _.flatten
+ */
+ flatten<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined): RecursiveArray<T>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.flatten
+ */
+ flatten(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flatten
+ */
+ flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flatten
+ */
+ flatten<TResult>(isDeep?: boolean): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.flatten
+ */
+ flatten(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flatten
+ */
+ flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flatten
+ */
+ flatten<TResult>(isDeep?: boolean): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.flattenDeep
+ interface LoDashStatic {
+ /**
+ * Recursively flattens a nested array.
+ *
+ * @param array The array to recursively flatten.
+ * @return Returns the new flattened array.
+ */
+ flattenDeep<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flattenDeep
+ */
+ flattenDeep<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ // _.flattenDepth
+ interface LoDashStatic {
+ /**
+ * Recursively flatten array up to depth times.
+ *
+ * @param array The array to recursively flatten.
+ * @param number The maximum recursion depth.
+ * @return Returns the new flattened array.
+ */
+ flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, depth?: number): T[];
+ }
+
+ //_.fromPairs
+ interface LoDashStatic {
+ /**
+ * The inverse of `_.toPairs`; this method returns an object composed
+ * from key-value `pairs`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} pairs The key-value pairs.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * _.fromPairs([['fred', 30], ['barney', 40]]);
+ * // => { 'fred': 30, 'barney': 40 }
+ */
+ fromPairs<T>(
+ array: List<[_.StringRepresentable, T]> | null | undefined
+ ): Dictionary<T>;
+
+ /**
+ @see _.fromPairs
+ */
+ fromPairs(
+ array: List<any[]> | null | undefined
+ ): Dictionary<any>;
+ }
+
+ //_.fromPairs DUMMY
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.fromPairs
+ */
+ fromPairs(): LoDashImplicitObjectWrapper<any>;
+ }
+
+ //_.fromPairs DUMMY
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.fromPairs
+ */
+ fromPairs(): LoDashExplicitObjectWrapper<any>;
+ }
+
+ //_.head
+ interface LoDashStatic {
+ /**
+ * Gets the first element of array.
+ *
+ * @alias _.first
+ *
+ * @param array The array to query.
+ * @return Returns the first element of array.
+ */
+ head<T>(array: List<T> | null | undefined): T | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.head
+ */
+ head(): string | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ head(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ head<T>(): T | undefined;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.head
+ */
+ head(): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ head<T>(): T;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.head
+ */
+ head<T>(): T;
+ }
+
+ //_.indexOf
+ interface LoDashStatic {
+ /**
+ * Gets the index at which the first occurrence of `value` is found in `array`
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * for equality comparisons. If `fromIndex` is negative, it's used as the offset
+ * from the end of `array`. If `array` is sorted providing `true` for `fromIndex`
+ * performs a faster binary search.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @param {number} [fromIndex=0] The index to search from.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ * @example
+ *
+ * _.indexOf([1, 2, 1, 2], 2);
+ * // => 1
+ *
+ * // using `fromIndex`
+ * _.indexOf([1, 2, 1, 2], 2, 2);
+ * // => 3
+ */
+ indexOf<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.indexOf
+ */
+ indexOf(
+ value: T,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.indexOf
+ */
+ indexOf<TValue>(
+ value: TValue,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.indexOf
+ */
+ indexOf(
+ value: T,
+ fromIndex?: boolean|number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.indexOf
+ */
+ indexOf<TValue>(
+ value: TValue,
+ fromIndex?: boolean|number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.intersectionBy DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.intersection` except that it accepts `iteratee`
+ * which is invoked for each element of each `arrays` to generate the criterion
+ * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {Array} Returns the new array of shared values.
+ * @example
+ *
+ * _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor);
+ * // => [2.1]
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
+ * // => [{ 'x': 1 }]
+ */
+ intersectionBy(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.intersectionWith DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.intersection` except that it accepts `comparator`
+ * which is invoked to compare elements of `arrays`. The comparator is invoked
+ * with two arguments: (arrVal, othVal).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns the new array of shared values.
+ * @example
+ *
+ * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+ * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+ *
+ * _.intersectionWith(objects, others, _.isEqual);
+ * // => [{ 'x': 1, 'y': 2 }]
+ */
+ intersectionWith(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.join
+ interface LoDashStatic {
+ /**
+ * Converts all elements in `array` into a string separated by `separator`.
+ *
+ * @param array The array to convert.
+ * @param separator The element separator.
+ * @returns Returns the joined string.
+ */
+ join(
+ array: List<any> | null | undefined,
+ separator?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): string;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): string;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.join
+ */
+ join(separator?: string): LoDashExplicitWrapper<string>;
+ }
+
+ //_.pullAll DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.pull` except that it accepts an array of values to remove.
+ *
+ * **Note:** Unlike `_.difference`, this method mutates `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to remove.
+ * @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [1, 2, 3, 1, 2, 3];
+ *
+ * _.pull(array, [2, 3]);
+ * console.log(array);
+ * // => [1, 1]
+ */
+ pullAll(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.pullAllBy DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.pullAll` except that it accepts `iteratee` which is
+ * invoked for each element of `array` and `values` to to generate the criterion
+ * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ *
+ * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to remove.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
+ *
+ * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
+ * console.log(array);
+ * // => [{ 'x': 2 }]
+ */
+ pullAllBy(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.reverse DUMMY
+ interface LoDashStatic {
+ /**
+ * Reverses `array` so that the first element becomes the last, the second
+ * element becomes the second to last, and so on.
+ *
+ * **Note:** This method mutates `array` and is based on
+ * [`Array#reverse`](https://mdn.io/Array/reverse).
+ *
+ * @memberOf _
+ * @category Array
+ * @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [1, 2, 3];
+ *
+ * _.reverse(array);
+ * // => [3, 2, 1]
+ *
+ * console.log(array);
+ * // => [3, 2, 1]
+ */
+ reverse(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.sortedIndexOf
+ interface LoDashStatic {
+ /**
+ * This method is like `_.indexOf` except that it performs a binary
+ * search on a sorted `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ * @example
+ *
+ * _.sortedIndexOf([1, 1, 2, 2], 2);
+ * // => 2
+ */
+ sortedIndexOf<T>(
+ array: List<T> | null | undefined,
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexOf
+ */
+ sortedIndexOf(
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexOf
+ */
+ sortedIndexOf<TValue>(
+ value: TValue
+ ): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexOf
+ */
+ sortedIndexOf(
+ value: T
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexOf
+ */
+ sortedIndexOf<TValue>(
+ value: TValue
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.initial
+ interface LoDashStatic {
+ /**
+ * Gets all but the last element of array.
+ *
+ * @param array The array to query.
+ * @return Returns the slice of array.
+ */
+ initial<T>(array: List<T> | null | undefined): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.initial
+ */
+ initial(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.initial
+ */
+ initial<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.initial
+ */
+ initial(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.initial
+ */
+ initial<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.intersection
+ interface LoDashStatic {
+ /**
+ * Creates an array of unique values that are included in all of the provided arrays using SameValueZero for
+ * equality comparisons.
+ *
+ * @param arrays The arrays to inspect.
+ * @return Returns the new array of shared values.
+ */
+ intersection<T>(...arrays: Array<List<T> | null | undefined>): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.intersection
+ */
+ intersection<TResult>(...arrays: Array<List<TResult>>): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.intersection
+ */
+ intersection<TResult>(...arrays: Array<List<TResult>>): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.intersection
+ */
+ intersection<TResult>(...arrays: Array<List<TResult>>): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.intersection
+ */
+ intersection<TResult>(...arrays: Array<List<TResult>>): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.last
+ interface LoDashStatic {
+ /**
+ * Gets the last element of array.
+ *
+ * @param array The array to query.
+ * @return Returns the last element of array.
+ */
+ last<T>(array: List<T> | null | undefined): T | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.last
+ */
+ last(): string | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.last
+ */
+ last(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.last
+ */
+ last<T>(): T | undefined;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.last
+ */
+ last(): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.last
+ */
+ last<T>(): T;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.last
+ */
+ last<T>(): T;
+ }
+
+ //_.lastIndexOf
+ interface LoDashStatic {
+ /**
+ * This method is like _.indexOf except that it iterates over elements of array from right to left.
+ *
+ * @param array The array to search.
+ * @param value The value to search for.
+ * @param fromIndex The index to search from or true to perform a binary search on a sorted array.
+ * @return Returns the index of the matched value, else -1.
+ */
+ lastIndexOf<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.lastIndexOf
+ */
+ lastIndexOf(
+ value: T,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.lastIndexOf
+ */
+ lastIndexOf<TResult>(
+ value: TResult,
+ fromIndex?: boolean|number
+ ): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.lastIndexOf
+ */
+ lastIndexOf(
+ value: T,
+ fromIndex?: boolean|number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.lastIndexOf
+ */
+ lastIndexOf<TResult>(
+ value: TResult,
+ fromIndex?: boolean|number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.nth
+ interface LoDashStatic {
+ /**
+ * Gets the element at index `n` of `array`. If `n` is negative, the nth element from the end is returned.
+ *
+ * @param array array The array to query.
+ * @param value The index of the element to return.
+ * @return Returns the nth element of `array`.
+ */
+ nth<T>(
+ array: List<T> | null | undefined,
+ n?: number
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.nth
+ */
+ nth(
+ n?: number
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.nth
+ */
+ nth<TResult>(
+ n?:number
+ ): TResult | undefined;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.nth
+ */
+ nth(
+ n?:number
+ ): LoDashExplicitWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.nth
+ */
+ nth<TResult>(
+ n?:number
+ ): LoDashExplicitWrapper<TResult>;
+ }
+
+ //_.pull
+ interface LoDashStatic {
+ /**
+ * Removes all provided values from array using SameValueZero for equality comparisons.
+ *
+ * Note: Unlike _.without, this method mutates array.
+ *
+ * @param array The array to modify.
+ * @param values The values to remove.
+ * @return Returns array.
+ */
+ pull<T>(
+ array: T[],
+ ...values: T[]
+ ): T[];
+
+ /**
+ * @see _.pull
+ */
+ pull<T>(
+ array: List<T>,
+ ...values: T[]
+ ): List<T>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.pull
+ */
+ pull(...values: T[]): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.pull
+ */
+ pull<TValue>(...values: TValue[]): LoDashImplicitObjectWrapper<List<TValue>>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.pull
+ */
+ pull(...values: T[]): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.pull
+ */
+ pull<TValue>(...values: TValue[]): LoDashExplicitObjectWrapper<List<TValue>>;
+ }
+
+ //_.pullAt
+ interface LoDashStatic {
+ /**
+ * Removes elements from array corresponding to the given indexes and returns an array of the removed elements.
+ * Indexes may be specified as an array of indexes or as individual arguments.
+ *
+ * Note: Unlike _.at, this method mutates array.
+ *
+ * @param array The array to modify.
+ * @param indexes The indexes of elements to remove, specified as individual indexes or arrays of indexes.
+ * @return Returns the new array of removed elements.
+ */
+ pullAt<T>(
+ array: List<T>,
+ ...indexes: Array<Many<number>>
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.pullAt
+ */
+ pullAt(...indexes: Array<Many<number>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.pullAt
+ */
+ pullAt<T>(...indexes: Array<Many<number>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.pullAt
+ */
+ pullAt(...indexes: Array<Many<number>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.pullAt
+ */
+ pullAt<T>(...indexes: Array<Many<number>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.remove
+ interface LoDashStatic {
+ /**
+ * Removes all elements from array that predicate returns truthy for and returns an array of the removed
+ * elements. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * Note: Unlike _.filter, this method mutates array.
+ *
+ * @param array The array to modify.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the new array of removed elements.
+ */
+ remove<T>(
+ array: List<T>,
+ predicate?: ListIterator<T, boolean>
+ ): T[];
+
+ /**
+ * @see _.remove
+ */
+ remove<T>(
+ array: List<T>,
+ predicate?: string
+ ): T[];
+
+ /**
+ * @see _.remove
+ */
+ remove<W, T>(
+ array: List<T>,
+ predicate?: W
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.remove
+ */
+ remove(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.remove
+ */
+ remove(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.remove
+ */
+ remove<W>(
+ predicate?: W
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.remove
+ */
+ remove<TResult>(
+ predicate?: ListIterator<TResult, boolean>
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.remove
+ */
+ remove<TResult>(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.remove
+ */
+ remove<W, TResult>(
+ predicate?: W
+ ): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.remove
+ */
+ remove(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.remove
+ */
+ remove(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.remove
+ */
+ remove<W>(
+ predicate?: W
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.remove
+ */
+ remove<TResult>(
+ predicate?: ListIterator<TResult, boolean>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.remove
+ */
+ remove<TResult>(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.remove
+ */
+ remove<W, TResult>(
+ predicate?: W
+ ): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.tail
+ interface LoDashStatic {
+ /**
+ * Gets all but the first element of array.
+ *
+ * @alias _.tail
+ *
+ * @param array The array to query.
+ * @return Returns the slice of array.
+ */
+ tail<T>(array: List<T> | null | undefined): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.tail
+ */
+ tail(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.tail
+ */
+ tail<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.tail
+ */
+ tail(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.tail
+ */
+ tail<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.slice
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array from start up to, but not including, end.
+ *
+ * @param array The array to slice.
+ * @param start The start position.
+ * @param end The end position.
+ * @return Returns the slice of array.
+ */
+ slice<T>(
+ array: T[] | null | undefined,
+ start?: number,
+ end?: number
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.slice
+ */
+ slice(
+ start?: number,
+ end?: number
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.slice
+ */
+ slice(
+ start?: number,
+ end?: number
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.sortedIndex
+ interface LoDashStatic {
+ /**
+ * Uses a binary search to determine the lowest index at which `value` should
+ * be inserted into `array` in order to maintain its sort order.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @example
+ *
+ * _.sortedIndex([30, 50], 40);
+ * // => 1
+ *
+ * _.sortedIndex([4, 5], 4);
+ * // => 0
+ */
+ sortedIndex<T>(
+ array: List<T> | null | undefined,
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex<TSort>(
+ value: string
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex(
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex<T>(
+ value: T
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex<TSort>(
+ value: string
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex(
+ value: T
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndex
+ */
+ sortedIndex<T>(
+ value: T
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ // _.sortedIndexBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.sortedIndex` except that it accepts `iteratee`
+ * which is invoked for `value` and each element of `array` to compute their
+ * sort ranking. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @example
+ *
+ * var dict = { 'thirty': 30, 'forty': 40, 'fifty': 50 };
+ *
+ * _.sortedIndexBy(['thirty', 'fifty'], 'forty', _.propertyOf(dict));
+ * // => 1
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.sortedIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
+ * // => 0
+ */
+ sortedIndexBy<T, TSort>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: (x: T) => any
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<W, T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: W
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: Object
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<TSort>(
+ value: string,
+ iteratee: (x: string) => TSort
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy(
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<W>(
+ value: T,
+ iteratee: W
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T, TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: (x: T) => any
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<W, T>(
+ value: T,
+ iteratee: W
+ ): number;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: Object
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<TSort>(
+ value: string,
+ iteratee: (x: string) => TSort
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy(
+ value: T,
+ iteratee: string
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<W>(
+ value: T,
+ iteratee: W
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T, TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: (x: T) => any
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: string
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<W, T>(
+ value: T,
+ iteratee: W
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedIndexBy
+ */
+ sortedIndexBy<T>(
+ value: T,
+ iteratee: Object
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.sortedLastIndex
+ interface LoDashStatic {
+ /**
+ * This method is like `_.sortedIndex` except that it returns the highest
+ * index at which `value` should be inserted into `array` in order to
+ * maintain its sort order.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @example
+ *
+ * _.sortedLastIndex([4, 5], 4);
+ * // => 1
+ */
+ sortedLastIndex<T>(
+ array: List<T> | null | undefined,
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex(
+ value: string
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex(
+ value: T
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex<T>(
+ value: T
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex(
+ value: string
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex(
+ value: T
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndex
+ */
+ sortedLastIndex<T>(
+ value: T
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.sortedLastIndexBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
+ * which is invoked for `value` and each element of `array` to compute their
+ * sort ranking. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The sorted array to inspect.
+ * @param {*} value The value to evaluate.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @example
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
+ * // => 1
+ */
+ sortedLastIndexBy<T, TSort>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: (x: T) => any
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<W, T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: W
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ array: List<T> | null | undefined,
+ value: T,
+ iteratee: Object
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<TSort>(
+ value: string,
+ iteratee: (x: string) => TSort
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy(
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<W>(
+ value: T,
+ iteratee: W
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T, TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: (x: T) => any
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<W, T>(
+ value: T,
+ iteratee: W
+ ): number;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: Object
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<TSort>(
+ value: string,
+ iteratee: (x: string) => TSort
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy(
+ value: T,
+ iteratee: string
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<W>(
+ value: T,
+ iteratee: W
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T, TSort>(
+ value: T,
+ iteratee: (x: T) => TSort
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: (x: T) => any
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: string
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<W, T>(
+ value: T,
+ iteratee: W
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sortedLastIndexBy
+ */
+ sortedLastIndexBy<T>(
+ value: T,
+ iteratee: Object
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.sortedLastIndexOf DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.lastIndexOf` except that it performs a binary
+ * search on a sorted `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ * @example
+ *
+ * _.sortedLastIndexOf([1, 1, 2, 2], 2);
+ * // => 3
+ */
+ sortedLastIndexOf<T>(
+ array: List<T> | null | undefined,
+ value: T
+ ): number;
+ }
+
+ //_.tail
+ interface LoDashStatic {
+ /**
+ * @see _.rest
+ */
+ tail<T>(array: List<T> | null | undefined): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.rest
+ */
+ tail(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.rest
+ */
+ tail<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.rest
+ */
+ tail(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.rest
+ */
+ tail<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.take
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with n elements taken from the beginning.
+ *
+ * @param array The array to query.
+ * @param n The number of elements to take.
+ * @return Returns the slice of array.
+ */
+ take<T>(
+ array: List<T> | null | undefined,
+ n?: number
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.take
+ */
+ take(n?: number): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.take
+ */
+ take<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.take
+ */
+ take(n?: number): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.take
+ */
+ take<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.takeRight
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with n elements taken from the end.
+ *
+ * @param array The array to query.
+ * @param n The number of elements to take.
+ * @return Returns the slice of array.
+ */
+ takeRight<T>(
+ array: List<T> | null | undefined,
+ n?: number
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRight
+ */
+ takeRight(n?: number): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRight
+ */
+ takeRight<TResult>(n?: number): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRight
+ */
+ takeRight(n?: number): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRight
+ */
+ takeRight<TResult>(n?: number): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.takeRightWhile
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with elements taken from the end. Elements are taken until predicate returns
+ * falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param array The array to query.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the slice of array.
+ */
+ takeRightWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: ListIterator<TValue, boolean>
+ ): TValue[];
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: string
+ ): TValue[];
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TWhere, TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: TWhere
+ ): TValue[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TValue>(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<TValue>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TValue>(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeRightWhile
+ */
+ takeRightWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<TValue>;
+ }
+
+ //_.takeWhile
+ interface LoDashStatic {
+ /**
+ * Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns
+ * falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param array The array to query.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the slice of array.
+ */
+ takeWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: ListIterator<TValue, boolean>
+ ): TValue[];
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: string
+ ): TValue[];
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TWhere, TValue>(
+ array: List<TValue> | null | undefined,
+ predicate?: TWhere
+ ): TValue[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TValue>(
+ predicate?: string
+ ): LoDashImplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashImplicitArrayWrapper<TValue>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile(
+ predicate?: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TWhere>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TValue>(
+ predicate?: ListIterator<TValue, boolean>
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TValue>(
+ predicate?: string
+ ): LoDashExplicitArrayWrapper<TValue>;
+
+ /**
+ * @see _.takeWhile
+ */
+ takeWhile<TWhere, TValue>(
+ predicate?: TWhere
+ ): LoDashExplicitArrayWrapper<TValue>;
+ }
+
+ //_.union
+ interface LoDashStatic {
+ /**
+ * Creates an array of unique values, in order, from all of the provided arrays using SameValueZero for
+ * equality comparisons.
+ *
+ * @param arrays The arrays to inspect.
+ * @return Returns the new array of combined values.
+ */
+ union<T>(...arrays: Array<List<T> | null | undefined>): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.union
+ */
+ union(...arrays: Array<List<T> | null | undefined>): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.union
+ */
+ union<T>(...arrays: Array<List<T> | null | undefined>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.union
+ */
+ union<T>(...arrays: Array<List<T> | null | undefined>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.union
+ */
+ union(...arrays: Array<List<T> | null | undefined>): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.union
+ */
+ union<T>(...arrays: Array<List<T> | null | undefined>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.union
+ */
+ union<T>(...arrays: Array<List<T> | null | undefined>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.unionBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.union` except that it accepts `iteratee` which is
+ * invoked for each element of each `arrays` to generate the criterion by which
+ * uniqueness is computed. The iteratee is invoked with one argument: (value).
+ *
+ * @param arrays The arrays to inspect.
+ * @param iteratee The iteratee invoked per element.
+ * @return Returns the new array of combined values.
+ */
+ unionBy<T>(
+ arrays: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays: List<T> | null | undefined,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays1: List<T> | null | undefined,
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: W
+ ): T[];
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays: List<T> | null | undefined,
+ ...iteratee: any[]
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ ...iteratee: any[]
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ ...iteratee: any[]
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ ...iteratee: any[]
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: (value: T) => any
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T, W extends Object>(
+ arrays2: List<T> | null | undefined,
+ arrays3: List<T> | null | undefined,
+ arrays4: List<T> | null | undefined,
+ arrays5: List<T> | null | undefined,
+ iteratee?: W
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.unionBy
+ */
+ unionBy<T>(
+ ...iteratee: any[]
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.uniq
+ interface LoDashStatic {
+ /**
+ * Creates a duplicate-free version of an array, using
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * for equality comparisons, in which only the first occurrence of each element
+ * is kept.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @returns {Array} Returns the new duplicate free array.
+ * @example
+ *
+ * _.uniq([2, 1, 2]);
+ * // => [2, 1]
+ */
+ uniq<T>(
+ array: List<T> | null | undefined
+ ): T[];
+
+ /**
+ * @see _.uniq
+ */
+ uniq<T, TSort>(
+ array: List<T> | null | undefined
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.uniq
+ */
+ uniq<TSort>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.uniq
+ */
+ uniq<TSort>(): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniq
+ */
+ uniq(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ uniq<T>(): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniq
+ */
+ uniq<T, TSort>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.uniq
+ */
+ uniq<TSort>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.uniq
+ */
+ uniq<TSort>(): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniq
+ */
+ uniq(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.uniq
+ */
+ uniq<T>(): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniq
+ */
+ uniq<T, TSort>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.uniqBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.uniq` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the criterion by which
+ * uniqueness is computed. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {Array} Returns the new duplicate free array.
+ * @example
+ *
+ * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
+ * // => [2.1, 1.2]
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
+ * // => [{ 'x': 1 }, { 'x': 2 }]
+ */
+ uniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T, TSort>(
+ array: List<T> | null | undefined,
+ iteratee: ListIterator<T, TSort>
+ ): T[];
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: string
+ ): T[];
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: Object
+ ): T[];
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TWhere extends {}, T>(
+ array: List<T> | null | undefined,
+ iteratee: TWhere
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TWhere extends {}>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: ListIterator<T, any>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T, TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: Object
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TWhere extends {}, T>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TWhere extends {}>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: ListIterator<T, any>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T, TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<T>(
+ iteratee: Object
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.uniqBy
+ */
+ uniqBy<TWhere extends {}, T>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.sortedUniq
+ interface LoDashStatic {
+ /**
+ * This method is like `_.uniq` except that it's designed and optimized
+ * for sorted arrays.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @returns {Array} Returns the new duplicate free array.
+ * @example
+ *
+ * _.sortedUniq([1, 1, 2]);
+ * // => [1, 2]
+ */
+ sortedUniq<T>(
+ array: List<T> | null | undefined
+ ): T[];
+
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<T, TSort>(
+ array: List<T> | null | undefined
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<TSort>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<TSort>(): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ sortedUniq<T>(): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<T, TSort>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<TSort>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<TSort>(): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<T>(): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniq
+ */
+ sortedUniq<T, TSort>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.sortedUniqBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.uniqBy` except that it's designed and optimized
+ * for sorted arrays.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {Function} [iteratee] The iteratee invoked per element.
+ * @returns {Array} Returns the new duplicate free array.
+ * @example
+ *
+ * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
+ * // => [1.1, 2.2]
+ */
+ sortedUniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T, TSort>(
+ array: List<T> | null | undefined,
+ iteratee: ListIterator<T, TSort>
+ ): T[];
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: string
+ ): T[];
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ array: List<T> | null | undefined,
+ iteratee: Object
+ ): T[];
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TWhere extends {}, T>(
+ array: List<T> | null | undefined,
+ iteratee: TWhere
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TWhere extends {}>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: ListIterator<T, any>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T, TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: Object
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TWhere extends {}, T>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TWhere extends {}>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: ListIterator<T, any>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T, TSort>(
+ iteratee: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<T>(
+ iteratee: Object
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortedUniqBy
+ */
+ sortedUniqBy<TWhere extends {}, T>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.unionWith DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.union` except that it accepts `comparator` which
+ * is invoked to compare elements of `arrays`. The comparator is invoked
+ * with two arguments: (arrVal, othVal).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns the new array of combined values.
+ * @example
+ *
+ * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+ * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+ *
+ * _.unionWith(objects, others, _.isEqual);
+ * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
+ */
+ unionWith(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.uniqWith DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.uniq` except that it accepts `comparator` which
+ * is invoked to compare elements of `array`. The comparator is invoked with
+ * two arguments: (arrVal, othVal).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns the new duplicate free array.
+ * @example
+ *
+ * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
+ *
+ * _.uniqWith(objects, _.isEqual);
+ * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
+ */
+ uniqWith(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.unzip
+ interface LoDashStatic {
+ /**
+ * This method is like _.zip except that it accepts an array of grouped elements and creates an array
+ * regrouping the elements to their pre-zip configuration.
+ *
+ * @param array The array of grouped elements to process.
+ * @return Returns the new array of regrouped elements.
+ */
+ unzip<T>(array: List<List<T>> | null | undefined): T[][];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.unzip
+ */
+ unzip<T>(): LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.unzip
+ */
+ unzip<T>(): LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.unzip
+ */
+ unzip<T>(): LoDashExplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.unzip
+ */
+ unzip<T>(): LoDashExplicitArrayWrapper<T[]>;
+ }
+
+ //_.unzipWith
+ interface LoDashStatic {
+ /**
+ * This method is like _.unzip except that it accepts an iteratee to specify how regrouped values should be
+ * combined. The iteratee is bound to thisArg and invoked with four arguments: (accumulator, value, index,
+ * group).
+ *
+ * @param array The array of grouped elements to process.
+ * @param iteratee The function to combine regrouped values.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the new array of regrouped elements.
+ */
+ unzipWith<TArray, TResult>(
+ array: List<List<TArray>> | null | undefined,
+ iteratee?: MemoIterator<TArray, TResult>
+ ): TResult[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.unzipWith
+ */
+ unzipWith<TArr, TResult>(
+ iteratee?: MemoIterator<TArr, TResult>
+ ): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.unzipWith
+ */
+ unzipWith<TArr, TResult>(
+ iteratee?: MemoIterator<TArr, TResult>
+ ): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ //_.without
+ interface LoDashStatic {
+ /**
+ * Creates an array excluding all provided values using SameValueZero for equality comparisons.
+ *
+ * @param array The array to filter.
+ * @param values The values to exclude.
+ * @return Returns the new array of filtered values.
+ */
+ without<T>(
+ array: List<T> | null | undefined,
+ ...values: T[]
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.without
+ */
+ without(...values: T[]): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.without
+ */
+ without<T>(...values: T[]): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.without
+ */
+ without(...values: T[]): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.without
+ */
+ without<T>(...values: T[]): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.xor
+ interface LoDashStatic {
+ /**
+ * Creates an array of unique values that is the symmetric difference of the provided arrays.
+ *
+ * @param arrays The arrays to inspect.
+ * @return Returns the new array of values.
+ */
+ xor<T>(...arrays: Array<List<T> | null | undefined>): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.xor
+ */
+ xor(...arrays: Array<List<T> | null | undefined>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.xor
+ */
+ xor<T>(...arrays: Array<List<T> | null | undefined>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.xor
+ */
+ xor(...arrays: Array<List<T> | null | undefined>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.xor
+ */
+ xor<T>(...arrays: Array<List<T> | null | undefined>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.xorBy DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.xor` except that it accepts `iteratee` which is
+ * invoked for each element of each `arrays` to generate the criterion by which
+ * uniqueness is computed. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {Array} Returns the new array of values.
+ * @example
+ *
+ * _.xorBy([2.1, 1.2], [4.3, 2.4], Math.floor);
+ * // => [1.2, 4.3]
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
+ * // => [{ 'x': 2 }]
+ */
+ xorBy(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.xorWith DUMMY
+ interface LoDashStatic {
+ /**
+ * This method is like `_.xor` except that it accepts `comparator` which is
+ * invoked to compare elements of `arrays`. The comparator is invoked with
+ * two arguments: (arrVal, othVal).
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns the new array of values.
+ * @example
+ *
+ * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+ * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+ *
+ * _.xorWith(objects, others, _.isEqual);
+ * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
+ */
+ xorWith(
+ array: List<any>,
+ ...values: any[]
+ ): any[];
+ }
+
+ //_.zip
+ interface LoDashStatic {
+ /**
+ * Creates an array of grouped elements, the first of which contains the first elements of the given arrays,
+ * the second of which contains the second elements of the given arrays, and so on.
+ *
+ * @param arrays The arrays to process.
+ * @return Returns the new array of grouped elements.
+ */
+ zip<T>(...arrays: Array<List<T> | null | undefined>): T[][];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.zip
+ */
+ zip<T>(...arrays: Array<List<T> | null | undefined>): _.LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.zip
+ */
+ zip<T>(...arrays: Array<List<T> | null | undefined>): _.LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.zip
+ */
+ zip<T>(...arrays: Array<List<T> | null | undefined>): _.LoDashExplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.zip
+ */
+ zip<T>(...arrays: Array<List<T> | null | undefined>): _.LoDashExplicitArrayWrapper<T[]>;
+ }
+
+ //_.zipObject
+ interface LoDashStatic {
+ /**
+ * This method is like _.fromPairs except that it accepts two arrays, one of property
+ * identifiers and one of corresponding values.
+ *
+ * @param props The property names.
+ * @param values The property values.
+ * @return Returns the new object.
+ */
+ zipObject<TValues, TResult extends {}>(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<TValues>
+ ): TResult;
+ /**
+ * This method is like _.zipObject except that it supports property paths.
+ *
+ * @param props The property names.
+ * @param values The property values.
+ * @return Returns the new object.
+ */
+ zipObjectDeep<TValues, TResult extends {}>(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<TValues>
+ ): TResult;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TResult extends {}>(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<any>
+ ): TResult;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TResult extends {}>(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<any>
+ ): TResult;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<any>
+ ): _.Dictionary<any>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep(
+ props: List<StringRepresentable>|List<List<any>>,
+ values?: List<any>
+ ): _.Dictionary<any>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep(
+ values?: List<any>
+ ): _.LoDashImplicitObjectWrapper<_.Dictionary<any>>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TValues, TResult extends {}>(
+ values?: List<TValues>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep<TResult extends {}>(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.zipObject
+ */
+ zipObject(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
+ /**
+ * @see _.zipObjectDeep
+ */
+ zipObjectDeep(
+ values?: List<any>
+ ): _.LoDashExplicitObjectWrapper<_.Dictionary<any>>;
+ }
+
+ //_.zipWith
+ interface LoDashStatic {
+ /**
+ * This method is like _.zip except that it accepts an iteratee to specify how grouped values should be
+ * combined. The iteratee is bound to thisArg and invoked with four arguments: (accumulator, value, index,
+ * group).
+ * @param {...Array} [arrays] The arrays to process.
+ * @param {Function} [iteratee] The function to combine grouped values.
+ * @param {*} [thisArg] The `this` binding of `iteratee`.
+ * @return Returns the new array of grouped elements.
+ */
+ zipWith<TResult>(...args: any[]): TResult[];
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.zipWith
+ */
+ zipWith<TResult>(...args: any[]): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ /*********
+ * Chain *
+ *********/
+
+ //_.chain
+ interface LoDashStatic {
+ /**
+ * Creates a lodash object that wraps value with explicit method chaining enabled.
+ *
+ * @param value The value to wrap.
+ * @return Returns the new lodash wrapper instance.
+ */
+ chain(value: number): LoDashExplicitWrapper<number>;
+ chain(value: string): LoDashExplicitWrapper<string>;
+ chain(value: boolean): LoDashExplicitWrapper<boolean>;
+ chain(value: null | undefined): LoDashExplicitWrapper<null | undefined>;
+ chain<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
+ chain<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
+ chain<T>(value: T[] | null | undefined): LoDashExplicitNillableArrayWrapper<T>;
+ chain<T>(value: ReadonlyArray<T> | null | undefined): LoDashExplicitNillableArrayWrapper<T>;
+ chain<T extends {}>(value: T): LoDashExplicitObjectWrapper<T>;
+ chain<T extends {}>(value: T | null | undefined): LoDashExplicitObjectWrapper<T | null | undefined>;
+ chain(value: any): LoDashExplicitWrapper<any>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.chain
+ */
+ chain(): LoDashExplicitWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.chain
+ */
+ chain(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitNillableArrayWrapper<T> {
+ /**
+ * @see _.chain
+ */
+ chain(): LoDashExplicitNillableArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.chain
+ */
+ chain(): LoDashExplicitObjectWrapper<T>;
+ }
+
+ interface LoDashImplicitNillableObjectWrapper<T> {
+ /**
+ * @see _.chain
+ */
+ chain(): LoDashExplicitNillableObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.chain
+ */
+ chain(): TWrapper;
+ }
+
+ //_.tap
+ interface LoDashStatic {
+ /**
+ * This method invokes interceptor and returns value. The interceptor is bound to thisArg and invoked with one
+ * argument; (value). The purpose of this method is to "tap into" a method chain in order to perform operations
+ * on intermediate results within the chain.
+ *
+ * @param value The value to provide to interceptor.
+ * @param interceptor The function to invoke.
+ * @parem thisArg The this binding of interceptor.
+ * @return Returns value.
+ **/
+ tap<T>(
+ value: T,
+ interceptor: (value: T) => void
+ ): T;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.tap
+ */
+ tap(
+ interceptor: (value: T) => void
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.tap
+ */
+ tap(
+ interceptor: (value: T) => void
+ ): TWrapper;
+ }
+
+ //_.thru
+ interface LoDashStatic {
+ /**
+ * This method is like _.tap except that it returns the result of interceptor.
+ *
+ * @param value The value to provide to interceptor.
+ * @param interceptor The function to invoke.
+ * @param thisArg The this binding of interceptor.
+ * @return Returns the result of interceptor.
+ */
+ thru<T, TResult>(
+ value: T,
+ interceptor: (value: T) => TResult
+ ): TResult;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends number>(
+ interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends string>(
+ interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends boolean>(
+ interceptor: (value: T) => TResult): LoDashImplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends {}>(
+ interceptor: (value: T) => TResult): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult>(
+ interceptor: (value: T) => TResult[]): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends number>(
+ interceptor: (value: T) => TResult
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends string>(
+ interceptor: (value: T) => TResult
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends boolean>(
+ interceptor: (value: T) => TResult
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult extends {}>(
+ interceptor: (value: T) => TResult
+ ): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.thru
+ */
+ thru<TResult>(
+ interceptor: (value: T) => TResult[]
+ ): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.prototype.commit
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * Executes the chained sequence and returns the wrapped result.
+ *
+ * @return Returns the new lodash wrapper instance.
+ */
+ commit(): TWrapper;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.commit
+ */
+ commit(): TWrapper;
+ }
+
+ //_.prototype.concat
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * Creates a new array joining a wrapped array with any additional arrays and/or values.
+ *
+ * @param items
+ * @return Returns the new concatenated array.
+ */
+ concat<TItem>(...items: Array<Many<TItem>>): LoDashImplicitArrayWrapper<TItem>;
+
+ /**
+ * @see _.concat
+ */
+ concat(...items: Array<Many<T>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.concat
+ */
+ concat<TItem>(...items: Array<Many<TItem>>): LoDashExplicitArrayWrapper<TItem>;
+
+ /**
+ * @see _.concat
+ */
+ concat(...items: Array<Many<T>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.prototype.plant
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * Creates a clone of the chained sequence planting value as the wrapped value.
+ * @param value The value to plant as the wrapped value.
+ * @return Returns the new lodash wrapper instance.
+ */
+ plant(value: number): LoDashImplicitWrapper<number>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: string): LoDashImplicitStringWrapper;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: boolean): LoDashImplicitWrapper<boolean>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: number[]): LoDashImplicitNumberArrayWrapper;
+
+ /**
+ * @see _.plant
+ */
+ plant<T>(value: T[]): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant<T>(value: ReadonlyArray<T>): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant<T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: any): LoDashImplicitWrapper<any>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.plant
+ */
+ plant(value: number): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: string): LoDashExplicitStringWrapper;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: boolean): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: number[]): LoDashExplicitNumberArrayWrapper;
+
+ /**
+ * @see _.plant
+ */
+ plant<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant<T extends {}>(value: T): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.plant
+ */
+ plant(value: any): LoDashExplicitWrapper<any>;
+ }
+
+ //_.prototype.reverse
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * Reverses the wrapped array so the first element becomes the last, the second element becomes the second to
+ * last, and so on.
+ *
+ * Note: This method mutates the wrapped array.
+ *
+ * @return Returns the new reversed lodash wrapper instance.
+ */
+ reverse(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.reverse
+ */
+ reverse(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.prototype.toJSON
+ interface LoDashWrapperBase<T, TWrapper> {
+ /**
+ * @see _.value
+ */
+ toJSON(): T;
+ }
+
+ //_.prototype.toString
+ interface LoDashWrapperBase<T, TWrapper> {
+ /**
+ * Produces the result of coercing the unwrapped value to a string.
+ *
+ * @return Returns the coerced string value.
+ */
+ toString(): string;
+ }
+
+ //_.prototype.value
+ interface LoDashWrapperBase<T, TWrapper> {
+ /**
+ * Executes the chained sequence to extract the unwrapped value.
+ *
+ * @alias _.toJSON, _.valueOf
+ *
+ * @return Returns the resolved unwrapped value.
+ */
+ value(): T;
+ }
+
+ //_.valueOf
+ interface LoDashWrapperBase<T, TWrapper> {
+ /**
+ * @see _.value
+ */
+ valueOf(): T;
+ }
+
+ /**************
+ * Collection *
+ **************/
+
+ //_.at
+ interface LoDashStatic {
+ /**
+ * Creates an array of elements corresponding to the given keys, or indexes, of collection. Keys may be
+ * specified as individual arguments or as arrays of keys.
+ *
+ * @param collection The collection to iterate over.
+ * @param props The property names or indexes of elements to pick, specified individually or in arrays.
+ * @return Returns the new array of picked elements.
+ */
+ at<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ ...props: Array<Many<number|string>>
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.at
+ */
+ at(...props: Array<Many<number|string>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.at
+ */
+ at<T>(...props: Array<Many<number|string>>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.at
+ */
+ at(...props: Array<Many<number|string>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.at
+ */
+ at<T>(...props: Array<Many<number|string>>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.countBy
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of keys generated from the results of running each element of collection through
+ * iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The
+ * iteratee is bound to thisArg and invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * If a property name is provided for iteratee the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for iteratee the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the composed aggregate object.
+ */
+ countBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): Dictionary<number>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<number>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratee?: NumericDictionaryIterator<T, any>
+ ): Dictionary<number>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ iteratee?: string
+ ): Dictionary<number>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<W, T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ iteratee?: W
+ ): Dictionary<number>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ iteratee?: Object
+ ): Dictionary<number>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<W>(
+ iteratee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>|NumericDictionaryIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<W>(
+ iteratee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<W>(
+ iteratee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.countBy
+ */
+ countBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>|NumericDictionaryIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+
+ /**
+ * @see _.countBy
+ */
+ countBy<W>(
+ iteratee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<number>>;
+ }
+
+ //_.each
+ interface LoDashStatic {
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: T[],
+ iteratee?: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.forEach
+ */
+ each(
+ collection: string,
+ iteratee?: ListIterator<string, any>
+ ): string;
+
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: List<T>,
+ iteratee?: ListIterator<T, any>
+ ): List<T>;
+
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forEach
+ */
+ each<T extends {}>(
+ collection: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+
+ /**
+ * @see _.forEach
+ */
+ each<T extends {}, TValue>(
+ collection: T,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T;
+
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: T[] | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T[] | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ each(
+ collection: string | null | undefined,
+ iteratee?: ListIterator<string, any>
+ ): string | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): List<T> | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ each<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ each<T extends {}>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<any, any>
+ ): T | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ each<T extends {}, TValue>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T | null | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.forEach
+ */
+ each(
+ iteratee: ListIterator<string, any>
+ ): LoDashImplicitWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ each(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ each<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.forEach
+ */
+ each(
+ iteratee: ListIterator<string, any>
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ each(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ each<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.eachRight
+ interface LoDashStatic {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ collection: string,
+ iteratee?: ListIterator<string, any>
+ ): string;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: T[],
+ iteratee?: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: List<T>,
+ iteratee?: ListIterator<T, any>
+ ): List<T>;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T extends {}>(
+ collection: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T extends {}, TValue>(
+ collection: T,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ collection: string | null | undefined,
+ iteratee?: ListIterator<string, any>
+ ): string | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: T[] | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T[] | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): List<T> | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T extends {}>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<any, any>
+ ): T | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<T extends {}, TValue>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T | null | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ iteratee: ListIterator<string, any>
+ ): LoDashImplicitWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ iteratee: ListIterator<string, any>
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ eachRight<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.every
+ interface LoDashStatic {
+ /**
+ * Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate
+ * returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).
+ *
+ * @param collection The collection to iterate over.
+ * @param predicate The function invoked per iteration.
+ * @return Returns true if all elements pass the predicate check, else false.
+ */
+ every<T>(
+ collection: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every<T>(
+ collection: Dictionary<T> | null | undefined,
+ predicate?: DictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every<T>(
+ collection: NumericDictionary<T> | null | undefined,
+ predicate?: NumericDictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ predicate?: string|any[]
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ predicate?: PartialObject<T>
+ ): boolean;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: string|any[]
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: PartialObject<T>
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.every
+ */
+ every<TResult>(
+ predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: string|any[]
+ ): boolean;
+
+ /**
+ * @see _.every
+ */
+ every<TResult>(
+ predicate?: PartialObject<TResult>
+ ): boolean;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: string|any[]
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: PartialObject<T>
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.every
+ */
+ every<TResult>(
+ predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.every
+ */
+ every(
+ predicate?: string|any[]
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.every
+ */
+ every<TResult>(
+ predicate?: PartialObject<TResult>
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.filter
+ interface LoDashStatic {
+ /**
+ * Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The
+ * predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param collection The collection to iterate over.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the new filtered array.
+ */
+ filter<T>(
+ collection: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>
+ ): T[];
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ collection: Dictionary<T> | null | undefined,
+ predicate?: DictionaryIterator<T, boolean>
+ ): T[];
+
+ /**
+ * @see _.filter
+ */
+ filter(
+ collection: string | null | undefined,
+ predicate?: StringIterator<boolean>
+ ): string[];
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate: string|RegExp
+ ): T[];
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate: PartialObject<T>
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate?: StringIterator<boolean>
+ ): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate: string|RegExp
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter(predicate: PartialObject<T>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ predicate: string|RegExp
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(predicate: PartialObject<T>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate?: StringIterator<boolean>
+ ): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter(
+ predicate: string|RegExp
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter(predicate: PartialObject<T>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(
+ predicate: string|RegExp
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.filter
+ */
+ filter<T>(predicate: PartialObject<T>): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.find
+ interface LoDashStatic {
+ /**
+ * Iterates over elements of collection, returning the first element predicate returns truthy for.
+ * The predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param collection The collection to search.
+ * @param predicate The function invoked per iteration.
+ * @param fromIndex The index to search from.
+ * @return Returns the matched element, else undefined.
+ */
+ find<T>(
+ collection: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ */
+ find<T>(
+ collection: Dictionary<T> | null | undefined,
+ predicate?: DictionaryIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ */
+ find<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate?: string,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ */
+ find<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate?: PartialObject<T>,
+ fromIndex?: number
+ ): T|undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: string,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: PartialObject<T>,
+ fromIndex?: number
+ ): T|undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.find
+ */
+ find<TResult>(
+ predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>,
+ fromIndex?: number
+ ): TResult|undefined;
+
+ /**
+ * @see _.find
+ */
+ find<TResult>(
+ predicate?: string,
+ fromIndex?: number
+ ): TResult|undefined;
+
+ /**
+ * @see _.find
+ */
+ find<TResult>(
+ predicate?: PartialObject<TResult>,
+ fromIndex?: number
+ ): TResult|undefined;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): any;
+
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: string,
+ fromIndex?: number
+ ): any;
+
+ /**
+ * @see _.find
+ */
+ find(
+ predicate?: PartialObject<T>,
+ fromIndex?: number
+ ): any;
+ }
+
+ //_.findLast
+ interface LoDashStatic {
+ /**
+ * This method is like _.find except that it iterates over elements of a collection from
+ * right to left.
+ * @param collection Searches for a value in this list.
+ * @param callback The function called per iteration.
+ * @param fromIndex The index to search from.
+ * @return The found element, else undefined.
+ **/
+ findLast<T>(
+ collection: T[] | null | undefined,
+ callback: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ **/
+ findLast<T>(
+ collection: List<T> | null | undefined,
+ callback: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ **/
+ findLast<T>(
+ collection: Dictionary<T> | null | undefined,
+ callback: DictionaryIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.pluck style callback
+ **/
+ findLast<W, T>(
+ collection: T[] | null | undefined,
+ whereValue: W,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.pluck style callback
+ **/
+ findLast<W, T>(
+ collection: List<T> | null | undefined,
+ whereValue: W,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.pluck style callback
+ **/
+ findLast<W, T>(
+ collection: Dictionary<T> | null | undefined,
+ whereValue: W,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.where style callback
+ **/
+ findLast<T>(
+ collection: T[] | null | undefined,
+ pluckValue: string,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.where style callback
+ **/
+ findLast<T>(
+ collection: List<T> | null | undefined,
+ pluckValue: string,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.find
+ * @param _.where style callback
+ **/
+ findLast<T>(
+ collection: Dictionary<T> | null | undefined,
+ pluckValue: string,
+ fromIndex?: number
+ ): T|undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.findLast
+ */
+ findLast(
+ callback: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): T|undefined;
+ /**
+ * @see _.findLast
+ * @param _.where style callback
+ */
+ findLast<W>(
+ whereValue: W,
+ fromIndex?: number
+ ): T|undefined;
+
+ /**
+ * @see _.findLast
+ * @param _.where style callback
+ */
+ findLast(
+ pluckValue: string,
+ fromIndex?: number
+ ): T|undefined;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.findLast
+ */
+ findLast(
+ predicate?: ListIterator<T, boolean>,
+ fromIndex?: number
+ ): any;
+
+ /**
+ * @see _.findLast
+ */
+ findLast(
+ predicate?: string,
+ fromIndex?: number
+ ): any;
+
+ /**
+ * @see _.findLast
+ */
+ findLast(
+ predicate?: PartialObject<T>,
+ fromIndex?: number
+ ): any;
+ }
+
+ //_.flatMap
+ interface LoDashStatic {
+ /**
+ * Creates an array of flattened values by running each element in collection through iteratee
+ * and concating its result to the other mapped values. The iteratee is invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @return Returns the new flattened array.
+ */
+ flatMap<T, TResult>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: List<any> | null | undefined,
+ iteratee?: ListIterator<any, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<T, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: Dictionary<any> | null | undefined,
+ iteratee?: DictionaryIterator<any, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<T, TResult>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratee?: NumericDictionaryIterator<T, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: NumericDictionary<any> | null | undefined,
+ iteratee?: NumericDictionaryIterator<any, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TObject extends Object, TResult>(
+ collection: TObject | null | undefined,
+ iteratee?: ObjectIterator<any, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: Object | null | undefined,
+ iteratee?: ObjectIterator<any, Many<TResult>>
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TWhere extends Object, TObject extends Object>(
+ collection: TObject | null | undefined,
+ iteratee: TWhere
+ ): boolean[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TObject extends Object, TResult>(
+ collection: TObject | null | undefined,
+ iteratee: Object|string
+ ): TResult[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TObject extends Object>(
+ collection: TObject | null | undefined,
+ iteratee: [string, any]
+ ): boolean[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: string | null | undefined
+ ): string[];
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ collection: Object | null | undefined,
+ iteratee?: Object|string
+ ): TResult[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ListIterator<string, Many<TResult>>
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ListIterator<T, Many<TResult>>|string
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TWhere extends Object>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(
+ iteratee: [string, any]
+ ): LoDashImplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<T, TResult>(
+ iteratee: ListIterator<T, Many<TResult>>|DictionaryIterator<T, Many<TResult>>|NumericDictionaryIterator<T, Many<TResult>>
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ObjectIterator<any, Many<TResult>>|string
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TWhere extends Object>(
+ iteratee: TWhere
+ ): LoDashImplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(
+ iteratee: [string, any]
+ ): LoDashImplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ListIterator<string, Many<TResult>>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ListIterator<T, Many<TResult>>|string
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TWhere extends Object>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(
+ iteratee: [string, any]
+ ): LoDashExplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.flatMap
+ */
+ flatMap<T, TResult>(
+ iteratee: ListIterator<T, Many<TResult>>|DictionaryIterator<T, Many<TResult>>|NumericDictionaryIterator<T, Many<TResult>>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(
+ iteratee: ObjectIterator<any, Many<TResult>>|string
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TWhere extends Object>(
+ iteratee: TWhere
+ ): LoDashExplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap(
+ iteratee: [string, any]
+ ): LoDashExplicitArrayWrapper<boolean>;
+
+ /**
+ * @see _.flatMap
+ */
+ flatMap<TResult>(): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.forEach
+ interface LoDashStatic {
+ /**
+ * Iterates over elements of collection invoking iteratee for each element. The iteratee is bound to thisArg
+ * and invoked with three arguments:
+ * (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.
+ *
+ * Note: As with other "Collections" methods, objects with a "length" property are iterated like arrays. To
+ * avoid this behavior _.forIn or _.forOwn may be used for object iteration.
+ *
+ * @alias _.each
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ */
+ forEach<T>(
+ collection: T[],
+ iteratee?: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ collection: string,
+ iteratee?: ListIterator<string, any>
+ ): string;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T>(
+ collection: List<T>,
+ iteratee?: ListIterator<T, any>
+ ): List<T>;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T>(
+ collection: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T extends {}>(
+ collection: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T extends {}, TValue>(
+ collection: T,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T>(
+ collection: T[] | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T[] | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ collection: string | null | undefined,
+ iteratee?: ListIterator<string, any>
+ ): string | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): List<T> | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T extends {}>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<any, any>
+ ): T | null | undefined;
+
+ /**
+ * @see _.forEach
+ */
+ forEach<T extends {}, TValue>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T | null | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ iteratee: ListIterator<string, any>
+ ): LoDashImplicitWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ forEach<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ iteratee: ListIterator<string, any>
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ forEach(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEach
+ */
+ forEach<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.forEachRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.forEach except that it iterates over elements of collection from right to left.
+ *
+ * @alias _.eachRight
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function called per iteration.
+ * @param thisArg The this binding of callback.
+ */
+ forEachRight<T>(
+ collection: T[],
+ iteratee?: ListIterator<T, any>
+ ): T[];
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ collection: string,
+ iteratee?: ListIterator<string, any>
+ ): string;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T>(
+ collection: List<T>,
+ iteratee?: ListIterator<T, any>
+ ): List<T>;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T>(
+ collection: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T extends {}>(
+ collection: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T extends {}, TValue>(
+ collection: T,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T>(
+ collection: T[] | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T[] | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ collection: string | null | undefined,
+ iteratee?: ListIterator<string, any>
+ ): string | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): List<T> | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T extends {}>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<any, any>
+ ): T | null | undefined;
+
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<T extends {}, TValue>(
+ collection: T | null | undefined,
+ iteratee?: ObjectIterator<TValue, any>
+ ): T | null | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ iteratee: ListIterator<string, any>
+ ): LoDashImplicitWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ iteratee: ListIterator<string, any>
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight(
+ iteratee: ListIterator<T, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forEachRight
+ */
+ forEachRight<TValue>(
+ iteratee?: ListIterator<TValue, any>|DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.groupBy
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of keys generated from the results of running each element of collection through
+ * iteratee. The corresponding value of each key is an array of the elements responsible for generating the
+ * key. The iteratee is bound to thisArg and invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * If a property name is provided for iteratee the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for iteratee the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the composed aggregate object.
+ */
+ groupBy<T, TKey>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, TKey>
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ collection: List<any> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TKey>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, TKey>
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ collection: Dictionary<any> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TValue>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TWhere, T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: TWhere
+ ): Dictionary<T[]>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: Object
+ ): Dictionary<T[]>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TValue>(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TWhere>(
+ iteratee?: TWhere
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TKey>(
+ iteratee?: ListIterator<T, TKey>|DictionaryIterator<T, TKey>
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TValue>(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TWhere, T>(
+ iteratee?: TWhere
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: Object
+ ): LoDashImplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TValue>(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TWhere>(
+ iteratee?: TWhere
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TKey>(
+ iteratee?: ListIterator<T, TKey>|DictionaryIterator<T, TKey>
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T, TValue>(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<TWhere, T>(
+ iteratee?: TWhere
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+
+ /**
+ * @see _.groupBy
+ */
+ groupBy<T>(
+ iteratee?: Object
+ ): LoDashExplicitObjectWrapper<Dictionary<T[]>>;
+ }
+
+ //_.includes
+ interface LoDashStatic {
+ /**
+ * Checks if target is in collection using SameValueZero for equality comparisons. If fromIndex is negative,
+ * it’s used as the offset from the end of collection.
+ *
+ * @param collection The collection to search.
+ * @param target The value to search for.
+ * @param fromIndex The index to search from.
+ * @return True if the target element is found, else false.
+ */
+ includes<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ target: T,
+ fromIndex?: number
+ ): boolean;
+
+ /**
+ * @see _.includes
+ */
+ includes(
+ collection: string | null | undefined,
+ target: string,
+ fromIndex?: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.includes
+ */
+ includes(
+ target: T,
+ fromIndex?: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.includes
+ */
+ includes<TValue>(
+ target: TValue,
+ fromIndex?: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.includes
+ */
+ includes(
+ target: string,
+ fromIndex?: number
+ ): boolean;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.includes
+ */
+ includes(
+ target: T,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.includes
+ */
+ includes<TValue>(
+ target: TValue,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.includes
+ */
+ includes(
+ target: string,
+ fromIndex?: number
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.keyBy
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of keys generated from the results of running each element of collection through
+ * iteratee. The corresponding value of each key is the last element responsible for generating the key. The
+ * iteratee function is bound to thisArg and invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * If a property name is provided for iteratee the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for iteratee the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the composed aggregate object.
+ */
+ keyBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratee?: NumericDictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ collection: List<T>|NumericDictionary<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): Dictionary<T>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<W extends Object, T>(
+ collection: List<T>|NumericDictionary<T>|Dictionary<T> | null | undefined,
+ iteratee?: W
+ ): Dictionary<T>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ collection: List<T>|NumericDictionary<T>|Dictionary<T> | null | undefined,
+ iteratee?: Object
+ ): Dictionary<T>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<W extends Object>(
+ iteratee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: ListIterator<T, any>|NumericDictionaryIterator<T, any>|DictionaryIterator<T, any>
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<W extends Object, T>(
+ iteratee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: Object
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: ListIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<W extends Object>(
+ iteratee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: ListIterator<T, any>|NumericDictionaryIterator<T, any>|DictionaryIterator<T, any>
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<W extends Object, T>(
+ iteratee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.keyBy
+ */
+ keyBy<T>(
+ iteratee?: Object
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ //_.invoke
+ interface LoDashStatic {
+ /**
+ * Invokes the method at path of object.
+ * @param object The object to query.
+ * @param path The path of the method to invoke.
+ * @param args The arguments to invoke the method with.
+ **/
+ invoke<TObject extends Object, TResult>(
+ object: TObject,
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+
+ /**
+ * @see _.invoke
+ **/
+ invoke<TValue, TResult>(
+ object: Dictionary<TValue>|TValue[],
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+
+ /**
+ * @see _.invoke
+ **/
+ invoke<TResult>(
+ object: any,
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.invoke
+ **/
+ invoke<TResult>(
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.invoke
+ **/
+ invoke<TResult>(
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.invoke
+ **/
+ invoke<TResult>(
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.invoke
+ **/
+ invoke<TResult>(
+ path: Many<StringRepresentable>,
+ ...args: any[]): TResult;
+ }
+
+ //_.invokeMap
+ interface LoDashStatic {
+ /**
+ * Invokes the method named by methodName on each element in the collection returning
+ * an array of the results of each invoked method. Additional arguments will be provided
+ * to each invoked method. If methodName is a function it will be invoked for, and this
+ * bound to, each element in the collection.
+ * @param collection The collection to iterate over.
+ * @param methodName The name of the method to invoke.
+ * @param args Arguments to invoke the method with.
+ **/
+ invokeMap<TValue extends {}, TResult>(
+ collection: TValue[] | null | undefined,
+ methodName: string,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TValue extends {}, TResult>(
+ collection: Dictionary<TValue> | null | undefined,
+ methodName: string,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ collection: Array<{}> | null | undefined,
+ methodName: string,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ collection: Dictionary<{}> | null | undefined,
+ methodName: string,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TValue extends {}, TResult>(
+ collection: TValue[] | null | undefined,
+ method: (...args: any[]) => TResult,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TValue extends {}, TResult>(
+ collection: Dictionary<TValue> | null | undefined,
+ method: (...args: any[]) => TResult,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ collection: Array<{}> | null | undefined,
+ method: (...args: any[]) => TResult,
+ ...args: any[]): TResult[];
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ collection: Dictionary<{}> | null | undefined,
+ method: (...args: any[]) => TResult,
+ ...args: any[]): TResult[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ methodName: string,
+ ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ method: (...args: any[]) => TResult,
+ ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ methodName: string,
+ ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ method: (...args: any[]) => TResult,
+ ...args: any[]): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ methodName: string,
+ ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ method: (...args: any[]) => TResult,
+ ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ methodName: string,
+ ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.invokeMap
+ **/
+ invokeMap<TResult>(
+ method: (...args: any[]) => TResult,
+ ...args: any[]): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.map
+ interface LoDashStatic {
+ /**
+ * Creates an array of values by running each element in collection through iteratee. The iteratee is bound to
+ * thisArg and invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for iteratee the created _.property style callback returns the property value
+ * of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for iteratee the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues,
+ * _.reject, and _.some.
+ *
+ * The guarded methods are:
+ * ary, callback, chunk, clone, create, curry, curryRight, drop, dropRight, every, fill, flatten, invert, max,
+ * min, parseInt, slice, sortBy, take, takeRight, template, trim, trimLeft, trimRight, trunc, random, range,
+ * sample, some, sum, uniq, and words
+ *
+ * @param collection The collection to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the new mapped array.
+ */
+ map<T, TResult>(
+ collection: List<T> | null | undefined,
+ iteratee: ListIterator<T, TResult>
+ ): TResult[];
+
+ /**
+ * @see _.map
+ */
+ map<T>(collection: List<T> | null | undefined): T[];
+
+ /**
+ * @see _.map
+ */
+ map<T extends {}, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee: DictionaryIterator<T, TResult>
+ ): TResult[];
+
+ /** @see _.map */
+ map<T, K extends keyof T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee: K
+ ): T[K][];
+
+ /** @see _.map */
+ map<T>(collection: Dictionary<T> | null | undefined): T[];
+
+ map<T extends {}, TResult>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratee?: NumericDictionaryIterator<T, TResult>
+ ): TResult[];
+
+ /** @see _.map */
+ map<T, K extends keyof T>(collection: List<T> | null | undefined, iteratee: K): T[K][];
+
+ /**
+ * @see _.map
+ */
+ map<T, TResult>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ iteratee?: string
+ ): TResult[];
+
+ /**
+ * @see _.map
+ */
+ map<T, TObject extends {}>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ iteratee?: TObject
+ ): boolean[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.map
+ */
+ map<TResult>(
+ iteratee: ListIterator<T, TResult>
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.map
+ */
+ map(): LoDashImplicitArrayWrapper<T>;
+
+ /** @see _.map */
+ map<K extends keyof T>(iteratee: K): LoDashImplicitArrayWrapper<T[K]>;
+
+ /**
+ * @see _.map
+ */
+ map<TResult>(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.map
+ */
+ map<TObject extends {}>(
+ iteratee: TObject
+ ): LoDashImplicitArrayWrapper<boolean>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.map
+ */
+ map<TValue, TResult>(
+ iteratee: ListIterator<TValue, TResult>|DictionaryIterator<TValue, TResult>
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /** @see _.map */
+ map(): LoDashImplicitArrayWrapper<T[keyof T]>;
+
+ /** @see _.map */
+ map<K extends keyof T>(iteratee: K): LoDashImplicitArrayWrapper<T[K]>;
+
+ /**
+ * @see _.map
+ */
+ map<TValue, TResult>(
+ iteratee: string
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.map
+ */
+ map<TObject extends {}>(
+ iteratee: TObject
+ ): LoDashImplicitArrayWrapper<boolean>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.map
+ */
+ map<TResult>(
+ iteratee: ListIterator<T, TResult>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /** @see _.map */
+ map(): LoDashExplicitArrayWrapper<T>;
+
+ /** @see _.map */
+ map<K extends keyof T>(iteratee: K): LoDashExplicitArrayWrapper<T[K]>;
+
+ /**
+ * @see _.map
+ */
+ map<TResult>(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.map
+ */
+ map<TObject extends {}>(
+ iteratee: TObject
+ ): LoDashExplicitArrayWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.map
+ */
+ map<TValue, TResult>(
+ iteratee: ListIterator<TValue, TResult>|DictionaryIterator<TValue, TResult>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /** @see _.map */
+ map(): LoDashExplicitArrayWrapper<T[keyof T]>;
+
+ /**
+ * @see _.map
+ */
+ map<TValue, TResult>(
+ iteratee: string
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.map
+ */
+ map<TObject extends {}>(
+ iteratee: TObject
+ ): LoDashExplicitArrayWrapper<boolean>;
+ }
+
+ //_.partition
+ interface LoDashStatic {
+ /**
+ * Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for,
+ * while the second of which contains elements predicate returns falsey for.
+ * The predicate is bound to thisArg and invoked with three arguments: (value, index|key, collection).
+ *
+ * If a property name is provided for predicate the created _.property style callback
+ * returns the property value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback
+ * returns true for elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns
+ * true for elements that have the properties of the given object, else false.
+ *
+ * @param collection The collection to iterate over.
+ * @param callback The function called per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the array of grouped elements.
+ **/
+ partition<T>(
+ collection: List<T> | null | undefined,
+ callback: ListIterator<T, boolean>): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<T>(
+ collection: Dictionary<T> | null | undefined,
+ callback: DictionaryIterator<T, boolean>): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<W, T>(
+ collection: List<T> | null | undefined,
+ whereValue: W): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<W, T>(
+ collection: Dictionary<T> | null | undefined,
+ whereValue: W): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<T>(
+ collection: List<T> | null | undefined,
+ path: string,
+ srcValue: any): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<T>(
+ collection: Dictionary<T> | null | undefined,
+ path: string,
+ srcValue: any): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<T>(
+ collection: List<T> | null | undefined,
+ pluckValue: string): T[][];
+
+ /**
+ * @see _.partition
+ **/
+ partition<T>(
+ collection: Dictionary<T> | null | undefined,
+ pluckValue: string): T[][];
+ }
+
+ interface LoDashImplicitStringWrapper {
+ /**
+ * @see _.partition
+ */
+ partition(
+ callback: ListIterator<string, boolean>): LoDashImplicitArrayWrapper<string[]>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.partition
+ */
+ partition(
+ callback: ListIterator<T, boolean>): LoDashImplicitArrayWrapper<T[]>;
+ /**
+ * @see _.partition
+ */
+ partition<W>(
+ whereValue: W): LoDashImplicitArrayWrapper<T[]>;
+ /**
+ * @see _.partition
+ */
+ partition(
+ path: string,
+ srcValue: any): LoDashImplicitArrayWrapper<T[]>;
+ /**
+ * @see _.partition
+ */
+ partition(
+ pluckValue: string): LoDashImplicitArrayWrapper<T[]>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.partition
+ */
+ partition<TResult>(
+ callback: ListIterator<TResult, boolean>): LoDashImplicitArrayWrapper<TResult[]>;
+
+ /**
+ * @see _.partition
+ */
+ partition<TResult>(
+ callback: DictionaryIterator<TResult, boolean>): LoDashImplicitArrayWrapper<TResult[]>;
+
+ /**
+ * @see _.partition
+ */
+ partition<W, TResult>(
+ whereValue: W): LoDashImplicitArrayWrapper<TResult[]>;
+
+ /**
+ * @see _.partition
+ */
+ partition<TResult>(
+ path: string,
+ srcValue: any): LoDashImplicitArrayWrapper<TResult[]>;
+
+ /**
+ * @see _.partition
+ */
+ partition<TResult>(
+ pluckValue: string): LoDashImplicitArrayWrapper<TResult[]>;
+ }
+
+ //_.reduce
+ interface LoDashStatic {
+ /**
+ * Reduces a collection to a value which is the accumulated result of running each
+ * element in the collection through the callback, where each successive callback execution
+ * consumes the return value of the previous execution. If accumulator is not provided the
+ * first element of the collection will be used as the initial accumulator value. The callback
+ * is bound to thisArg and invoked with four arguments; (accumulator, value, index|key, collection).
+ * @param collection The collection to iterate over.
+ * @param callback The function called per iteration.
+ * @param accumulator Initial value of the accumulator.
+ * @param thisArg The this binding of callback.
+ * @return Returns the accumulated value.
+ **/
+ reduce<T, TResult>(
+ collection: T[] | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: List<T> | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: NumericDictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: T[] | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: List<T> | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<T, TResult>(
+ collection: NumericDictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.reduce
+ **/
+ reduce<TResult>(
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<TResult>(
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.reduce
+ **/
+ reduce<TValue, TResult>(
+ callback: MemoIterator<TValue, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<TValue, TResult>(
+ callback: MemoIterator<TValue, TResult>): TResult | undefined;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.reduce
+ **/
+ reduce<TValue, TResult>(
+ callback: MemoIterator<TValue, TResult>,
+ accumulator: TResult): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.reduce
+ **/
+ reduce<TValue, TResult>(
+ callback: MemoIterator<TValue, TResult>): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**LoDashExplicitWrapper
+ * @see _.reduce
+ */
+ reduce<TResult>(
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.reduce
+ */
+ reduce<TResult>(
+ callback: MemoIterator<T, TResult>): LoDashExplicitWrapper<TResult>;
+ }
+
+ //_.reduceRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.reduce except that it iterates over elements of a collection from
+ * right to left.
+ * @param collection The collection to iterate over.
+ * @param callback The function called per iteration.
+ * @param accumulator Initial value of the accumulator.
+ * @param thisArg The this binding of callback.
+ * @return The accumulated value.
+ **/
+ reduceRight<T, TResult>(
+ collection: T[] | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduceRight
+ **/
+ reduceRight<T, TResult>(
+ collection: List<T> | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduceRight
+ **/
+ reduceRight<T, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>,
+ accumulator: TResult): TResult;
+
+ /**
+ * @see _.reduceRight
+ **/
+ reduceRight<T, TResult>(
+ collection: T[] | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+
+ /**
+ * @see _.reduceRight
+ **/
+ reduceRight<T, TResult>(
+ collection: List<T> | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+
+ /**
+ * @see _.reduceRight
+ **/
+ reduceRight<T, TResult>(
+ collection: Dictionary<T> | null | undefined,
+ callback: MemoIterator<T, TResult>): TResult | undefined;
+ }
+
+ //_.reject
+ interface LoDashStatic {
+ /**
+ * The opposite of _.filter; this method returns the elements of collection that predicate does not return
+ * truthy for.
+ *
+ * @param collection The collection to iterate over.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the new filtered array.
+ */
+ reject<T>(
+ collection: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>
+ ): T[];
+
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ collection: Dictionary<T> | null | undefined,
+ predicate?: DictionaryIterator<T, boolean>
+ ): T[];
+
+ /**
+ * @see _.reject
+ */
+ reject(
+ collection: string | null | undefined,
+ predicate?: StringIterator<boolean>
+ ): string[];
+
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate: string
+ ): T[];
+
+ /**
+ * @see _.reject
+ */
+ reject<W extends {}, T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ predicate: W
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate?: StringIterator<boolean>
+ ): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate: ListIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<W>(predicate: W): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ predicate: string
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<W, T>(predicate: W): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate?: StringIterator<boolean>
+ ): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate: ListIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject(
+ predicate: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<W>(predicate: W): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ predicate: ListIterator<T, boolean>|DictionaryIterator<T, boolean>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<T>(
+ predicate: string
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.reject
+ */
+ reject<W, T>(predicate: W): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.sample
+ interface LoDashStatic {
+ /**
+ * Gets a random element from collection.
+ *
+ * @param collection The collection to sample.
+ * @return Returns the random element.
+ */
+ sample<T>(
+ collection: List<T> | Dictionary<T> | NumericDictionary<T> | object | null | undefined
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sample
+ */
+ sample(): string | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sample
+ */
+ sample(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sample
+ */
+ sample<T>(): T | undefined;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sample
+ */
+ sample(): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sample
+ */
+ sample<TWrapper>(): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sample
+ */
+ sample<TWrapper>(): TWrapper;
+ }
+
+ //_.sampleSize
+ interface LoDashStatic {
+ /**
+ * Gets n random elements at unique keys from collection up to the size of collection.
+ *
+ * @param collection The collection to sample.
+ * @param n The number of elements to sample.
+ * @return Returns the random elements.
+ */
+ sampleSize<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ n?: number
+ ): T[];
+
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize<O extends Object, T>(
+ collection: O | null | undefined,
+ n?: number
+ ): T[];
+
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize<T>(
+ collection: Object | null | undefined,
+ n?: number
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize(
+ n?: number
+ ): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize(
+ n?: number
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize<T>(
+ n?: number
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize(
+ n?: number
+ ): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize(
+ n?: number
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sampleSize
+ */
+ sampleSize<T>(
+ n?: number
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.shuffle
+ interface LoDashStatic {
+ /**
+ * Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.
+ *
+ * @param collection The collection to shuffle.
+ * @return Returns the new shuffled array.
+ */
+ shuffle<T>(collection: List<T>|Dictionary<T> | null | undefined): T[];
+
+ /**
+ * @see _.shuffle
+ */
+ shuffle(collection: string | null | undefined): string[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.shuffle
+ */
+ shuffle<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.size
+ interface LoDashStatic {
+ /**
+ * Gets the size of collection by returning its length for array-like values or the number of own enumerable
+ * properties for objects.
+ *
+ * @param collection The collection to inspect.
+ * @return Returns the size of collection.
+ */
+ size<T>(collection: List<T>|Dictionary<T> | null | undefined): number;
+
+ /**
+ * @see _.size
+ */
+ size(collection: string | null | undefined): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.size
+ */
+ size(): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.size
+ */
+ size(): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.size
+ */
+ size(): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.size
+ */
+ size(): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.size
+ */
+ size(): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.size
+ */
+ size(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.some
+ interface LoDashStatic {
+ /**
+ * Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate
+ * returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).
+ *
+ * @param collection The collection to iterate over.
+ * @param predicate The function invoked per iteration.
+ * @return Returns true if any element passes the predicate check, else false.
+ */
+ some<T>(
+ collection: List<T> | null | undefined,
+ predicate?: ListIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: Dictionary<T> | null | undefined,
+ predicate?: DictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: NumericDictionary<T> | null | undefined,
+ predicate?: NumericDictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some(
+ collection: Object | null | undefined,
+ predicate?: ObjectIterator<any, boolean>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ predicate?: string|[string, any]
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some(
+ collection: Object | null | undefined,
+ predicate?: string|[string, any]
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ predicate?: PartialObject<T>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: List<T>|Dictionary<T>|NumericDictionary<T> | null | undefined,
+ predicate?: PartialObject<T>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<T>(
+ collection: Object | null | undefined,
+ predicate?: PartialObject<T>
+ ): boolean;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: string|[string, any]
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: PartialObject<T>
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.some
+ */
+ some<TResult>(
+ predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>|ObjectIterator<any, boolean>
+ ): boolean;
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: string|[string, any]
+ ): boolean;
+
+ /**
+ * @see _.some
+ */
+ some<TResult>(
+ predicate?: PartialObject<TResult>
+ ): boolean;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: ListIterator<T, boolean>|NumericDictionaryIterator<T, boolean>
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: string|[string, any]
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: PartialObject<T>
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.some
+ */
+ some<TResult>(
+ predicate?: ListIterator<TResult, boolean>|DictionaryIterator<TResult, boolean>|NumericDictionaryIterator<T, boolean>|ObjectIterator<any, boolean>
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.some
+ */
+ some(
+ predicate?: string|[string, any]
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.some
+ */
+ some<TResult>(
+ predicate?: PartialObject<TResult>
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.sortBy
+ interface LoDashStatic {
+ /**
+ * Creates an array of elements, sorted in ascending order by the results of
+ * running each element in a collection through each iteratee. This method
+ * performs a stable sort, that is, it preserves the original sort order of
+ * equal elements. The iteratees are invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {...(Function|Function[]|Object|Object[]|string|string[])} [iteratees=[_.identity]]
+ * The iteratees to sort by, specified individually or in arrays.
+ * @returns {Array} Returns the new sorted array.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'fred', 'age': 48 },
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'barney', 'age': 34 }
+ * ];
+ *
+ * _.sortBy(users, function(o) { return o.user; });
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ *
+ * _.sortBy(users, ['user', 'age']);
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]
+ *
+ * _.sortBy(users, 'user', function(o) {
+ * return Math.floor(o.age / 10);
+ * });
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ */
+ sortBy<T, TSort>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, TSort>
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T, TSort>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, TSort>
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee: string
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<W extends {}, T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ whereValue: W
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(
+ collection: List<T> | null | undefined,
+ iteratees: Array<ListIterator<T, any>|string|Object>
+ ): T[];
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(
+ collection: List<T> | null | undefined,
+ ...iteratees: Array<ListIterator<T, boolean>|Object|string>
+ ): T[];
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortBy
+ */
+ sortBy<TSort>(
+ iteratee?: ListIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy(iteratee: string): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<W extends {}>(whereValue: W): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy(): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy(...iteratees: Array<ListIterator<T, boolean>|Object|string>): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ **/
+ sortBy(iteratees: Array<ListIterator<T, any>|string|Object>): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T, TSort>(
+ iteratee?: ListIterator<T, TSort>|DictionaryIterator<T, TSort>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(iteratee: string): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<W extends {}, T>(whereValue: W): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sortBy
+ */
+ sortBy<TSort>(
+ iteratee?: ListIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy(iteratee: string): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<W extends {}>(whereValue: W): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T, TSort>(
+ iteratee?: ListIterator<T, TSort>|DictionaryIterator<T, TSort>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(iteratee: string): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<W extends {}, T>(whereValue: W): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.sortBy
+ */
+ sortBy<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.orderBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.sortBy` except that it allows specifying the sort
+ * orders of the iteratees to sort by. If `orders` is unspecified, all values
+ * are sorted in ascending order. Otherwise, specify an order of "desc" for
+ * descending or "asc" for ascending sort order of corresponding values.
+ *
+ * @static
+ * @memberOf _
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function[]|Object[]|string[]} [iteratees=[_.identity]] The iteratees to sort by.
+ * @param {string[]} [orders] The sort orders of `iteratees`.
+ * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
+ * @returns {Array} Returns the new sorted array.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'fred', 'age': 48 },
+ * { 'user': 'barney', 'age': 34 },
+ * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'barney', 'age': 36 }
+ * ];
+ *
+ * // sort by `user` in ascending order and by `age` in descending order
+ * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ */
+ orderBy<W extends Object, T>(
+ collection: List<T> | null | undefined,
+ iteratees?: Many<ListIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): T[];
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ collection: List<T> | null | undefined,
+ iteratees?: Many<ListIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): T[];
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): T[];
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ collection: NumericDictionary<T> | null | undefined,
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): T[];
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratees?: Many<DictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): T[];
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratees?: Many<DictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy(
+ iteratees?: Many<ListIterator<T, any>|string>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object>(
+ iteratees?: Many<ListIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<ListIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<ListIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<DictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<DictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy(
+ iteratees?: Many<ListIterator<T, any>|string>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object>(
+ iteratees?: Many<ListIterator<T, any>|string|W|(ListIterator<T, any>|string|W)>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<ListIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<ListIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<NumericDictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<W extends Object, T>(
+ iteratees?: Many<DictionaryIterator<T, any>|string|W>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+
+ /**
+ * @see _.orderBy
+ */
+ orderBy<T>(
+ iteratees?: Many<DictionaryIterator<T, any>|string|Object>,
+ orders?: Many<boolean|string>
+ ): LoDashExplicitArrayWrapper<T>;
+ }
+
+ /********
+ * Date *
+ ********/
+
+ //_.now
+ interface LoDashStatic {
+ /**
+ * Gets the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).
+ *
+ * @return The number of milliseconds.
+ */
+ now(): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.now
+ */
+ now(): number;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.now
+ */
+ now(): LoDashExplicitWrapper<number>;
+ }
+
+ /*************
+ * Functions *
+ *************/
+
+ //_.after
+ interface LoDashStatic {
+ /**
+ * The opposite of _.before; this method creates a function that invokes func once it’s called n or more times.
+ *
+ * @param n The number of calls before func is invoked.
+ * @param func The function to restrict.
+ * @return Returns the new restricted function.
+ */
+ after<TFunc extends Function>(
+ n: number,
+ func: TFunc
+ ): TFunc;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.after
+ **/
+ after<TFunc extends Function>(func: TFunc): LoDashImplicitObjectWrapper<TFunc>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.after
+ **/
+ after<TFunc extends Function>(func: TFunc): LoDashExplicitObjectWrapper<TFunc>;
+ }
+
+ //_.ary
+ interface LoDashStatic {
+ /**
+ * Creates a function that accepts up to n arguments ignoring any additional arguments.
+ *
+ * @param func The function to cap arguments for.
+ * @param n The arity cap.
+ * @returns Returns the new function.
+ */
+ ary<TResult extends Function>(
+ func: Function,
+ n?: number
+ ): TResult;
+
+ ary<T extends Function, TResult extends Function>(
+ func: T,
+ n?: number
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.ary
+ */
+ ary<TResult extends Function>(n?: number): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.ary
+ */
+ ary<TResult extends Function>(n?: number): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.before
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes func, with the this binding and arguments of the created function, while
+ * it’s called less than n times. Subsequent calls to the created function return the result of the last func
+ * invocation.
+ *
+ * @param n The number of calls at which func is no longer invoked.
+ * @param func The function to restrict.
+ * @return Returns the new restricted function.
+ */
+ before<TFunc extends Function>(
+ n: number,
+ func: TFunc
+ ): TFunc;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.before
+ **/
+ before<TFunc extends Function>(func: TFunc): LoDashImplicitObjectWrapper<TFunc>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.before
+ **/
+ before<TFunc extends Function>(func: TFunc): LoDashExplicitObjectWrapper<TFunc>;
+ }
+
+ //_.bind
+ interface FunctionBind {
+ placeholder: any;
+
+ <T extends Function, TResult extends Function>(
+ func: T,
+ thisArg: any,
+ ...partials: any[]
+ ): TResult;
+
+ <TResult extends Function>(
+ func: Function,
+ thisArg: any,
+ ...partials: any[]
+ ): TResult;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes func with the this binding of thisArg and prepends any additional _.bind
+ * arguments to those provided to the bound function.
+ *
+ * The _.bind.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for
+ * partially applied arguments.
+ *
+ * Note: Unlike native Function#bind this method does not set the "length" property of bound functions.
+ *
+ * @param func The function to bind.
+ * @param thisArg The this binding of func.
+ * @param partials The arguments to be partially applied.
+ * @return Returns the new bound function.
+ */
+ bind: FunctionBind;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.bind
+ */
+ bind<TResult extends Function>(
+ thisArg: any,
+ ...partials: any[]
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.bind
+ */
+ bind<TResult extends Function>(
+ thisArg: any,
+ ...partials: any[]
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.bindAll
+ interface LoDashStatic {
+ /**
+ * Binds methods of an object to the object itself, overwriting the existing method. Method names may be
+ * specified as individual arguments or as arrays of method names. If no method names are provided all
+ * enumerable function properties, own and inherited, of object are bound.
+ *
+ * Note: This method does not set the "length" property of bound functions.
+ *
+ * @param object The object to bind and assign the bound methods to.
+ * @param methodNames The object method names to bind, specified as individual method names or arrays of
+ * method names.
+ * @return Returns object.
+ */
+ bindAll<T>(
+ object: T,
+ ...methodNames: Array<Many<string>>
+ ): T;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.bindAll
+ */
+ bindAll(...methodNames: Array<Many<string>>): LoDashImplicitObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.bindAll
+ */
+ bindAll(...methodNames: Array<Many<string>>): LoDashExplicitObjectWrapper<T>;
+ }
+
+ //_.bindKey
+ interface FunctionBindKey {
+ placeholder: any;
+
+ <T extends Object, TResult extends Function>(
+ object: T,
+ key: any,
+ ...partials: any[]
+ ): TResult;
+
+ <TResult extends Function>(
+ object: Object,
+ key: any,
+ ...partials: any[]
+ ): TResult;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes the method at object[key] and prepends any additional _.bindKey arguments
+ * to those provided to the bound function.
+ *
+ * This method differs from _.bind by allowing bound functions to reference methods that may be redefined
+ * or don’t yet exist. See Peter Michaux’s article for more details.
+ *
+ * The _.bindKey.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder
+ * for partially applied arguments.
+ *
+ * @param object The object the method belongs to.
+ * @param key The key of the method.
+ * @param partials The arguments to be partially applied.
+ * @return Returns the new bound function.
+ */
+ bindKey: FunctionBindKey;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.bindKey
+ */
+ bindKey<TResult extends Function>(
+ key: any,
+ ...partials: any[]
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.bindKey
+ */
+ bindKey<TResult extends Function>(
+ key: any,
+ ...partials: any[]
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.createCallback
+ interface LoDashStatic {
+ /**
+ * Produces a callback bound to an optional thisArg. If func is a property name the created
+ * callback will return the property value for a given element. If func is an object the created
+ * callback will return true for elements that contain the equivalent object properties,
+ * otherwise it will return false.
+ * @param func The value to convert to a callback.
+ * @param thisArg The this binding of the created callback.
+ * @param argCount The number of arguments the callback accepts.
+ * @return A callback function.
+ **/
+ createCallback(
+ func: string,
+ argCount?: number): () => any;
+
+ /**
+ * @see _.createCallback
+ **/
+ createCallback(
+ func: Dictionary<any>,
+ argCount?: number): () => boolean;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.createCallback
+ **/
+ createCallback(
+ argCount?: number): LoDashImplicitObjectWrapper<() => any>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.createCallback
+ **/
+ createCallback(
+ argCount?: number): LoDashImplicitObjectWrapper<() => any>;
+ }
+
+ //_.curry
+ interface LoDashStatic {
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curry<T1, R>(func: (t1: T1) => R):
+ CurriedFunction1<T1, R>;
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curry<T1, T2, R>(func: (t1: T1, t2: T2) => R):
+ CurriedFunction2<T1, T2, R>;
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curry<T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3) => R):
+ CurriedFunction3<T1, T2, T3, R>;
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curry<T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R):
+ CurriedFunction4<T1, T2, T3, T4, R>;
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curry<T1, T2, T3, T4, T5, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R):
+ CurriedFunction5<T1, T2, T3, T4, T5, R>;
+ /**
+ * Creates a function that accepts one or more arguments of func that when called either invokes func returning
+ * its result, if all func arguments have been provided, or returns a function that accepts one or more of the
+ * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.
+ * @param func The function to curry.
+ * @param arity The arity of func.
+ * @return Returns the new curried function.
+ */
+ curry<TResult extends Function>(
+ func: Function,
+ arity?: number): TResult;
+ }
+
+ interface CurriedFunction1<T1, R> {
+ (): CurriedFunction1<T1, R>;
+ (t1: T1): R;
+ }
+
+ interface CurriedFunction2<T1, T2, R> {
+ (): CurriedFunction2<T1, T2, R>;
+ (t1: T1): CurriedFunction1<T2, R>;
+ (t1: T1, t2: T2): R;
+ }
+
+ interface CurriedFunction3<T1, T2, T3, R> {
+ (): CurriedFunction3<T1, T2, T3, R>;
+ (t1: T1): CurriedFunction2<T2, T3, R>;
+ (t1: T1, t2: T2): CurriedFunction1<T3, R>;
+ (t1: T1, t2: T2, t3: T3): R;
+ }
+
+ interface CurriedFunction4<T1, T2, T3, T4, R> {
+ (): CurriedFunction4<T1, T2, T3, T4, R>;
+ (t1: T1): CurriedFunction3<T2, T3, T4, R>;
+ (t1: T1, t2: T2): CurriedFunction2<T3, T4, R>;
+ (t1: T1, t2: T2, t3: T3): CurriedFunction1<T4, R>;
+ (t1: T1, t2: T2, t3: T3, t4: T4): R;
+ }
+
+ interface CurriedFunction5<T1, T2, T3, T4, T5, R> {
+ (): CurriedFunction5<T1, T2, T3, T4, T5, R>;
+ (t1: T1): CurriedFunction4<T2, T3, T4, T5, R>;
+ (t1: T1, t2: T2): CurriedFunction3<T3, T4, T5, R>;
+ (t1: T1, t2: T2, t3: T3): CurriedFunction2<T4, T5, R>;
+ (t1: T1, t2: T2, t3: T3, t4: T4): CurriedFunction1<T5, R>;
+ (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): R;
+ }
+ interface RightCurriedFunction1<T1, R>{
+ ():RightCurriedFunction1<T1, R>
+ (t1:T1):R
+ }
+ interface RightCurriedFunction2<T1,T2, R>{
+ ():RightCurriedFunction2<T1,T2, R>
+ (t2:T2):RightCurriedFunction1<T1, R>
+ (t1:T1,t2:T2):R
+ }
+ interface RightCurriedFunction3<T1,T2,T3, R>{
+ ():RightCurriedFunction3<T1,T2,T3, R>
+ (t3:T3):RightCurriedFunction2<T1,T2, R>
+ (t2:T2,t3:T3):RightCurriedFunction1<T1, R>
+ (t1:T1,t2:T2,t3:T3):R
+ }
+ interface RightCurriedFunction4<T1,T2,T3,T4, R>{
+ ():RightCurriedFunction4<T1,T2,T3,T4, R>
+ (t4:T4):RightCurriedFunction3<T1,T2,T3, R>
+ (t3:T3,t4:T4):RightCurriedFunction2<T1,T2, R>
+ (t2:T2,t3:T3,t4:T4):RightCurriedFunction1<T1, R>
+ (t1:T1,t2:T2,t3:T3,t4:T4):R
+ }
+ interface RightCurriedFunction5<T1,T2,T3,T4,T5, R>{
+ ():RightCurriedFunction5<T1,T2,T3,T4,T5, R>
+ (t5:T5):RightCurriedFunction4<T1,T2,T3,T4, R>
+ (t4:T4,t5:T5):RightCurriedFunction3<T1,T2,T3, R>
+ (t3:T3,t4:T4,t5:T5):RightCurriedFunction2<T1,T2, R>
+ (t2:T2,t3:T3,t4:T4,t5:T5):RightCurriedFunction1<T1, R>
+ (t1:T1,t2:T2,t3:T3,t4:T4,t5:T5):R
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.curry
+ **/
+ curry<TResult extends Function>(arity?: number): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ //_.curryRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curryRight<T1, R>(func: (t1: T1) => R):
+ RightCurriedFunction1<T1, R>;
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curryRight<T1, T2, R>(func: (t1: T1, t2: T2) => R):
+ RightCurriedFunction2<T1, T2, R>;
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curryRight<T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3) => R):
+ RightCurriedFunction3<T1, T2, T3, R>;
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curryRight<T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R):
+ RightCurriedFunction4<T1, T2, T3, T4, R>;
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @return Returns the new curried function.
+ */
+ curryRight<T1, T2, T3, T4, T5, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R):
+ RightCurriedFunction5<T1, T2, T3, T4, T5, R>;
+ /**
+ * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight
+ * instead of _.partial.
+ * @param func The function to curry.
+ * @param arity The arity of func.
+ * @return Returns the new curried function.
+ */
+ curryRight<TResult extends Function>(
+ func: Function,
+ arity?: number): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.curryRight
+ **/
+ curryRight<TResult extends Function>(arity?: number): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ //_.debounce
+ interface DebounceSettings {
+ /**
+ * Specify invoking on the leading edge of the timeout.
+ */
+ leading?: boolean;
+
+ /**
+ * The maximum time func is allowed to be delayed before it’s invoked.
+ */
+ maxWait?: number;
+
+ /**
+ * Specify invoking on the trailing edge of the timeout.
+ */
+ trailing?: boolean;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since
+ * the last time the debounced function was invoked. The debounced function comes with a cancel method to
+ * cancel delayed invocations and a flush method to immediately invoke them. Provide an options object to
+ * indicate that func should be invoked on the leading and/or trailing edge of the wait timeout. Subsequent
+ * calls to the debounced function return the result of the last func invocation.
+ *
+ * Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only
+ * if the the debounced function is invoked more than once during the wait timeout.
+ *
+ * See David Corbacho’s article for details over the differences between _.debounce and _.throttle.
+ *
+ * @param func The function to debounce.
+ * @param wait The number of milliseconds to delay.
+ * @param options The options object.
+ * @param options.leading Specify invoking on the leading edge of the timeout.
+ * @param options.maxWait The maximum time func is allowed to be delayed before it’s invoked.
+ * @param options.trailing Specify invoking on the trailing edge of the timeout.
+ * @return Returns the new debounced function.
+ */
+ debounce<T extends Function>(
+ func: T,
+ wait?: number,
+ options?: DebounceSettings
+ ): T & Cancelable;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.debounce
+ */
+ debounce(
+ wait?: number,
+ options?: DebounceSettings
+ ): LoDashImplicitObjectWrapper<T & Cancelable>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.debounce
+ */
+ debounce(
+ wait?: number,
+ options?: DebounceSettings
+ ): LoDashExplicitObjectWrapper<T & Cancelable>;
+ }
+
+ //_.defer
+ interface LoDashStatic {
+ /**
+ * Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to
+ * func when it’s invoked.
+ *
+ * @param func The function to defer.
+ * @param args The arguments to invoke the function with.
+ * @return Returns the timer id.
+ */
+ defer<T extends Function>(
+ func: T,
+ ...args: any[]
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.defer
+ */
+ defer(...args: any[]): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.defer
+ */
+ defer(...args: any[]): LoDashExplicitWrapper<number>;
+ }
+
+ //_.delay
+ interface LoDashStatic {
+ /**
+ * Invokes func after wait milliseconds. Any additional arguments are provided to func when it’s invoked.
+ *
+ * @param func The function to delay.
+ * @param wait The number of milliseconds to delay invocation.
+ * @param args The arguments to invoke the function with.
+ * @return Returns the timer id.
+ */
+ delay<T extends Function>(
+ func: T,
+ wait: number,
+ ...args: any[]
+ ): number;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.delay
+ */
+ delay(
+ wait: number,
+ ...args: any[]
+ ): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.delay
+ */
+ delay(
+ wait: number,
+ ...args: any[]
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes `func` with arguments reversed.
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to flip arguments for.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var flipped = _.flip(function() {
+ * return _.toArray(arguments);
+ * });
+ *
+ * flipped('a', 'b', 'c', 'd');
+ * // => ['d', 'c', 'b', 'a']
+ */
+ flip<T extends Function>(func: T): T;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.flip
+ */
+ flip(): LoDashImplicitObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.flip
+ */
+ flip(): LoDashExplicitObjectWrapper<T>;
+ }
+
+ //_.flow
+ interface LoDashStatic {
+ /**
+ * Creates a function that returns the result of invoking the provided functions with the this binding of the
+ * created function, where each successive invocation is supplied the return value of the previous.
+ *
+ * @param funcs Functions to invoke.
+ * @return Returns the new function.
+ */
+ // 0-argument first function
+ flow<R1, R2>(f1: () => R1, f2: (a: R1) => R2): () => R2;
+ flow<R1, R2, R3>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): () => R3;
+ flow<R1, R2, R3, R4>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): () => R4;
+ flow<R1, R2, R3, R4, R5>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): () => R5;
+ flow<R1, R2, R3, R4, R5, R6>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): () => R6;
+ flow<R1, R2, R3, R4, R5, R6, R7>(f1: () => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): () => R7;
+ // 1-argument first function
+ flow<A1, R1, R2>(f1: (a1: A1) => R1, f2: (a: R1) => R2): (a1: A1) => R2;
+ flow<A1, R1, R2, R3>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1) => R3;
+ flow<A1, R1, R2, R3, R4>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1) => R4;
+ flow<A1, R1, R2, R3, R4, R5>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1) => R5;
+ flow<A1, R1, R2, R3, R4, R5, R6>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1) => R6;
+ flow<A1, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1) => R7;
+ // 2-argument first function
+ flow<A1, A2, R1, R2>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2) => R2;
+ flow<A1, A2, R1, R2, R3>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2) => R3;
+ flow<A1, A2, R1, R2, R3, R4>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2) => R4;
+ flow<A1, A2, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2) => R5;
+ flow<A1, A2, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2) => R6;
+ flow<A1, A2, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2) => R7;
+ // 3-argument first function
+ flow<A1, A2, A3, R1, R2>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2, a3: A3) => R2;
+ flow<A1, A2, A3, R1, R2, R3>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2, a3: A3) => R3;
+ flow<A1, A2, A3, R1, R2, R3, R4>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2, a3: A3) => R4;
+ flow<A1, A2, A3, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2, a3: A3) => R5;
+ flow<A1, A2, A3, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2, a3: A3) => R6;
+ flow<A1, A2, A3, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2, a3: A3) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2, a3: A3) => R7;
+ // 4-argument first function
+ flow<A1, A2, A3, A4, R1, R2>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2): (a1: A1, a2: A2, a3: A3, a4: A4) => R2;
+ flow<A1, A2, A3, A4, R1, R2, R3>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (a1: A1, a2: A2, a3: A3, a4: A4) => R3;
+ flow<A1, A2, A3, A4, R1, R2, R3, R4>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (a1: A1, a2: A2, a3: A3, a4: A4) => R4;
+ flow<A1, A2, A3, A4, R1, R2, R3, R4, R5>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (a1: A1, a2: A2, a3: A3, a4: A4) => R5;
+ flow<A1, A2, A3, A4, R1, R2, R3, R4, R5, R6>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2, a3: A3, a4: A4) => R6;
+ flow<A1, A2, A3, A4, R1, R2, R3, R4, R5, R6, R7>(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2, a3: A3, a4: A4) => R7;
+ // generic function
+ flow<TResult extends Function>(...funcs: Function[]): TResult;
+ flow<TResult extends Function>(funcs: Function[]): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.flow
+ */
+ flow<TResult extends Function>(...funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.flow
+ */
+ flow<TResult extends Function>(funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.flow
+ */
+ flow<TResult extends Function>(...funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.flow
+ */
+ flow<TResult extends Function>(funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.flowRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.flow except that it creates a function that invokes the provided functions from right
+ * to left.
+ *
+ * @param funcs Functions to invoke.
+ * @return Returns the new function.
+ */
+ flowRight<TResult extends Function>(...funcs: Function[]): TResult;
+ /**
+ * @see _.flowRight
+ */
+ flowRight<TResult extends Function>(funcs: Function[]): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.flowRight
+ */
+ flowRight<TResult extends Function>(...funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
+ /**
+ * @see _.flowRight
+ */
+ flowRight<TResult extends Function>(funcs: Function[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.flowRight
+ */
+ flowRight<TResult extends Function>(...funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
+ /**
+ * @see _.flowRight
+ */
+ flowRight<TResult extends Function>(funcs: Function[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.memoize
+ interface MemoizedFunction extends Function {
+ cache: MapCache;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for
+ * storing the result based on the arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with
+ * the this binding of the memoized function.
+ *
+ * @param func The function to have its output memoized.
+ * @param resolver The function to resolve the cache key.
+ * @return Returns the new memoizing function.
+ */
+ memoize: {
+ <T extends Function>(func: T, resolver?: Function): T & MemoizedFunction;
+ Cache: MapCacheConstructor;
+ };
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.memoize
+ */
+ memoize(resolver?: Function): LoDashImplicitObjectWrapper<T & MemoizedFunction>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.memoize
+ */
+ memoize(resolver?: Function): LoDashExplicitObjectWrapper<T & MemoizedFunction>;
+ }
+
+ //_.overArgs (was _.modArgs)
+ interface LoDashStatic {
+ /**
+ * Creates a function that runs each argument through a corresponding transform function.
+ *
+ * @param func The function to wrap.
+ * @param transforms The functions to transform arguments, specified as individual functions or arrays
+ * of functions.
+ * @return Returns the new function.
+ */
+ overArgs<T extends Function, TResult extends Function>(
+ func: T,
+ ...transforms: Function[]
+ ): TResult;
+
+ /**
+ * @see _.overArgs
+ */
+ overArgs<T extends Function, TResult extends Function>(
+ func: T,
+ transforms: Function[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.overArgs
+ */
+ overArgs<TResult extends Function>(...transforms: Function[]): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.overArgs
+ */
+ overArgs<TResult extends Function>(transforms: Function[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.overArgs
+ */
+ overArgs<TResult extends Function>(...transforms: Function[]): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.overArgs
+ */
+ overArgs<TResult extends Function>(transforms: Function[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.negate
+ interface LoDashStatic {
+ /**
+ * Creates a function that negates the result of the predicate func. The func predicate is invoked with
+ * the this binding and arguments of the created function.
+ *
+ * @param predicate The predicate to negate.
+ * @return Returns the new function.
+ */
+ negate<T extends Function>(predicate: T): (...args: any[]) => boolean;
+
+ /**
+ * @see _.negate
+ */
+ negate<T extends Function, TResult extends Function>(predicate: T): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.negate
+ */
+ negate(): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
+
+ /**
+ * @see _.negate
+ */
+ negate<TResult extends Function>(): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.negate
+ */
+ negate(): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
+
+ /**
+ * @see _.negate
+ */
+ negate<TResult extends Function>(): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.once
+ interface LoDashStatic {
+ /**
+ * Creates a function that is restricted to invoking func once. Repeat calls to the function return the value
+ * of the first call. The func is invoked with the this binding and arguments of the created function.
+ *
+ * @param func The function to restrict.
+ * @return Returns the new restricted function.
+ */
+ once<T extends Function>(func: T): T;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.once
+ */
+ once(): LoDashImplicitObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.once
+ */
+ once(): LoDashExplicitObjectWrapper<T>;
+ }
+
+ //_.partial
+ interface LoDashStatic {
+ /**
+ * Creates a function that, when called, invokes func with any additional partial arguments
+ * prepended to those provided to the new function. This method is similar to _.bind except
+ * it does not alter the this binding.
+ * @param func The function to partially apply arguments to.
+ * @param args Arguments to be partially applied.
+ * @return The new partially applied function.
+ **/
+ partial: Partial;
+ }
+
+ type PH = LoDashStatic;
+
+ type Function0<R> = () => R;
+ type Function1<T1, R> = (t1: T1) => R;
+ type Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
+ type Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
+ type Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
+
+ interface Partial {
+ // arity 0
+ <R>(func: Function0<R>): Function0<R>;
+ // arity 1
+ <T1, R>(func: Function1<T1, R>): Function1<T1, R>;
+ <T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
+ // arity 2
+ <T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1): Function1< T2, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, plc1: PH, arg2: T2): Function1<T1, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
+ // arity 3
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1): Function2< T2, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, arg2: T2): Function2<T1, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2): Function1< T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, plc2: PH, arg3: T3): Function2<T1, T2, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, plc1: PH, arg2: T2, arg3: T3): Function1<T1, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
+ // arity 4
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1): Function3< T2, T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2): Function3<T1, T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2): Function2< T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, arg3: T3): Function3<T1, T2, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3): Function2< T2, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, arg3: T3): Function2<T1, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3): Function1< T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, plc3: PH, arg4: T4): Function3<T1, T2, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, plc2: PH, arg3: T3, arg4: T4): Function2<T1, T2, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, plc1: PH, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
+ // catch-all
+ (func: Function, ...args: any[]): Function;
+ }
+
+ //_.partialRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.partial except that partial arguments are appended to those provided
+ * to the new function.
+ * @param func The function to partially apply arguments to.
+ * @param args Arguments to be partially applied.
+ * @return The new partially applied function.
+ **/
+ partialRight: PartialRight;
+ }
+
+ interface PartialRight {
+ // arity 0
+ <R>(func: Function0<R>): Function0<R>;
+ // arity 1
+ <T1, R>(func: Function1<T1, R>): Function1<T1, R>;
+ <T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
+ // arity 2
+ <T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, plc2: PH): Function1< T2, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, arg2: T2): Function1<T1, R>;
+ <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
+ // arity 3
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, plc3: PH): Function2< T2, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, plc3: PH): Function2<T1, T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, plc3: PH): Function1< T3, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg3: T3): Function2<T1, T2, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, arg3: T3): Function1<T1, R>;
+ <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
+ // arity 4
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
+ <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>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, plc4: PH): Function3<T1, T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): Function2< T3, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, plc4: PH): Function3<T1, T2, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): Function2< T2, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, plc4: PH): Function2<T1, T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): Function1< T4, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg4: T4): Function3<T1, T2, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, arg4: T4): Function2<T1, T2, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
+ <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
+ // catch-all
+ (func: Function, ...args: any[]): Function;
+ }
+
+ //_.rearg
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes func with arguments arranged according to the specified indexes where the
+ * argument value at the first index is provided as the first argument, the argument value at the second index
+ * is provided as the second argument, and so on.
+ * @param func The function to rearrange arguments for.
+ * @param indexes The arranged argument indexes, specified as individual indexes or arrays of indexes.
+ * @return Returns the new function.
+ */
+ rearg<TResult extends Function>(func: Function, indexes: number[]): TResult;
+
+ /**
+ * @see _.rearg
+ */
+ rearg<TResult extends Function>(func: Function, ...indexes: number[]): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.rearg
+ */
+ rearg<TResult extends Function>(indexes: number[]): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.rearg
+ */
+ rearg<TResult extends Function>(...indexes: number[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ //_.rest
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes func with the this binding of the created function and arguments from start
+ * and beyond provided as an array.
+ *
+ * Note: This method is based on the rest parameter.
+ *
+ * @param func The function to apply a rest parameter to.
+ * @param start The start position of the rest parameter.
+ * @return Returns the new function.
+ */
+ rest<TResult extends Function>(
+ func: Function,
+ start?: number
+ ): TResult;
+
+ /**
+ * @see _.rest
+ */
+ rest<TResult extends Function, TFunc extends Function>(
+ func: TFunc,
+ start?: number
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.rest
+ */
+ rest<TResult extends Function>(start?: number): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.rest
+ */
+ rest<TResult extends Function>(start?: number): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.spread
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes func with the this binding of the created function and an array of arguments
+ * much like Function#apply.
+ *
+ * Note: This method is based on the spread operator.
+ *
+ * @param func The function to spread arguments over.
+ * @return Returns the new function.
+ */
+ spread<F extends Function, T extends Function>(func: F): T;
+
+ /**
+ * @see _.spread
+ */
+ spread<T extends Function>(func: Function): T;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.spread
+ */
+ spread<T extends Function>(): LoDashImplicitObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.spread
+ */
+ spread<T extends Function>(): LoDashExplicitObjectWrapper<T>;
+ }
+
+ //_.throttle
+ interface ThrottleSettings {
+ /**
+ * If you'd like to disable the leading-edge call, pass this as false.
+ */
+ leading?: boolean;
+
+ /**
+ * If you'd like to disable the execution on the trailing-edge, pass false.
+ */
+ trailing?: boolean;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled
+ * function comes with a cancel method to cancel delayed invocations and a flush method to immediately invoke
+ * them. Provide an options object to indicate that func should be invoked on the leading and/or trailing edge
+ * of the wait timeout. Subsequent calls to the throttled function return the result of the last func call.
+ *
+ * Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if
+ * the the throttled function is invoked more than once during the wait timeout.
+ *
+ * @param func The function to throttle.
+ * @param wait The number of milliseconds to throttle invocations to.
+ * @param options The options object.
+ * @param options.leading Specify invoking on the leading edge of the timeout.
+ * @param options.trailing Specify invoking on the trailing edge of the timeout.
+ * @return Returns the new throttled function.
+ */
+ throttle<T extends Function>(
+ func: T,
+ wait?: number,
+ options?: ThrottleSettings
+ ): T & Cancelable;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.throttle
+ */
+ throttle(
+ wait?: number,
+ options?: ThrottleSettings
+ ): LoDashImplicitObjectWrapper<T & Cancelable>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.throttle
+ */
+ throttle(
+ wait?: number,
+ options?: ThrottleSettings
+ ): LoDashExplicitObjectWrapper<T & Cancelable>;
+ }
+
+ //_.unary
+ interface LoDashStatic {
+ /**
+ * Creates a function that accepts up to one argument, ignoring any
+ * additional arguments.
+ *
+ * @static
+ * @memberOf _
+ * @category Function
+ * @param {Function} func The function to cap arguments for.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * _.map(['6', '8', '10'], _.unary(parseInt));
+ * // => [6, 8, 10]
+ */
+ unary<T extends Function>(func: T): T;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.unary
+ */
+ unary(): LoDashImplicitObjectWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.unary
+ */
+ unary(): LoDashExplicitObjectWrapper<T>;
+ }
+
+ //_.wrap
+ interface LoDashStatic {
+ /**
+ * Creates a function that provides value to the wrapper function as its first argument. Any additional
+ * arguments provided to the function are appended to those provided to the wrapper function. The wrapper is
+ * invoked with the this binding of the created function.
+ *
+ * @param value The value to wrap.
+ * @param wrapper The wrapper function.
+ * @return Returns the new function.
+ */
+ wrap<V, W extends Function, R extends Function>(
+ value: V,
+ wrapper: W
+ ): R;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<V, R extends Function>(
+ value: V,
+ wrapper: Function
+ ): R;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(
+ value: any,
+ wrapper: Function
+ ): R;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashImplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashImplicitObjectWrapper<R>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.wrap
+ */
+ wrap<W extends Function, R extends Function>(wrapper: W): LoDashExplicitObjectWrapper<R>;
+
+ /**
+ * @see _.wrap
+ */
+ wrap<R extends Function>(wrapper: Function): LoDashExplicitObjectWrapper<R>;
+ }
+
+ /********
+ * Lang *
+ ********/
+
+ //_.castArray
+ interface LoDashStatic {
+ /**
+ * Casts value as an array if it’s not one.
+ *
+ * @param value The value to inspect.
+ * @return Returns the cast array.
+ */
+ castArray<T>(value?: Many<T>): T[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): TWrapper;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): LoDashImplicitArrayWrapper<TObject>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.castArray
+ */
+ castArray(): LoDashExplicitArrayWrapper<TObject>;
+ }
+
+ //_.clone
+ interface LoDashStatic {
+ /**
+ * Creates a shallow clone of value.
+ *
+ * Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
+ * array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
+ * and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
+ * object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
+ *
+ * @param value The value to clone.
+ * @return Returns the cloned value.
+ */
+ clone<T>(value: T): T;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.clone
+ */
+ clone(): T;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.clone
+ */
+ clone(): TArray;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.clone
+ */
+ clone(): TObject;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.clone
+ */
+ clone(): LoDashExplicitWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.clone
+ */
+ clone(): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.clone
+ */
+ clone(): TWrapper;
+ }
+
+ //_.cloneDeep
+ interface LoDashStatic {
+ /**
+ * This method is like _.clone except that it recursively clones value.
+ *
+ * @param value The value to recursively clone.
+ * @return Returns the deep cloned value.
+ */
+ cloneDeep<T>(value: T): T;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): T;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): TArray;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): TObject;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): LoDashExplicitWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeep
+ */
+ cloneDeep(): TWrapper;
+ }
+
+ //_.cloneDeepWith
+ type CloneDeepWithCustomizer<TValue, TResult> = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult;
+
+ interface LoDashStatic {
+ /**
+ * This method is like _.cloneWith except that it recursively clones value.
+ *
+ * @param value The value to recursively clone.
+ * @param customizer The function to customize cloning.
+ * @return Returns the deep cloned value.
+ */
+ cloneDeepWith<TResult>(
+ value: any,
+ customizer?: CloneDeepWithCustomizer<any, TResult>
+ ): TResult;
+
+ /**
+ * @see _.clonDeepeWith
+ */
+ cloneDeepWith<T, TResult>(
+ value: T,
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<TArray, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<TObject, TResult>
+ ): TResult;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<T, TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends Object>(
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneDeepWithCustomizer<TArray, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<T[], TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends Object>(
+ customizer?: CloneDeepWithCustomizer<T[], TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult>(
+ customizer?: CloneDeepWithCustomizer<T, TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneDeepWith
+ */
+ cloneDeepWith<TResult extends Object>(
+ customizer?: CloneDeepWithCustomizer<T, TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.cloneWith
+ type CloneWithCustomizer<TValue, TResult> = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult;
+
+ interface LoDashStatic {
+ /**
+ * This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
+ * If customizer returns undefined cloning is handled by the method instead.
+ *
+ * @param value The value to clone.
+ * @param customizer The function to customize cloning.
+ * @return Returns the cloned value.
+ */
+ cloneWith<TResult>(
+ value: any,
+ customizer?: CloneWithCustomizer<any, TResult>
+ ): TResult;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<T, TResult>(
+ value: T,
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<TArray, TResult>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<TObject, TResult>
+ ): TResult;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<T, TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends Object>(
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneWithCustomizer<TArray, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<T[], TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends Object>(
+ customizer?: CloneWithCustomizer<T[], TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends (number|string|boolean)>(
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): LoDashExplicitWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult>(
+ customizer?: CloneWithCustomizer<T, TResult[]>
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.cloneWith
+ */
+ cloneWith<TResult extends Object>(
+ customizer?: CloneWithCustomizer<T, TResult>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ /**
+ * An object containing predicate functions for each property of T
+ */
+ type ConformsPredicateObject<T> = {
+ [P in keyof T]: (val: T[P]) => boolean;
+ };
+
+ //_.conforms
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes the predicate properties of `source` with the corresponding
+ * property values of a given object, returning true if all predicates return truthy, else false.
+ */
+ conforms<T>(source: ConformsPredicateObject<T>): (Target: T) => boolean;
+ }
+
+ //_.conformsTo
+ interface LoDashStatic {
+ /**
+ * Checks if object conforms to source by invoking the predicate properties of source with the
+ * corresponding property values of object.
+ *
+ * Note: This method is equivalent to _.conforms when source is partially applied.
+ */
+ conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
+ }
+
+ //_.eq
+ interface LoDashStatic {
+ /**
+ * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * comparison between two values to determine if they are equivalent.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ * var other = { 'user': 'fred' };
+ *
+ * _.eq(object, object);
+ * // => true
+ *
+ * _.eq(object, other);
+ * // => false
+ *
+ * _.eq('a', 'a');
+ * // => true
+ *
+ * _.eq('a', Object('a'));
+ * // => false
+ *
+ * _.eq(NaN, NaN);
+ * // => true
+ */
+ eq(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqual
+ */
+ eq(
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqual
+ */
+ eq(
+ other: any
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.gt
+ interface LoDashStatic {
+ /**
+ * Checks if value is greater than other.
+ *
+ * @param value The value to compare.
+ * @param other The other value to compare.
+ * @return Returns true if value is greater than other, else false.
+ */
+ gt(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.gt
+ */
+ gt(other: any): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.gt
+ */
+ gt(other: any): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.gte
+ interface LoDashStatic {
+ /**
+ * Checks if value is greater than or equal to other.
+ *
+ * @param value The value to compare.
+ * @param other The other value to compare.
+ * @return Returns true if value is greater than or equal to other, else false.
+ */
+ gte(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.gte
+ */
+ gte(other: any): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.gte
+ */
+ gte(other: any): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isArguments
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as an arguments object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isArguments(value?: any): value is IArguments;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArguments
+ */
+ isArguments(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArguments
+ */
+ isArguments(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isArray
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as an Array object.
+ * @param value The value to check.
+ *
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isArray(value?: any): value is any[];
+
+ /**
+ * DEPRECATED
+ */
+ isArray<T>(value?: any): value is any[];
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArray
+ */
+ isArray(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArray
+ */
+ isArray(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isArrayBuffer
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as an ArrayBuffer object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isArrayBuffer(value?: any): value is ArrayBuffer;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayBuffer
+ */
+ isArrayBuffer(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayBuffer
+ */
+ isArrayBuffer(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isArrayLike
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is array-like. A value is considered array-like if it's
+ * not a function and has a `value.length` that's an integer greater than or
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
+ *
+ * @static
+ * @memberOf _
+ * @type Function
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ * @example
+ *
+ * _.isArrayLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isArrayLike(document.body.children);
+ * // => true
+ *
+ * _.isArrayLike('abc');
+ * // => true
+ *
+ * _.isArrayLike(_.noop);
+ * // => false
+ */
+ isArrayLike<T>(value: T & string & number): boolean; // should only match if T = any
+
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLike(value?: Function): value is never;
+
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLike<T>(value: T | Function): value is T & { length: number };
+
+ /**
+ * DEPRECATED
+ */
+ isArrayLike<T>(value?: any): value is any[];
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLike(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLike(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isArrayLikeObject
+ interface LoDashStatic {
+ /**
+ * This method is like `_.isArrayLike` except that it also checks if `value`
+ * is an object.
+ *
+ * @static
+ * @memberOf _
+ * @type Function
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
+ * @example
+ *
+ * _.isArrayLikeObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isArrayLikeObject(document.body.children);
+ * // => true
+ *
+ * _.isArrayLikeObject('abc');
+ * // => false
+ *
+ * _.isArrayLikeObject(_.noop);
+ * // => false
+ */
+ isArrayLikeObject<T>(value: T & string & number): boolean; // should only match if T = any
+
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLikeObject(value?: Function | string | boolean | number): value is never;
+
+ /**
+ * @see _.isArrayLike
+ */
+ isArrayLikeObject<T>(value: T | Function | string | boolean | number): value is T & { length: number };
+
+ /**
+ * DEPRECATED
+ */
+ isArrayLikeObject<T>(value?: any): value is any[];
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayLikeObject
+ */
+ isArrayLikeObject(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isArrayLikeObject
+ */
+ isArrayLikeObject(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isBoolean
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a boolean primitive or object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isBoolean(value?: any): value is boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isBoolean
+ */
+ isBoolean(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isBoolean
+ */
+ isBoolean(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isBuffer
+ interface LoDashStatic {
+ /**
+ * Checks if value is a buffer.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is a buffer, else false.
+ */
+ isBuffer(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isBuffer
+ */
+ isBuffer(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isBuffer
+ */
+ isBuffer(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isDate
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a Date object.
+ * @param value The value to check.
+ *
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isDate(value?: any): value is Date;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isDate
+ */
+ isDate(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isDate
+ */
+ isDate(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isElement
+ interface LoDashStatic {
+ /**
+ * Checks if value is a DOM element.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is a DOM element, else false.
+ */
+ isElement(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isElement
+ */
+ isElement(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isElement
+ */
+ isElement(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isEmpty
+ interface LoDashStatic {
+ /**
+ * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
+ * jQuery-like collection with a length greater than 0 or an object with own enumerable properties.
+ *
+ * @param value The value to inspect.
+ * @return Returns true if value is empty, else false.
+ */
+ isEmpty(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEmpty
+ */
+ isEmpty(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEmpty
+ */
+ isEmpty(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isEqual
+ interface LoDashStatic {
+ /**
+ * Performs a deep comparison between two values to determine if they are
+ * equivalent.
+ *
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
+ * by their own, not inherited, enumerable properties. Functions and DOM
+ * nodes are **not** supported.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'user': 'fred' };
+ * var other = { 'user': 'fred' };
+ *
+ * _.isEqual(object, other);
+ * // => true
+ *
+ * object === other;
+ * // => false
+ */
+ isEqual(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqual
+ */
+ isEqual(
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqual
+ */
+ isEqual(
+ other: any
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ // _.isEqualWith
+ type IsEqualCustomizer = (value: any, other: any, indexOrKey: number|string|undefined, parent: any, otherParent: any, stack: any) => boolean|undefined;
+
+ interface LoDashStatic {
+ /**
+ * This method is like `_.isEqual` except that it accepts `customizer` which is
+ * invoked to compare values. If `customizer` returns `undefined` comparisons are
+ * handled by the method instead. The `customizer` is invoked with up to seven arguments:
+ * (objValue, othValue [, index|key, object, other, stack]).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * function isGreeting(value) {
+ * return /^h(?:i|ello)$/.test(value);
+ * }
+ *
+ * function customizer(objValue, othValue) {
+ * if (isGreeting(objValue) && isGreeting(othValue)) {
+ * return true;
+ * }
+ * }
+ *
+ * var array = ['hello', 'goodbye'];
+ * var other = ['hi', 'goodbye'];
+ *
+ * _.isEqualWith(array, other, customizer);
+ * // => true
+ */
+ isEqualWith(
+ value: any,
+ other: any,
+ customizer?: IsEqualCustomizer
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqualWith
+ */
+ isEqualWith(
+ other: any,
+ customizer?: IsEqualCustomizer
+ ): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isEqualWith
+ */
+ isEqualWith(
+ other: any,
+ customizer?: IsEqualCustomizer
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isError
+ interface LoDashStatic {
+ /**
+ * Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError
+ * object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is an error object, else false.
+ */
+ isError(value: any): value is Error;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isError
+ */
+ isError(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isError
+ */
+ isError(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isFinite
+ interface LoDashStatic {
+ /**
+ * Checks if value is a finite primitive number.
+ *
+ * Note: This method is based on Number.isFinite.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is a finite number, else false.
+ */
+ isFinite(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isFinite
+ */
+ isFinite(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isFinite
+ */
+ isFinite(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isFunction
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a Function object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isFunction(value?: any): value is Function;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isFunction
+ */
+ isFunction(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isFunction
+ */
+ isFunction(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isInteger
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is an integer.
+ *
+ * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
+ * @example
+ *
+ * _.isInteger(3);
+ * // => true
+ *
+ * _.isInteger(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isInteger(Infinity);
+ * // => false
+ *
+ * _.isInteger('3');
+ * // => false
+ */
+ isInteger(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isInteger
+ */
+ isInteger(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isInteger
+ */
+ isInteger(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isLength
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is a valid array-like length.
+ *
+ * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @example
+ *
+ * _.isLength(3);
+ * // => true
+ *
+ * _.isLength(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isLength(Infinity);
+ * // => false
+ *
+ * _.isLength('3');
+ * // => false
+ */
+ isLength(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isLength
+ */
+ isLength(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isLength
+ */
+ isLength(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isMap
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a Map object.
+ *
+ * @param value The value to check.
+ * @returns Returns true if value is correctly classified, else false.
+ */
+ isMap<K, V>(value?: any): value is Map<K, V>;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isMap
+ */
+ isMap(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isMap
+ */
+ isMap(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isMatch
+ type isMatchCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean;
+
+ interface LoDashStatic {
+ /**
+ * Performs a deep comparison between `object` and `source` to determine if
+ * `object` contains equivalent property values.
+ *
+ * **Note:** This method supports comparing the same values as `_.isEqual`.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {Object} object The object to inspect.
+ * @param {Object} source The object of property values to match.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+ * @example
+ *
+ * var object = { 'user': 'fred', 'age': 40 };
+ *
+ * _.isMatch(object, { 'age': 40 });
+ * // => true
+ *
+ * _.isMatch(object, { 'age': 36 });
+ * // => false
+ */
+ isMatch(object: Object, source: Object): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.isMatch
+ */
+ isMatch(source: Object): boolean;
+ }
+
+ //_.isMatchWith
+ type isMatchWithCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean;
+
+ interface LoDashStatic {
+ /**
+ * This method is like `_.isMatch` except that it accepts `customizer` which
+ * is invoked to compare values. If `customizer` returns `undefined` comparisons
+ * are handled by the method instead. The `customizer` is invoked with three
+ * arguments: (objValue, srcValue, index|key, object, source).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {Object} object The object to inspect.
+ * @param {Object} source The object of property values to match.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+ * @example
+ *
+ * function isGreeting(value) {
+ * return /^h(?:i|ello)$/.test(value);
+ * }
+ *
+ * function customizer(objValue, srcValue) {
+ * if (isGreeting(objValue) && isGreeting(srcValue)) {
+ * return true;
+ * }
+ * }
+ *
+ * var object = { 'greeting': 'hello' };
+ * var source = { 'greeting': 'hi' };
+ *
+ * _.isMatchWith(object, source, customizer);
+ * // => true
+ */
+ isMatchWith(object: Object, source: Object, customizer: isMatchWithCustomizer): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.isMatchWith
+ */
+ isMatchWith(source: Object, customizer: isMatchWithCustomizer): boolean;
+ }
+
+ //_.isNaN
+ interface LoDashStatic {
+ /**
+ * Checks if value is NaN.
+ *
+ * Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is NaN, else false.
+ */
+ isNaN(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isNaN
+ */
+ isNaN(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isNaN
+ */
+ isNaN(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isNative
+ interface LoDashStatic {
+ /**
+ * Checks if value is a native function.
+ * @param value The value to check.
+ *
+ * @retrun Returns true if value is a native function, else false.
+ */
+ isNative(value: any): value is Function;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNative
+ */
+ isNative(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNative
+ */
+ isNative(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isNil
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is `null` or `undefined`.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
+ * @example
+ *
+ * _.isNil(null);
+ * // => true
+ *
+ * _.isNil(void 0);
+ * // => true
+ *
+ * _.isNil(NaN);
+ * // => false
+ */
+ isNil(value: any): value is null | undefined;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNil
+ */
+ isNil(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNil
+ */
+ isNil(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isNull
+ interface LoDashStatic {
+ /**
+ * Checks if value is null.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is null, else false.
+ */
+ isNull(value: any): value is null;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNull
+ */
+ isNull(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNull
+ */
+ isNull(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isNumber
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a Number primitive or object.
+ *
+ * Note: To exclude Infinity, -Infinity, and NaN, which are classified as numbers, use the _.isFinite method.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isNumber(value?: any): value is number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNumber
+ */
+ isNumber(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isNumber
+ */
+ isNumber(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isObject
+ interface LoDashStatic {
+ /**
+ * Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0),
+ * and new String(''))
+ *
+ * @param value The value to check.
+ * @return Returns true if value is an object, else false.
+ */
+ isObject(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isObject
+ */
+ isObject(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isObject
+ */
+ isObject(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isObjectLike
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
+ * and has a `typeof` result of "object".
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
+ * @example
+ *
+ * _.isObjectLike({});
+ * // => true
+ *
+ * _.isObjectLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isObjectLike(_.noop);
+ * // => false
+ *
+ * _.isObjectLike(null);
+ * // => false
+ */
+ isObjectLike(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isObjectLike
+ */
+ isObjectLike(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isObjectLike
+ */
+ isObjectLike(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isPlainObject
+ interface LoDashStatic {
+ /**
+ * Checks if value is a plain object, that is, an object created by the Object constructor or one with a
+ * [[Prototype]] of null.
+ *
+ * Note: This method assumes objects created by the Object constructor have no inherited enumerable properties.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is a plain object, else false.
+ */
+ isPlainObject(value?: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isPlainObject
+ */
+ isPlainObject(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isPlainObject
+ */
+ isPlainObject(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isRegExp
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a RegExp object.
+ * @param value The value to check.
+ *
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isRegExp(value?: any): value is RegExp;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isRegExp
+ */
+ isRegExp(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isRegExp
+ */
+ isRegExp(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isSafeInteger
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
+ * double precision number which isn't the result of a rounded unsafe integer.
+ *
+ * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
+ * @example
+ *
+ * _.isSafeInteger(3);
+ * // => true
+ *
+ * _.isSafeInteger(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isSafeInteger(Infinity);
+ * // => false
+ *
+ * _.isSafeInteger('3');
+ * // => false
+ */
+ isSafeInteger(value: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isSafeInteger
+ */
+ isSafeInteger(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isSafeInteger
+ */
+ isSafeInteger(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isSet
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a Set object.
+ *
+ * @param value The value to check.
+ * @returns Returns true if value is correctly classified, else false.
+ */
+ isSet<T>(value?: any): value is Set<T>;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isSet
+ */
+ isSet(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isSet
+ */
+ isSet(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isString
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a String primitive or object.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isString(value?: any): value is string;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isString
+ */
+ isString(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isString
+ */
+ isString(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isSymbol
+ interface LoDashStatic {
+ /**
+ * Checks if `value` is classified as a `Symbol` primitive or object.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @example
+ *
+ * _.isSymbol(Symbol.iterator);
+ * // => true
+ *
+ * _.isSymbol('abc');
+ * // => false
+ */
+ isSymbol(value: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isSymbol
+ */
+ isSymbol(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isSymbol
+ */
+ isSymbol(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isTypedArray
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a typed array.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is correctly classified, else false.
+ */
+ isTypedArray(value: any): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isTypedArray
+ */
+ isTypedArray(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isTypedArray
+ */
+ isTypedArray(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isUndefined
+ interface LoDashStatic {
+ /**
+ * Checks if value is undefined.
+ *
+ * @param value The value to check.
+ * @return Returns true if value is undefined, else false.
+ */
+ isUndefined(value: any): value is undefined;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isUndefined
+ */
+ isUndefined(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * see _.isUndefined
+ */
+ isUndefined(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isWeakMap
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a WeakMap object.
+ *
+ * @param value The value to check.
+ * @returns Returns true if value is correctly classified, else false.
+ */
+ isWeakMap<K extends object, V>(value?: any): value is WeakMap<K, V>;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isSet
+ */
+ isWeakMap(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isSet
+ */
+ isWeakMap(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.isWeakSet
+ interface LoDashStatic {
+ /**
+ * Checks if value is classified as a WeakSet object.
+ *
+ * @param value The value to check.
+ * @returns Returns true if value is correctly classified, else false.
+ */
+ isWeakSet<T>(value?: any): value is WeakSet<T>;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isWeakSet
+ */
+ isWeakSet(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.isWeakSet
+ */
+ isWeakSet(): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.lt
+ interface LoDashStatic {
+ /**
+ * Checks if value is less than other.
+ *
+ * @param value The value to compare.
+ * @param other The other value to compare.
+ * @return Returns true if value is less than other, else false.
+ */
+ lt(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.lt
+ */
+ lt(other: any): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.lt
+ */
+ lt(other: any): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.lte
+ interface LoDashStatic {
+ /**
+ * Checks if value is less than or equal to other.
+ *
+ * @param value The value to compare.
+ * @param other The other value to compare.
+ * @return Returns true if value is less than or equal to other, else false.
+ */
+ lte(
+ value: any,
+ other: any
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.lte
+ */
+ lte(other: any): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.lte
+ */
+ lte(other: any): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.toArray
+ interface LoDashStatic {
+ /**
+ * Converts value to an array.
+ *
+ * @param value The value to convert.
+ * @return Returns the converted array.
+ */
+ toArray<T>(value: List<T>|Dictionary<T>|NumericDictionary<T>): T[];
+
+ /**
+ * @see _.toArray
+ */
+ toArray<TValue, TResult>(value: TValue): TResult[];
+
+ /**
+ * @see _.toArray
+ */
+ toArray<TResult>(value?: any): TResult[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.toArray
+ */
+ toArray<TResult>(): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.toArray
+ */
+ toArray(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.toArray
+ */
+ toArray<TResult>(): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.toArray
+ */
+ toArray<TResult>(): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.toArray
+ */
+ toArray(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.toArray
+ */
+ toArray<TResult>(): LoDashExplicitArrayWrapper<TResult>;
+ }
+
+ //_.toPlainObject
+ interface LoDashStatic {
+ /**
+ * Converts value to a plain object flattening inherited enumerable properties of value to own properties
+ * of the plain object.
+ *
+ * @param value The value to convert.
+ * @return Returns the converted plain object.
+ */
+ toPlainObject<TResult extends {}>(value?: any): TResult;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toPlainObject
+ */
+ toPlainObject<TResult extends {}>(): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ //_.toFinite
+ interface LoDashStatic {
+ /**
+ * Converts `value` to a finite number.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.12.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted number.
+ * @example
+ *
+ * _.toFinite(3.2);
+ * // => 3.2
+ *
+ * _.toFinite(Number.MIN_VALUE);
+ * // => 5e-324
+ *
+ * _.toFinite(Infinity);
+ * // => 1.7976931348623157e+308
+ *
+ * _.toFinite('3.2');
+ * // => 3.2
+ */
+ toFinite(value: any): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toFinite
+ */
+ toFinite(): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toFinite
+ */
+ toFinite(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.toInteger
+ interface LoDashStatic {
+ /**
+ * Converts `value` to an integer.
+ *
+ * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted integer.
+ * @example
+ *
+ * _.toInteger(3);
+ * // => 3
+ *
+ * _.toInteger(Number.MIN_VALUE);
+ * // => 0
+ *
+ * _.toInteger(Infinity);
+ * // => 1.7976931348623157e+308
+ *
+ * _.toInteger('3');
+ * // => 3
+ */
+ toInteger(value: any): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toInteger
+ */
+ toInteger(): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toInteger
+ */
+ toInteger(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.toLength
+ interface LoDashStatic {
+ /**
+ * Converts `value` to an integer suitable for use as the length of an
+ * array-like object.
+ *
+ * **Note:** This method is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @return {number} Returns the converted integer.
+ * @example
+ *
+ * _.toLength(3);
+ * // => 3
+ *
+ * _.toLength(Number.MIN_VALUE);
+ * // => 0
+ *
+ * _.toLength(Infinity);
+ * // => 4294967295
+ *
+ * _.toLength('3');
+ * // => 3
+ */
+ toLength(value: any): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toLength
+ */
+ toLength(): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toLength
+ */
+ toLength(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.toNumber
+ interface LoDashStatic {
+ /**
+ * Converts `value` to a number.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to process.
+ * @returns {number} Returns the number.
+ * @example
+ *
+ * _.toNumber(3);
+ * // => 3
+ *
+ * _.toNumber(Number.MIN_VALUE);
+ * // => 5e-324
+ *
+ * _.toNumber(Infinity);
+ * // => Infinity
+ *
+ * _.toNumber('3');
+ * // => 3
+ */
+ toNumber(value: any): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toNumber
+ */
+ toNumber(): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toNumber
+ */
+ toNumber(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.toSafeInteger
+ interface LoDashStatic {
+ /**
+ * Converts `value` to a safe integer. A safe integer can be compared and
+ * represented correctly.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted integer.
+ * @example
+ *
+ * _.toSafeInteger(3);
+ * // => 3
+ *
+ * _.toSafeInteger(Number.MIN_VALUE);
+ * // => 0
+ *
+ * _.toSafeInteger(Infinity);
+ * // => 9007199254740991
+ *
+ * _.toSafeInteger('3');
+ * // => 3
+ */
+ toSafeInteger(value: any): number;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toSafeInteger
+ */
+ toSafeInteger(): LoDashImplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toSafeInteger
+ */
+ toSafeInteger(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.toString DUMMY
+ interface LoDashStatic {
+ /**
+ * Converts `value` to a string if it's not one. An empty string is returned
+ * for `null` and `undefined` values. The sign of `-0` is preserved.
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to process.
+ * @returns {string} Returns the string.
+ * @example
+ *
+ * _.toString(null);
+ * // => ''
+ *
+ * _.toString(-0);
+ * // => '-0'
+ *
+ * _.toString([1, 2, 3]);
+ * // => '1,2,3'
+ */
+ toString(value: any): string;
+ }
+
+ /********
+ * Math *
+ ********/
+
+ //_.add
+ interface LoDashStatic {
+ /**
+ * Adds two numbers.
+ *
+ * @param augend The first number to add.
+ * @param addend The second number to add.
+ * @return Returns the sum.
+ */
+ add(
+ augend: number,
+ addend: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.add
+ */
+ add(addend: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.add
+ */
+ add(addend: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.ceil
+ interface LoDashStatic {
+ /**
+ * Calculates n rounded up to precision.
+ *
+ * @param n The number to round up.
+ * @param precision The precision to round up to.
+ * @return Returns the rounded up number.
+ */
+ ceil(
+ n: number,
+ precision?: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.ceil
+ */
+ ceil(precision?: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.ceil
+ */
+ ceil(precision?: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.divide
+ interface LoDashStatic {
+ /**
+ * Divide two numbers.
+ *
+ * @param dividend The first number in a division.
+ * @param divisor The second number in a division.
+ * @returns Returns the quotient.
+ */
+ divide(
+ dividend: number,
+ divisor: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.divide
+ */
+ divide(divisor: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.divide
+ */
+ divide(divisor: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.floor
+ interface LoDashStatic {
+ /**
+ * Calculates n rounded down to precision.
+ *
+ * @param n The number to round down.
+ * @param precision The precision to round down to.
+ * @return Returns the rounded down number.
+ */
+ floor(
+ n: number,
+ precision?: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.floor
+ */
+ floor(precision?: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.floor
+ */
+ floor(precision?: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.max
+ interface LoDashStatic {
+ /**
+ * Computes the maximum value of `array`. If `array` is empty or falsey
+ * `undefined` is returned.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {*} Returns the maximum value.
+ */
+ max<T>(
+ collection: List<T> | null | undefined
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.max
+ */
+ max(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.max
+ */
+ max<T>(): T | undefined;
+ }
+
+ //_.maxBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.max` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the criterion by which
+ * the value is ranked. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {*} Returns the maximum value.
+ * @example
+ *
+ * var objects = [{ 'n': 1 }, { 'n': 2 }];
+ *
+ * _.maxBy(objects, function(o) { return o.a; });
+ * // => { 'n': 2 }
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.maxBy(objects, 'n');
+ * // => { 'n': 2 }
+ */
+ maxBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<TObject extends {}, T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.maxBy
+ */
+ maxBy(
+ iteratee?: ListIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy(
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<TObject extends {}>(
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.maxBy
+ */
+ maxBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<T>(
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.maxBy
+ */
+ maxBy<TObject extends {}, T>(
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ //_.mean
+ interface LoDashStatic {
+ /**
+ * Computes the mean of the values in `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {number} Returns the mean.
+ * @example
+ *
+ * _.mean([4, 2, 8, 6]);
+ * // => 5
+ */
+ mean<T>(
+ collection: List<T> | null | undefined
+ ): number;
+ }
+
+ //_.meanBy
+ interface LoDashStatic {
+ /**
+ * Computes the mean of the provided propties of the objects in the `array`
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {number} Returns the mean.
+ * @example
+ *
+ * _.mean([{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }], 'n');
+ * // => 5
+ */
+ meanBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.mean
+ */
+ mean<T>(): number;
+
+ /**
+ * @see _.mean
+ */
+ mean(): number;
+ }
+
+ //_.min
+ interface LoDashStatic {
+ /**
+ * Computes the minimum value of `array`. If `array` is empty or falsey
+ * `undefined` is returned.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {*} Returns the minimum value.
+ */
+ min<T>(
+ collection: List<T> | null | undefined
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.min
+ */
+ min(): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.min
+ */
+ min<T>(): T | undefined;
+ }
+
+ //_.minBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.min` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the criterion by which
+ * the value is ranked. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {*} Returns the minimum value.
+ * @example
+ *
+ * var objects = [{ 'n': 1 }, { 'n': 2 }];
+ *
+ * _.minBy(objects, function(o) { return o.a; });
+ * // => { 'n': 1 }
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.minBy(objects, 'n');
+ * // => { 'n': 1 }
+ */
+ minBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee?: ListIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<T>(
+ collection: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<TObject extends {}, T>(
+ collection: List<T>|Dictionary<T> | null | undefined,
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.minBy
+ */
+ minBy(
+ iteratee?: ListIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy(
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<TObject extends {}>(
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.minBy
+ */
+ minBy<T>(
+ iteratee?: ListIterator<T, any>|DictionaryIterator<T, any>
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<T>(
+ iteratee?: string
+ ): T | undefined;
+
+ /**
+ * @see _.minBy
+ */
+ minBy<TObject extends {}, T>(
+ whereValue?: TObject
+ ): T | undefined;
+ }
+
+ //_.multiply
+ interface LoDashStatic {
+ /**
+ * Multiply two numbers.
+ * @param multiplier The first number in a multiplication.
+ * @param multiplicand The second number in a multiplication.
+ * @returns Returns the product.
+ */
+ multiply(
+ multiplier: number,
+ multiplicand: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.multiply
+ */
+ multiply(multiplicand: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.multiply
+ */
+ multiply(multiplicand: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.round
+ interface LoDashStatic {
+ /**
+ * Calculates n rounded to precision.
+ *
+ * @param n The number to round.
+ * @param precision The precision to round to.
+ * @return Returns the rounded number.
+ */
+ round(
+ n: number,
+ precision?: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.round
+ */
+ round(precision?: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.round
+ */
+ round(precision?: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.sum
+ interface LoDashStatic {
+ /**
+ * Computes the sum of the values in `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {number} Returns the sum.
+ * @example
+ *
+ * _.sum([4, 2, 8, 6]);
+ * // => 20
+ */
+ sum<T>(collection: List<T> | null | undefined): number;
+
+ /**
+ * @see _.sum
+ */
+ sum(collection: List<number>|Dictionary<number> | null | undefined): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sum
+ */
+ sum(): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sum
+ **/
+ sum<TValue>(): number;
+
+ /**
+ * @see _.sum
+ */
+ sum(): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sum
+ */
+ sum(): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sum
+ */
+ sum<TValue>(): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sum
+ */
+ sum(): LoDashExplicitWrapper<number>;
+ }
+
+ //_.sumBy
+ interface LoDashStatic {
+ /**
+ * This method is like `_.sum` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the value to be summed.
+ * The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {number} Returns the sum.
+ * @example
+ *
+ * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
+ *
+ * _.sumBy(objects, function(o) { return o.n; });
+ * // => 20
+ *
+ * // using the `_.property` iteratee shorthand
+ * _.sumBy(objects, 'n');
+ * // => 20
+ */
+ sumBy<T>(
+ collection: List<T> | null | undefined,
+ iteratee: ListIterator<T, number>
+ ): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ collection: List<{}> | null | undefined,
+ iteratee: string
+ ): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ collection: List<number> | null | undefined
+ ): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ collection: List<{}> | null | undefined,
+ iteratee: Dictionary<{}>
+ ): number;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ iteratee: ListIterator<T, number>
+ ): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: string): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: Dictionary<{}>): number;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ iteratee: ListIterator<{}, number>
+ ): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: string): number;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: Dictionary<{}>): number;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ iteratee: ListIterator<T, number>
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: string): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper<number>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.sumBy
+ */
+ sumBy(
+ iteratee: ListIterator<{}, number>
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: string): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.sumBy
+ */
+ sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper<number>;
+ }
+
+ /**********
+ * Number *
+ **********/
+
+ //_.subtract
+ interface LoDashStatic {
+ /**
+ * Subtract two numbers.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {number} minuend The first number in a subtraction.
+ * @param {number} subtrahend The second number in a subtraction.
+ * @returns {number} Returns the difference.
+ * @example
+ *
+ * _.subtract(6, 4);
+ * // => 2
+ */
+ subtract(
+ minuend: number,
+ subtrahend: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.subtract
+ */
+ subtract(
+ subtrahend: number
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.subtract
+ */
+ subtract(
+ subtrahend: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.clamp
+ interface LoDashStatic {
+ /**
+ * Clamps `number` within the inclusive `lower` and `upper` bounds.
+ *
+ * @static
+ * @memberOf _
+ * @category Number
+ * @param {number} number The number to clamp.
+ * @param {number} [lower] The lower bound.
+ * @param {number} upper The upper bound.
+ * @returns {number} Returns the clamped number.
+ * @example
+ *
+ * _.clamp(-10, -5, 5);
+ * // => -5
+ *
+ * _.clamp(10, -5, 5);
+ * // => 5
+ */
+ clamp(
+ number: number,
+ lower: number,
+ upper: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.clamp
+ */
+ clamp(
+ lower: number,
+ upper: number
+ ): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.clamp
+ */
+ clamp(
+ lower: number,
+ upper: number
+ ): LoDashExplicitWrapper<number>;
+ }
+
+ //_.inRange
+ interface LoDashStatic {
+ /**
+ * Checks if n is between start and up to but not including, end. If end is not specified it’s set to start
+ * with start then set to 0.
+ *
+ * @param n The number to check.
+ * @param start The start of the range.
+ * @param end The end of the range.
+ * @return Returns true if n is in the range, else false.
+ */
+ inRange(
+ n: number,
+ start: number,
+ end: number
+ ): boolean;
+
+ /**
+ * @see _.inRange
+ */
+ inRange(
+ n: number,
+ end: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.inRange
+ */
+ inRange(
+ start: number,
+ end: number
+ ): boolean;
+
+ /**
+ * @see _.inRange
+ */
+ inRange(end: number): boolean;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.inRange
+ */
+ inRange(
+ start: number,
+ end: number
+ ): LoDashExplicitWrapper<boolean>;
+
+ /**
+ * @see _.inRange
+ */
+ inRange(end: number): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.random
+ interface LoDashStatic {
+ /**
+ * Produces a random number between min and max (inclusive). If only one argument is provided a number between
+ * 0 and the given number is returned. If floating is true, or either min or max are floats, a floating-point
+ * number is returned instead of an integer.
+ *
+ * @param min The minimum possible value.
+ * @param max The maximum possible value.
+ * @param floating Specify returning a floating-point number.
+ * @return Returns the random number.
+ */
+ random(
+ min?: number,
+ max?: number,
+ floating?: boolean
+ ): number;
+
+ /**
+ * @see _.random
+ */
+ random(
+ min?: number,
+ floating?: boolean
+ ): number;
+
+ /**
+ * @see _.random
+ */
+ random(floating?: boolean): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.random
+ */
+ random(
+ max?: number,
+ floating?: boolean
+ ): number;
+
+ /**
+ * @see _.random
+ */
+ random(floating?: boolean): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.random
+ */
+ random(
+ max?: number,
+ floating?: boolean
+ ): LoDashExplicitWrapper<number>;
+
+ /**
+ * @see _.random
+ */
+ random(floating?: boolean): LoDashExplicitWrapper<number>;
+ }
+
+ /**********
+ * Object *
+ **********/
+
+ //_.assign
+ interface LoDashStatic {
+ /**
+ * Assigns own enumerable properties of source objects to the destination
+ * object. Source objects are applied from left to right. Subsequent sources
+ * overwrite property assignments of previous sources.
+ *
+ * **Note:** This method mutates `object` and is loosely based on
+ * [`Object.assign`](https://mdn.io/Object/assign).
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function Foo() {
+ * this.c = 3;
+ * }
+ *
+ * function Bar() {
+ * this.e = 5;
+ * }
+ *
+ * Foo.prototype.d = 4;
+ * Bar.prototype.f = 6;
+ *
+ * _.assign({ 'a': 1 }, new Foo, new Bar);
+ * // => { 'a': 1, 'c': 3, 'e': 5 }
+ */
+ assign<TObject, TSource>(
+ object: TObject,
+ source: TSource
+ ): TObject & TSource;
+
+ /**
+ * @see assign
+ */
+ assign<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see assign
+ */
+ assign<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see assign
+ */
+ assign<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assign
+ */
+ assign<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assign
+ */
+ assign<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assign
+ */
+ assign<TSource>(
+ source: TSource
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assign
+ */
+ assign(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assign
+ */
+ assign<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assign
+ */
+ assign<TSource>(
+ source: TSource
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assign
+ */
+ assign<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assign
+ */
+ assign(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assign
+ */
+ assign<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * This method is like `_.assign` except that it accepts `customizer` which
+ * is invoked to produce the assigned values. If `customizer` returns `undefined`
+ * assignment is handled by the method instead. The `customizer` is invoked
+ * with five arguments: (objValue, srcValue, key, object, source).
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} sources The source objects.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function customizer(objValue, srcValue) {
+ * return _.isUndefined(objValue) ? srcValue : objValue;
+ * }
+ *
+ * var defaults = _.partialRight(_.assignWith, customizer);
+ *
+ * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+ * // => { 'a': 1, 'b': 2 }
+ */
+ assignWith<TObject, TSource>(
+ object: TObject,
+ source: TSource,
+ customizer: AssignCustomizer
+ ): TObject & TSource;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignWith
+ */
+ assignWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignWith
+ */
+ assignWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.assignIn
+ interface LoDashStatic {
+ /**
+ * This method is like `_.assign` except that it iterates over own and
+ * inherited source properties.
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @alias extend
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function Foo() {
+ * this.b = 2;
+ * }
+ *
+ * function Bar() {
+ * this.d = 4;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ * Bar.prototype.e = 5;
+ *
+ * _.assignIn({ 'a': 1 }, new Foo, new Bar);
+ * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
+ */
+ assignIn<TObject, TSource>(
+ object: TObject,
+ source: TSource
+ ): TObject & TSource;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TSource>(
+ source: TSource
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TSource>(
+ source: TSource
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignIn
+ */
+ assignIn<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignIn
+ */
+ assignIn<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.assignInWith
+ type AssignCustomizer = (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}) => any;
+
+ interface LoDashStatic {
+ /**
+ * This method is like `_.assignIn` except that it accepts `customizer` which
+ * is invoked to produce the assigned values. If `customizer` returns `undefined`
+ * assignment is handled by the method instead. The `customizer` is invoked
+ * with five arguments: (objValue, srcValue, key, object, source).
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @alias extendWith
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} sources The source objects.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function customizer(objValue, srcValue) {
+ * return _.isUndefined(objValue) ? srcValue : objValue;
+ * }
+ *
+ * var defaults = _.partialRight(_.assignInWith, customizer);
+ *
+ * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+ * // => { 'a': 1, 'b': 2 }
+ */
+ assignInWith<TObject, TSource>(
+ object: TObject,
+ source: TSource,
+ customizer: AssignCustomizer
+ ): TObject & TSource;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see assignInWith
+ */
+ assignInWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignInWith
+ */
+ assignInWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.create
+ interface LoDashStatic {
+ /**
+ * Creates an object that inherits from the given prototype object. If a properties object is provided its own
+ * enumerable properties are assigned to the created object.
+ *
+ * @param prototype The object to inherit from.
+ * @param properties The properties to assign to the object.
+ * @return Returns the new object.
+ */
+ create<T extends Object, U extends Object>(
+ prototype: T,
+ properties?: U
+ ): T & U;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.create
+ */
+ create<U extends Object>(properties?: U): LoDashImplicitObjectWrapper<T & U>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.create
+ */
+ create<U extends Object>(properties?: U): LoDashExplicitObjectWrapper<T & U>;
+ }
+
+ //_.defaults
+ interface LoDashStatic {
+ /**
+ * Assigns own enumerable properties of source object(s) to the destination object for all destination
+ * properties that resolve to undefined. Once a property is set, additional values of the same property are
+ * ignored.
+ *
+ * Note: This method mutates object.
+ *
+ * @param object The destination object.
+ * @param sources The source objects.
+ * @return The destination object.
+ */
+ defaults<TObject, TSource>(
+ object: TObject,
+ source: TSource
+ ): TSource & TObject;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2
+ ): TSource2 & TSource1 & TObject;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): TSource3 & TSource2 & TSource1 & TObject;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): TSource4 & TSource3 & TSource2 & TSource1 & TObject;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TResult>(
+ object: any,
+ ...sources: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource>(
+ source: TSource
+ ): LoDashImplicitObjectWrapper<TSource & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashImplicitObjectWrapper<TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashImplicitObjectWrapper<TSource3 & TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashImplicitObjectWrapper<TSource4 & TSource3 & TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TResult>(...sources: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource>(
+ source: TSource
+ ): LoDashExplicitObjectWrapper<TSource & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashExplicitObjectWrapper<TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashExplicitObjectWrapper<TSource3 & TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashExplicitObjectWrapper<TSource4 & TSource3 & TSource2 & TSource1 & T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.defaults
+ */
+ defaults<TResult>(...sources: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.defaultsDeep
+ interface LoDashStatic {
+ /**
+ * This method is like _.defaults except that it recursively assigns default properties.
+ * @param object The destination object.
+ * @param sources The source objects.
+ * @return Returns object.
+ **/
+ defaultsDeep<T, TResult>(
+ object: T,
+ ...sources: any[]): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.defaultsDeep
+ **/
+ defaultsDeep<TResult>(...sources: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ // _.extend
+ interface LoDashStatic {
+ /**
+ * @see _.assignIn
+ */
+ extend<TObject, TSource>(
+ object: TObject,
+ source: TSource
+ ): TObject & TSource;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource>(
+ source: TSource
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource>(
+ source: TSource
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignIn
+ */
+ extend<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TObject, TSource>(
+ object: TObject,
+ source: TSource,
+ customizer: AssignCustomizer
+ ): TObject & TSource;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TObject>(object: TObject): TObject;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith(): LoDashImplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TResult>(...otherArgs: any[]): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource>(
+ source: TSource,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: AssignCustomizer
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith(): LoDashExplicitObjectWrapper<T>;
+
+ /**
+ * @see _.assignInWith
+ */
+ extendWith<TResult>(...otherArgs: any[]): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.findKey
+ interface LoDashStatic {
+ /**
+ * This method is like _.find except that it returns the key of the first element predicate returns truthy for
+ * instead of the element itself.
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param object The object to search.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the key of the matched element, else undefined.
+ */
+ findKey<TValues, TObject>(
+ object: TObject,
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey<TObject>(
+ object: TObject,
+ predicate?: ObjectIterator<any, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey<TObject>(
+ object: TObject,
+ predicate?: string
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey<TWhere extends Dictionary<any>, TObject>(
+ object: TObject,
+ predicate?: TWhere
+ ): string | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findKey
+ */
+ findKey<TValues>(
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey(
+ predicate?: ObjectIterator<any, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey(
+ predicate?: string
+ ): string | undefined;
+
+ /**
+ * @see _.findKey
+ */
+ findKey<TWhere extends Dictionary<any>>(
+ predicate?: TWhere
+ ): string | undefined;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findKey
+ */
+ findKey<TValues>(
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findKey
+ */
+ findKey(
+ predicate?: ObjectIterator<any, boolean>
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findKey
+ */
+ findKey(
+ predicate?: string
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findKey
+ */
+ findKey<TWhere extends Dictionary<any>>(
+ predicate?: TWhere
+ ): LoDashExplicitWrapper<string | undefined>;
+ }
+
+ //_.findLastKey
+ interface LoDashStatic {
+ /**
+ * This method is like _.findKey except that it iterates over elements of a collection in the opposite order.
+ *
+ * If a property name is provided for predicate the created _.property style callback returns the property
+ * value of the given element.
+ *
+ * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
+ * elements that have a matching property value, else false.
+ *
+ * If an object is provided for predicate the created _.matches style callback returns true for elements that
+ * have the properties of the given object, else false.
+ *
+ * @param object The object to search.
+ * @param predicate The function invoked per iteration.
+ * @param thisArg The this binding of predicate.
+ * @return Returns the key of the matched element, else undefined.
+ */
+ findLastKey<TValues, TObject>(
+ object: TObject,
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TObject>(
+ object: TObject,
+ predicate?: ObjectIterator<any, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TObject>(
+ object: TObject,
+ predicate?: string
+ ): string;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TWhere extends Dictionary<any>, TObject>(
+ object: TObject,
+ predicate?: TWhere
+ ): string | undefined;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TValues>(
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): string;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey(
+ predicate?: ObjectIterator<any, boolean>
+ ): string | undefined;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey(
+ predicate?: string
+ ): string | undefined;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TWhere extends Dictionary<any>>(
+ predicate?: TWhere
+ ): string | undefined;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TValues>(
+ predicate?: DictionaryIterator<TValues, boolean>
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey(
+ predicate?: ObjectIterator<any, boolean>
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey(
+ predicate?: string
+ ): LoDashExplicitWrapper<string | undefined>;
+
+ /**
+ * @see _.findLastKey
+ */
+ findLastKey<TWhere extends Dictionary<any>>(
+ predicate?: TWhere
+ ): LoDashExplicitWrapper<string | undefined>;
+ }
+
+ //_.forIn
+ interface LoDashStatic {
+ /**
+ * Iterates over own and inherited enumerable properties of an object invoking iteratee for each property. The
+ * iteratee is bound to thisArg and invoked with three arguments: (value, key, object). Iteratee functions may
+ * exit iteration early by explicitly returning false.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns object.
+ */
+ forIn<T>(
+ object: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forIn
+ */
+ forIn<T>(
+ object: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forIn
+ */
+ forIn<T extends {} | null | undefined>(
+ object: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forIn
+ */
+ forIn<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forIn
+ */
+ forIn<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.forInRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.forIn except that it iterates over properties of object in the opposite order.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns object.
+ */
+ forInRight<T>(
+ object: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forInRight
+ */
+ forInRight<T>(
+ object: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forInRight
+ */
+ forInRight<T extends {} | null | undefined>(
+ object: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forInRight
+ */
+ forInRight<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forInRight
+ */
+ forInRight<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.forOwn
+ interface LoDashStatic {
+ /**
+ * Iterates over own enumerable properties of an object invoking iteratee for each property. The iteratee is
+ * bound to thisArg and invoked with three arguments: (value, key, object). Iteratee functions may exit
+ * iteration early by explicitly returning false.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns object.
+ */
+ forOwn<T>(
+ object: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forOwn
+ */
+ forOwn<T>(
+ object: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forOwn
+ */
+ forOwn<T extends {} | null | undefined>(
+ object: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forOwn
+ */
+ forOwn<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forOwn
+ */
+ forOwn<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.forOwnRight
+ interface LoDashStatic {
+ /**
+ * This method is like _.forOwn except that it iterates over properties of object in the opposite order.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns object.
+ */
+ forOwnRight<T>(
+ object: Dictionary<T>,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.forOwnRight
+ */
+ forOwnRight<T>(
+ object: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, any>
+ ): Dictionary<T> | null | undefined;
+
+ /**
+ * @see _.forOwnRight
+ */
+ forOwnRight<T extends {} | null | undefined>(
+ object: T,
+ iteratee?: ObjectIterator<any, any>
+ ): T;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forOwnRight
+ */
+ forOwnRight<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.forOwnRight
+ */
+ forOwnRight<TValue>(
+ iteratee?: DictionaryIterator<TValue, any>
+ ): TWrapper;
+ }
+
+ //_.functions
+ interface LoDashStatic {
+ /**
+ * Creates an array of function property names from own enumerable properties
+ * of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to inspect.
+ * @returns {Array} Returns the new array of property names.
+ * @example
+ *
+ * function Foo() {
+ * this.a = _.constant('a');
+ * this.b = _.constant('b');
+ * }
+ *
+ * Foo.prototype.c = _.constant('c');
+ *
+ * _.functions(new Foo);
+ * // => ['a', 'b']
+ */
+ functions<T extends {}>(object: any): string[];
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.functions
+ */
+ functions(): _.LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.functions
+ */
+ functions(): _.LoDashExplicitArrayWrapper<string>;
+ }
+
+ //_.functionsIn
+ interface LoDashStatic {
+ /**
+ * Creates an array of function property names from own and inherited
+ * enumerable properties of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to inspect.
+ * @returns {Array} Returns the new array of property names.
+ * @example
+ *
+ * function Foo() {
+ * this.a = _.constant('a');
+ * this.b = _.constant('b');
+ * }
+ *
+ * Foo.prototype.c = _.constant('c');
+ *
+ * _.functionsIn(new Foo);
+ * // => ['a', 'b', 'c']
+ */
+ functionsIn<T extends {}>(object: any): string[];
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.functionsIn
+ */
+ functionsIn(): _.LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.functionsIn
+ */
+ functionsIn(): _.LoDashExplicitArrayWrapper<string>;
+ }
+
+ //_.get
+ interface LoDashStatic {
+ /**
+ * Gets the property value at path of object. If the resolved value is undefined the defaultValue is used
+ * in its place.
+ *
+ * @param object The object to query.
+ * @param path The path of the property to get.
+ * @param defaultValue The value returned if the resolved value is undefined.
+ * @return Returns the resolved value.
+ */
+ get<TObject, TResult>(
+ object: TObject,
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult
+ ): TResult;
+
+ /**
+ * @see _.get
+ */
+ get<TResult>(
+ object: any,
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult
+ ): TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.get
+ */
+ get<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult
+ ): TResult;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.get
+ */
+ get<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.get
+ */
+ get<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult
+ ): TResult;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.get
+ */
+ get<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.get
+ */
+ get<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.get
+ */
+ get<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ //_.has
+ interface LoDashStatic {
+ /**
+ * Checks if `path` is a direct property of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
+ *
+ * var object = { 'a': { 'b': { 'c': 3 } } };
+ * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ *
+ * _.has(object, 'a');
+ * // => true
+ *
+ * _.has(object, 'a.b.c');
+ * // => true
+ *
+ * _.has(object, ['a', 'b', 'c']);
+ * // => true
+ *
+ * _.has(other, 'a');
+ * // => false
+ */
+ has<T extends {}>(
+ object: T,
+ path: Many<StringRepresentable>
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.has
+ */
+ has(path: Many<StringRepresentable>): boolean;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.has
+ */
+ has(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.hasIn
+ interface LoDashStatic {
+ /**
+ * Checks if `path` is a direct or inherited property of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
+ *
+ * var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ *
+ * _.hasIn(object, 'a');
+ * // => true
+ *
+ * _.hasIn(object, 'a.b.c');
+ * // => true
+ *
+ * _.hasIn(object, ['a', 'b', 'c']);
+ * // => true
+ *
+ * _.hasIn(object, 'b');
+ * // => false
+ */
+ hasIn<T extends {}>(
+ object: T,
+ path: Many<StringRepresentable>
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.hasIn
+ */
+ hasIn(path: Many<StringRepresentable>): boolean;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.hasIn
+ */
+ hasIn(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.invert
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of the inverted keys and values of object. If object contains duplicate values,
+ * subsequent values overwrite property assignments of previous values unless multiValue is true.
+ *
+ * @param object The object to invert.
+ * @param multiValue Allow multiple values per key.
+ * @return Returns the new inverted object.
+ */
+ invert<T extends {}, TResult extends {}>(
+ object: T,
+ multiValue?: boolean
+ ): TResult;
+
+ /**
+ * @see _.invert
+ */
+ invert<TResult extends {}>(
+ object: Object,
+ multiValue?: boolean
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.invert
+ */
+ invert<TResult extends {}>(multiValue?: boolean): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.invert
+ */
+ invert<TResult extends {}>(multiValue?: boolean): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.inverBy
+ type InvertByIterator<T> = (value: T) => any;
+
+ interface LoDashStatic {
+ /**
+ * This method is like _.invert except that the inverted object is generated from the results of running each
+ * element of object through iteratee. The corresponding inverted value of each inverted key is an array of
+ * keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).
+ *
+ * @param object The object to invert.
+ * @param interatee The iteratee invoked per element.
+ * @return Returns the new inverted object.
+ */
+ invertBy(
+ object: Object,
+ interatee?: InvertByIterator<any>|string
+ ): Dictionary<string[]>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<T>(
+ object: _.Dictionary<T>|_.NumericDictionary<T>,
+ interatee?: InvertByIterator<T>|string
+ ): Dictionary<string[]>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<W>(
+ object: Object,
+ interatee?: W
+ ): Dictionary<string[]>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<T, W>(
+ object: _.Dictionary<T>,
+ interatee?: W
+ ): Dictionary<string[]>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<any>
+ ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<T>|string
+ ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<W>(
+ interatee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<any>|string
+ ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<W>(
+ interatee?: W
+ ): LoDashImplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<any>
+ ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<T>|string
+ ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<W>(
+ interatee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.invertBy
+ */
+ invertBy(
+ interatee?: InvertByIterator<any>|string
+ ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
+
+ /**
+ * @see _.invertBy
+ */
+ invertBy<W>(
+ interatee?: W
+ ): LoDashExplicitObjectWrapper<Dictionary<string[]>>;
+ }
+
+ //_.keys
+ interface LoDashStatic {
+ /**
+ * Creates an array of the own enumerable property names of object.
+ *
+ * Note: Non-object values are coerced to objects. See the ES spec for more details.
+ *
+ * @param object The object to query.
+ * @return Returns the array of property names.
+ */
+ keys(object?: any): string[];
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keys
+ */
+ keys(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keys
+ */
+ keys(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ //_.keysIn
+ interface LoDashStatic {
+ /**
+ * Creates an array of the own and inherited enumerable property names of object.
+ *
+ * Note: Non-object values are coerced to objects.
+ *
+ * @param object The object to query.
+ * @return An array of property names.
+ */
+ keysIn(object?: any): string[];
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keysIn
+ */
+ keysIn(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.keysIn
+ */
+ keysIn(): LoDashExplicitArrayWrapper<string>;
+ }
+
+ //_.mapKeys
+ interface LoDashStatic {
+ /**
+ * The opposite of _.mapValues; this method creates an object with the same values as object and keys generated
+ * by running each own enumerable property of object through iteratee.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the new mapped object.
+ */
+ mapKeys<T, TKey>(
+ object: List<T> | null | undefined,
+ iteratee?: ListIterator<T, TKey>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<T, TKey>(
+ object: Dictionary<T> | null | undefined,
+ iteratee?: DictionaryIterator<T, TKey>
+ ): Dictionary<T>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<T, TObject extends {}>(
+ object: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: TObject
+ ): Dictionary<T>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<T>(
+ object: List<T>|Dictionary<T> | null | undefined,
+ iteratee?: string
+ ): Dictionary<T>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TObject extends {}>(
+ iteratee?: TObject
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult, TKey>(
+ iteratee?: ListIterator<TResult, TKey>|DictionaryIterator<TResult, TKey>
+ ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult, TObject extends {}>(
+ iteratee?: TObject
+ ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult>(
+ iteratee?: string
+ ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TKey>(
+ iteratee?: ListIterator<T, TKey>
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TObject extends {}>(
+ iteratee?: TObject
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<T>>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult, TKey>(
+ iteratee?: ListIterator<TResult, TKey>|DictionaryIterator<TResult, TKey>
+ ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult, TObject extends {}>(
+ iteratee?: TObject
+ ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapKeys
+ */
+ mapKeys<TResult>(
+ iteratee?: string
+ ): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
+ }
+
+ //_.mapValues
+ interface LoDashStatic {
+ /**
+ * Creates an object with the same keys as object and values generated by running each own
+ * enumerable property of object through iteratee. The iteratee function is bound to thisArg
+ * and invoked with three arguments: (value, key, object).
+ *
+ * If a property name is provided iteratee the created "_.property" style callback returns
+ * the property value of the given element.
+ *
+ * If a value is also provided for thisArg the creted "_.matchesProperty" style callback returns
+ * true for elements that have a matching property value, else false;.
+ *
+ * If an object is provided for iteratee the created "_.matches" style callback returns true
+ * for elements that have the properties of the given object, else false.
+ *
+ * @param {Object} object The object to iterate over.
+ * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Object} [thisArg] The `this` binding of `iteratee`.
+ * @return {Object} Returns the new mapped object.
+ */
+ mapValues<T, TResult>(obj: Dictionary<T> | null | undefined, callback: ObjectIterator<T, TResult>): Dictionary<TResult>;
+ mapValues<T>(obj: Dictionary<T> | null | undefined, where: Dictionary<T>): Dictionary<boolean>;
+ mapValues<T, TMapped>(obj: T | null | undefined, pluck: string): TMapped;
+ mapValues<T>(obj: T | null | undefined, callback: ObjectIterator<any, any>): T;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.mapValues
+ * TValue is the type of the property values of T.
+ * TResult is the type output by the ObjectIterator function
+ */
+ mapValues<TValue, TResult>(callback: ObjectIterator<TValue, TResult>): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapValues
+ * TResult is the type of the property specified by pluck.
+ * T should be a Dictionary<Dictionary<TResult>>
+ */
+ mapValues<TResult>(pluck: string): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapValues
+ * TResult is the type of the properties of each object in the values of T
+ * T should be a Dictionary<Dictionary<TResult>>
+ */
+ mapValues<TResult>(where: Dictionary<TResult>): LoDashImplicitArrayWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.mapValues
+ * TValue is the type of the property values of T.
+ * TResult is the type output by the ObjectIterator function
+ */
+ mapValues<TValue, TResult>(callback: ObjectIterator<TValue, TResult>): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapValues
+ * TResult is the type of the property specified by pluck.
+ * T should be a Dictionary<Dictionary<TResult>>
+ */
+ mapValues<TResult>(pluck: string): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.mapValues
+ * TResult is the type of the properties of each object in the values of T
+ * T should be a Dictionary<Dictionary<TResult>>
+ */
+ mapValues<TResult>(where: Dictionary<TResult>): LoDashExplicitObjectWrapper<boolean>;
+ }
+
+ //_.merge
+ interface LoDashStatic {
+ /**
+ * Recursively merges own and inherited enumerable properties of source
+ * objects into the destination object, skipping source properties that resolve
+ * to `undefined`. Array and plain object properties are merged recursively.
+ * Other objects and value types are overridden by assignment. Source objects
+ * are applied from left to right. Subsequent sources overwrite property
+ * assignments of previous sources.
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var users = {
+ * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
+ * };
+ *
+ * var ages = {
+ * 'data': [{ 'age': 36 }, { 'age': 40 }]
+ * };
+ *
+ * _.merge(users, ages);
+ * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
+ */
+ merge<TObject, TSource>(
+ object: TObject,
+ source: TSource
+ ): TObject & TSource;
+
+ /**
+ * @see _.merge
+ */
+ merge<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see _.merge
+ */
+ merge<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see _.merge
+ */
+ merge<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.merge
+ */
+ merge<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.merge
+ */
+ merge<TSource>(
+ source: TSource
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TResult>(
+ ...otherArgs: any[]
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.merge
+ */
+ merge<TSource>(
+ source: TSource
+ ): LoDashExplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TSource1, TSource2, TSource3, TSource4>(
+ ): LoDashExplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.merge
+ */
+ merge<TResult>(
+ ...otherArgs: any[]
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.mergeWith
+ type MergeWithCustomizer = (value: any, srcValue: any, key?: string, object?: Object, source?: Object) => any;
+
+ interface LoDashStatic {
+ /**
+ * This method is like `_.merge` except that it accepts `customizer` which
+ * is invoked to produce the merged values of the destination and source
+ * properties. If `customizer` returns `undefined` merging is handled by the
+ * method instead. The `customizer` is invoked with seven arguments:
+ * (objValue, srcValue, key, object, source, stack).
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} sources The source objects.
+ * @param {Function} customizer The function to customize assigned values.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * function customizer(objValue, srcValue) {
+ * if (_.isArray(objValue)) {
+ * return objValue.concat(srcValue);
+ * }
+ * }
+ *
+ * var object = {
+ * 'fruits': ['apple'],
+ * 'vegetables': ['beet']
+ * };
+ *
+ * var other = {
+ * 'fruits': ['banana'],
+ * 'vegetables': ['carrot']
+ * };
+ *
+ * _.merge(object, other, customizer);
+ * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
+ */
+ mergeWith<TObject, TSource>(
+ object: TObject,
+ source: TSource,
+ customizer: MergeWithCustomizer
+ ): TObject & TSource;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TObject, TSource1, TSource2>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ customizer: MergeWithCustomizer
+ ): TObject & TSource1 & TSource2;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TObject, TSource1, TSource2, TSource3>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: MergeWithCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TObject, TSource1, TSource2, TSource3, TSource4>(
+ object: TObject,
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: MergeWithCustomizer
+ ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TResult>(
+ object: any,
+ ...otherArgs: any[]
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TSource>(
+ source: TSource,
+ customizer: MergeWithCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource>;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TSource1, TSource2>(
+ source1: TSource1,
+ source2: TSource2,
+ customizer: MergeWithCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2>;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TSource1, TSource2, TSource3>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ customizer: MergeWithCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3>;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TSource1, TSource2, TSource3, TSource4>(
+ source1: TSource1,
+ source2: TSource2,
+ source3: TSource3,
+ source4: TSource4,
+ customizer: MergeWithCustomizer
+ ): LoDashImplicitObjectWrapper<T & TSource1 & TSource2 & TSource3 & TSource4>;
+
+ /**
+ * @see _.mergeWith
+ */
+ mergeWith<TResult>(
+ ...otherArgs: any[]
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ //_.omit
+ interface LoDashStatic {
+ /**
+ * The opposite of `_.pick`; this method creates an object composed of the
+ * own and inherited enumerable properties of `object` that are not omitted.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {...(string|string[])} [props] The property names to omit, specified
+ * individually or in arrays..
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
+ *
+ * _.omit(object, ['a', 'c']);
+ * // => { 'b': '2' }
+ */
+
+ omit<TResult extends {}, T extends {}>(
+ object: T | null | undefined,
+ ...predicate: Array<Many<StringRepresentable>>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.omit
+ */
+ omit<TResult extends {}>(
+ ...predicate: Array<Many<StringRepresentable>>
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.omit
+ */
+ omit<TResult extends {}>(
+ ...predicate: Array<Many<StringRepresentable>>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.omitBy
+ interface LoDashStatic {
+ /**
+ * The opposite of `_.pickBy`; this method creates an object composed of the
+ * own and inherited enumerable properties of `object` that `predicate`
+ * doesn't return truthy for.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
+ *
+ * _.omitBy(object, _.isNumber);
+ * // => { 'b': '2' }
+ */
+ omitBy<TResult extends {}, T extends {}>(
+ object: T | null | undefined,
+ predicate: ObjectIterator<any, boolean>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.omitBy
+ */
+ omitBy<TResult extends {}>(
+ predicate: ObjectIterator<any, boolean>
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.omitBy
+ */
+ omitBy<TResult extends {}>(
+ predicate: ObjectIterator<any, boolean>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.pick
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of the picked `object` properties.
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {...(string|string[])} [props] The property names to pick, specified
+ * individually or in arrays.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
+ *
+ * _.pick(object, ['a', 'c']);
+ * // => { 'a': 1, 'c': 3 }
+ */
+ pick<TResult extends {}, T extends {}>(
+ object: T | null | undefined,
+ ...predicate: Array<Many<StringRepresentable>>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.pick
+ */
+ pick<TResult extends {}>(
+ ...predicate: Array<Many<StringRepresentable>>
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.pick
+ */
+ pick<TResult extends {}>(
+ ...predicate: Array<Many<StringRepresentable>>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.pickBy
+ interface LoDashStatic {
+ /**
+ * Creates an object composed of the `object` properties `predicate` returns
+ * truthy for. The predicate is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
+ *
+ * _.pickBy(object, _.isNumber);
+ * // => { 'a': 1, 'c': 3 }
+ */
+ pickBy<TResult extends {}, T extends {}>(
+ object: T | null | undefined,
+ predicate?: ObjectIterator<any, boolean>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.pickBy
+ */
+ pickBy<TResult extends {}>(
+ predicate?: ObjectIterator<any, boolean>
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.pickBy
+ */
+ pickBy<TResult extends {}>(
+ predicate?: ObjectIterator<any, boolean>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.result
+ interface LoDashStatic {
+ /**
+ * This method is like _.get except that if the resolved value is a function it’s invoked with the this binding
+ * of its parent object and its result is returned.
+ *
+ * @param object The object to query.
+ * @param path The path of the property to resolve.
+ * @param defaultValue The value returned if the resolved value is undefined.
+ * @return Returns the resolved value.
+ */
+ result<TObject, TResult>(
+ object: TObject,
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult|((...args: any[]) => TResult)
+ ): TResult;
+
+ /**
+ * @see _.result
+ */
+ result<TResult>(
+ object: any,
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult|((...args: any[]) => TResult)
+ ): TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.result
+ */
+ result<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult|((...args: any[]) => TResult)
+ ): TResult;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.result
+ */
+ result<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult|((...args: any[]) => TResult)
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.result
+ */
+ result<TResult>(
+ path: Many<StringRepresentable>,
+ defaultValue?: TResult|((...args: any[]) => TResult)
+ ): TResult;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.result
+ */
+ result<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.result
+ */
+ result<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.result
+ */
+ result<TResultWrapper>(
+ path: Many<StringRepresentable>,
+ defaultValue?: any
+ ): TResultWrapper;
+ }
+
+ //_.set
+ interface LoDashStatic {
+ /**
+ * Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for
+ * missing index properties while objects are created for all other missing properties. Use _.setWith to
+ * customize path creation.
+ *
+ * @param object The object to modify.
+ * @param path The path of the property to set.
+ * @param value The value to set.
+ * @return Returns object.
+ */
+ set<TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ value: any
+ ): TResult;
+
+ /**
+ * @see _.set
+ */
+ set<V, TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ value: V
+ ): TResult;
+
+ /**
+ * @see _.set
+ */
+ set<O, V, TResult>(
+ object: O,
+ path: Many<StringRepresentable>,
+ value: V
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.set
+ */
+ set<TResult>(
+ path: Many<StringRepresentable>,
+ value: any
+ ): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.set
+ */
+ set<V, TResult>(
+ path: Many<StringRepresentable>,
+ value: V
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.set
+ */
+ set<TResult>(
+ path: Many<StringRepresentable>,
+ value: any
+ ): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.set
+ */
+ set<V, TResult>(
+ path: Many<StringRepresentable>,
+ value: V
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.setWith
+ type SetWithCustomizer<T> = (nsValue: any, key: string, nsObject: T) => any;
+
+ interface LoDashStatic {
+ /**
+ * This method is like _.set except that it accepts customizer which is invoked to produce the objects of
+ * path. If customizer returns undefined path creation is handled by the method instead. The customizer is
+ * invoked with three arguments: (nsValue, key, nsObject).
+ *
+ * @param object The object to modify.
+ * @param path The path of the property to set.
+ * @param value The value to set.
+ * @parem customizer The function to customize assigned values.
+ * @return Returns object.
+ */
+ setWith<TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ value: any,
+ customizer?: SetWithCustomizer<Object>
+ ): TResult;
+
+ /**
+ * @see _.setWith
+ */
+ setWith<V, TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ value: V,
+ customizer?: SetWithCustomizer<Object>
+ ): TResult;
+
+ /**
+ * @see _.setWith
+ */
+ setWith<O, V, TResult>(
+ object: O,
+ path: Many<StringRepresentable>,
+ value: V,
+ customizer?: SetWithCustomizer<O>
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.setWith
+ */
+ setWith<TResult>(
+ path: Many<StringRepresentable>,
+ value: any,
+ customizer?: SetWithCustomizer<T>
+ ): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.setWith
+ */
+ setWith<V, TResult>(
+ path: Many<StringRepresentable>,
+ value: V,
+ customizer?: SetWithCustomizer<T>
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.setWith
+ */
+ setWith<TResult>(
+ path: Many<StringRepresentable>,
+ value: any,
+ customizer?: SetWithCustomizer<T>
+ ): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.setWith
+ */
+ setWith<V, TResult>(
+ path: Many<StringRepresentable>,
+ value: V,
+ customizer?: SetWithCustomizer<T>
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.toPairs
+ interface LoDashStatic {
+ /**
+ * Creates an array of own enumerable key-value pairs for object.
+ *
+ * @param object The object to query.
+ * @return Returns the new array of key-value pairs.
+ */
+ toPairs<T extends {}>(object?: T): [string, any][];
+
+ toPairs<T extends {}, TResult>(object?: T): [string, TResult][];
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.toPairs
+ */
+ toPairs<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.toPairs
+ */
+ toPairs<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>;
+ }
+
+ //_.toPairsIn
+ interface LoDashStatic {
+ /**
+ * Creates an array of own and inherited enumerable key-value pairs for object.
+ *
+ * @param object The object to query.
+ * @return Returns the new array of key-value pairs.
+ */
+ toPairsIn<T extends {}>(object?: T): [string, any][];
+
+ toPairsIn<T extends {}, TResult>(object?: T): [string, TResult][];
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.toPairsIn
+ */
+ toPairsIn<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.toPairsIn
+ */
+ toPairsIn<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>;
+ }
+
+ //_.transform
+ interface LoDashStatic {
+ /**
+ * An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of
+ * running each of its own enumerable properties through iteratee, with each invocation potentially mutating
+ * the accumulator object. The iteratee is bound to thisArg and invoked with four arguments: (accumulator,
+ * value, key, object). Iteratee functions may exit iteration early by explicitly returning false.
+ *
+ * @param object The object to iterate over.
+ * @param iteratee The function invoked per iteration.
+ * @param accumulator The custom accumulator value.
+ * @param thisArg The this binding of iteratee.
+ * @return Returns the accumulated value.
+ */
+ transform<T, TResult>(
+ object: T[],
+ iteratee?: MemoVoidArrayIterator<T, TResult[]>,
+ accumulator?: TResult[]
+ ): TResult[];
+
+ /**
+ * @see _.transform
+ */
+ transform<T, TResult>(
+ object: T[],
+ iteratee?: MemoVoidArrayIterator<T, Dictionary<TResult>>,
+ accumulator?: Dictionary<TResult>
+ ): Dictionary<TResult>;
+
+ /**
+ * @see _.transform
+ */
+ transform<T, TResult>(
+ object: Dictionary<T>,
+ iteratee?: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
+ accumulator?: Dictionary<TResult>
+ ): Dictionary<TResult>;
+
+ /**
+ * @see _.transform
+ */
+ transform<T, TResult>(
+ object: Dictionary<T>,
+ iteratee?: MemoVoidDictionaryIterator<T, TResult[]>,
+ accumulator?: TResult[]
+ ): TResult[];
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.transform
+ */
+ transform<TResult>(
+ iteratee?: MemoVoidArrayIterator<T, TResult[]>,
+ accumulator?: TResult[]
+ ): LoDashImplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.transform
+ */
+ transform<TResult>(
+ iteratee?: MemoVoidArrayIterator<T, Dictionary<TResult>>,
+ accumulator?: Dictionary<TResult>
+ ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.transform
+ */
+ transform<T, TResult>(
+ iteratee?: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
+ accumulator?: Dictionary<TResult>
+ ): LoDashImplicitObjectWrapper<Dictionary<TResult>>;
+
+ /**
+ * @see _.transform
+ */
+ transform<T, TResult>(
+ iteratee?: MemoVoidDictionaryIterator<T, TResult[]>,
+ accumulator?: TResult[]
+ ): LoDashImplicitArrayWrapper<TResult>;
+ }
+
+ //_.unset
+ interface LoDashStatic {
+ /**
+ * Removes the property at path of object.
+ *
+ * Note: This method mutates object.
+ *
+ * @param object The object to modify.
+ * @param path The path of the property to unset.
+ * @return Returns true if the property is deleted, else false.
+ */
+ unset<T>(
+ object: T,
+ path: Many<StringRepresentable>
+ ): boolean;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.unset
+ */
+ unset(path: Many<StringRepresentable>): LoDashImplicitWrapper<boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.unset
+ */
+ unset(path: Many<StringRepresentable>): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.update
+ interface LoDashStatic {
+ /**
+ * This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to
+ * customize path creation. The updater is invoked with one argument: (value).
+ *
+ * @param object The object to modify.
+ * @param path The path of the property to set.
+ * @param updater The function to produce the updated value.
+ * @return Returns object.
+ */
+ update<TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ updater: Function
+ ): TResult;
+
+ /**
+ * @see _.update
+ */
+ update<U extends Function, TResult>(
+ object: Object,
+ path: Many<StringRepresentable>,
+ updater: U
+ ): TResult;
+
+ /**
+ * @see _.update
+ */
+ update<O extends {}, TResult>(
+ object: O,
+ path: Many<StringRepresentable>,
+ updater: Function
+ ): TResult;
+
+ /**
+ * @see _.update
+ */
+ update<O, U extends Function, TResult>(
+ object: O,
+ path: Many<StringRepresentable>,
+ updater: U
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.update
+ */
+ update<TResult>(
+ path: Many<StringRepresentable>,
+ updater: any
+ ): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.update
+ */
+ update<U extends Function, TResult>(
+ path: Many<StringRepresentable>,
+ updater: U
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.update
+ */
+ update<TResult>(
+ path: Many<StringRepresentable>,
+ updater: any
+ ): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.update
+ */
+ update<U extends Function, TResult>(
+ path: Many<StringRepresentable>,
+ updater: U
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.values
+ interface LoDashStatic {
+ /**
+ * Creates an array of the own enumerable property values of object.
+ *
+ * @param object The object to query.
+ * @return Returns an array of property values.
+ */
+ values<T>(object?: Dictionary<T>|NumericDictionary<T>|List<T> | null | undefined): T[];
+
+ /**
+ * @see _.values
+ */
+ values<T>(object?: any): T[];
+ }
+
+ interface LoDashImplicitStringWrapper {
+ /**
+ * @see _.values
+ */
+ values(): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.values
+ */
+ values(): LoDashImplicitArrayWrapper<any>;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.values
+ */
+ values(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.values
+ */
+ values<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.values
+ */
+ values<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.values
+ */
+ values(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.values
+ */
+ values<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ //_.valuesIn
+ interface LoDashStatic {
+ /**
+ * Creates an array of the own and inherited enumerable property values of object.
+ *
+ * @param object The object to query.
+ * @return Returns the array of property values.
+ */
+ valuesIn<T>(object?: Dictionary<T>): T[];
+
+ /**
+ * @see _.valuesIn
+ */
+ valuesIn<T>(object?: any): T[];
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.valuesIn
+ */
+ valuesIn<T>(): LoDashImplicitArrayWrapper<T>;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.valuesIn
+ */
+ valuesIn<T>(): LoDashExplicitArrayWrapper<T>;
+ }
+
+ /**********
+ * String *
+ **********/
+
+ //_.camelCase
+ interface LoDashStatic {
+ /**
+ * Converts string to camel case.
+ *
+ * @param string The string to convert.
+ * @return Returns the camel cased string.
+ */
+ camelCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.camelCase
+ */
+ camelCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.camelCase
+ */
+ camelCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.capitalize
+ interface LoDashStatic {
+ /**
+ * Converts the first character of string to upper case and the remaining to lower case.
+ *
+ * @param string The string to capitalize.
+ * @return Returns the capitalized string.
+ */
+ capitalize(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.capitalize
+ */
+ capitalize(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.capitalize
+ */
+ capitalize(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.deburr
+ interface LoDashStatic {
+ /**
+ * Deburrs string by converting latin-1 supplementary letters to basic latin letters and removing combining
+ * diacritical marks.
+ *
+ * @param string The string to deburr.
+ * @return Returns the deburred string.
+ */
+ deburr(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.deburr
+ */
+ deburr(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.deburr
+ */
+ deburr(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.endsWith
+ interface LoDashStatic {
+ /**
+ * Checks if string ends with the given target string.
+ *
+ * @param string The string to search.
+ * @param target The string to search for.
+ * @param position The position to search from.
+ * @return Returns true if string ends with target, else false.
+ */
+ endsWith(
+ string?: string,
+ target?: string,
+ position?: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.endsWith
+ */
+ endsWith(
+ target?: string,
+ position?: number
+ ): boolean;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.endsWith
+ */
+ endsWith(
+ target?: string,
+ position?: number
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ // _.escape
+ interface LoDashStatic {
+ /**
+ * Converts the characters "&", "<", ">", '"', "'", and "`" in string to their corresponding HTML entities.
+ *
+ * Note: No other characters are escaped. To escape additional characters use a third-party library like he.
+ *
+ * hough the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML
+ * and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens’s
+ * article (under "semi-related fun fact") for more details.
+ *
+ * Backticks are escaped because in IE < 9, they can break out of attribute values or HTML comments. See #59,
+ * #102, #108, and #133 of the HTML5 Security Cheatsheet for more details.
+ *
+ * When working with HTML you should always quote attribute values to reduce XSS vectors.
+ *
+ * @param string The string to escape.
+ * @return Returns the escaped string.
+ */
+ escape(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.escape
+ */
+ escape(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.escape
+ */
+ escape(): LoDashExplicitWrapper<string>;
+ }
+
+ // _.escapeRegExp
+ interface LoDashStatic {
+ /**
+ * Escapes the RegExp special characters "^", "$", "\", ".", "*", "+", "?", "(", ")", "[", "]",
+ * "{", "}", and "|" in string.
+ *
+ * @param string The string to escape.
+ * @return Returns the escaped string.
+ */
+ escapeRegExp(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.escapeRegExp
+ */
+ escapeRegExp(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.escapeRegExp
+ */
+ escapeRegExp(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.kebabCase
+ interface LoDashStatic {
+ /**
+ * Converts string to kebab case.
+ *
+ * @param string The string to convert.
+ * @return Returns the kebab cased string.
+ */
+ kebabCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.kebabCase
+ */
+ kebabCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.kebabCase
+ */
+ kebabCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.lowerCase
+ interface LoDashStatic {
+ /**
+ * Converts `string`, as space separated words, to lower case.
+ *
+ * @param string The string to convert.
+ * @return Returns the lower cased string.
+ */
+ lowerCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.lowerCase
+ */
+ lowerCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.lowerCase
+ */
+ lowerCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.lowerFirst
+ interface LoDashStatic {
+ /**
+ * Converts the first character of `string` to lower case.
+ *
+ * @param string The string to convert.
+ * @return Returns the converted string.
+ */
+ lowerFirst(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.lowerFirst
+ */
+ lowerFirst(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.lowerFirst
+ */
+ lowerFirst(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.pad
+ interface LoDashStatic {
+ /**
+ * Pads string on the left and right sides if it’s shorter than length. Padding characters are truncated if
+ * they can’t be evenly divided by length.
+ *
+ * @param string The string to pad.
+ * @param length The padding length.
+ * @param chars The string used as padding.
+ * @return Returns the padded string.
+ */
+ pad(
+ string?: string,
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.pad
+ */
+ pad(
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.pad
+ */
+ pad(
+ length?: number,
+ chars?: string
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ //_.padEnd
+ interface LoDashStatic {
+ /**
+ * Pads string on the right side if it’s shorter than length. Padding characters are truncated if they exceed
+ * length.
+ *
+ * @param string The string to pad.
+ * @param length The padding length.
+ * @param chars The string used as padding.
+ * @return Returns the padded string.
+ */
+ padEnd(
+ string?: string,
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.padEnd
+ */
+ padEnd(
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.padEnd
+ */
+ padEnd(
+ length?: number,
+ chars?: string
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ //_.padStart
+ interface LoDashStatic {
+ /**
+ * Pads string on the left side if it’s shorter than length. Padding characters are truncated if they exceed
+ * length.
+ *
+ * @param string The string to pad.
+ * @param length The padding length.
+ * @param chars The string used as padding.
+ * @return Returns the padded string.
+ */
+ padStart(
+ string?: string,
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.padStart
+ */
+ padStart(
+ length?: number,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.padStart
+ */
+ padStart(
+ length?: number,
+ chars?: string
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ //_.parseInt
+ interface LoDashStatic {
+ /**
+ * Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used
+ * unless value is a hexadecimal, in which case a radix of 16 is used.
+ *
+ * Note: This method aligns with the ES5 implementation of parseInt.
+ *
+ * @param string The string to convert.
+ * @param radix The radix to interpret value by.
+ * @return Returns the converted integer.
+ */
+ parseInt(
+ string: string,
+ radix?: number
+ ): number;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.parseInt
+ */
+ parseInt(radix?: number): number;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.parseInt
+ */
+ parseInt(radix?: number): LoDashExplicitWrapper<number>;
+ }
+
+ //_.repeat
+ interface LoDashStatic {
+ /**
+ * Repeats the given string n times.
+ *
+ * @param string The string to repeat.
+ * @param n The number of times to repeat the string.
+ * @return Returns the repeated string.
+ */
+ repeat(
+ string?: string,
+ n?: number
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.repeat
+ */
+ repeat(n?: number): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.repeat
+ */
+ repeat(n?: number): LoDashExplicitWrapper<string>;
+ }
+
+ //_.replace
+ interface LoDashStatic {
+ /**
+ * Replaces matches for pattern in string with replacement.
+ *
+ * Note: This method is based on String#replace.
+ *
+ * @param string
+ * @param pattern
+ * @param replacement
+ * @return Returns the modified string.
+ */
+ replace(
+ string: string,
+ pattern: RegExp|string,
+ replacement: Function|string
+ ): string;
+
+ /**
+ * @see _.replace
+ */
+ replace(
+ pattern?: RegExp|string,
+ replacement?: Function|string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.replace
+ */
+ replace(
+ pattern?: RegExp|string,
+ replacement?: Function|string
+ ): string;
+
+ /**
+ * @see _.replace
+ */
+ replace(
+ replacement?: Function|string
+ ): string;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.replace
+ */
+ replace(
+ pattern?: RegExp|string,
+ replacement?: Function|string
+ ): string;
+
+ /**
+ * @see _.replace
+ */
+ replace(
+ replacement?: Function|string
+ ): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.replace
+ */
+ replace(
+ pattern?: RegExp|string,
+ replacement?: Function|string
+ ): LoDashExplicitWrapper<string>;
+
+ /**
+ * @see _.replace
+ */
+ replace(
+ replacement?: Function|string
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.replace
+ */
+ replace(
+ pattern?: RegExp|string,
+ replacement?: Function|string
+ ): LoDashExplicitWrapper<string>;
+
+ /**
+ * @see _.replace
+ */
+ replace(
+ replacement?: Function|string
+ ): LoDashExplicitWrapper<string>;
+ }
+
+ //_.snakeCase
+ interface LoDashStatic {
+ /**
+ * Converts string to snake case.
+ *
+ * @param string The string to convert.
+ * @return Returns the snake cased string.
+ */
+ snakeCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.snakeCase
+ */
+ snakeCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.snakeCase
+ */
+ snakeCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.split
+ interface LoDashStatic {
+ /**
+ * Splits string by separator.
+ *
+ * Note: This method is based on String#split.
+ *
+ * @param string
+ * @param separator
+ * @param limit
+ * @return Returns the new array of string segments.
+ */
+ split(
+ string: string,
+ separator?: RegExp|string,
+ limit?: number
+ ): string[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.split
+ */
+ split(
+ separator?: RegExp|string,
+ limit?: number
+ ): LoDashImplicitArrayWrapper<string>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.split
+ */
+ split(
+ separator?: RegExp|string,
+ limit?: number
+ ): LoDashExplicitArrayWrapper<string>;
+ }
+
+ //_.startCase
+ interface LoDashStatic {
+ /**
+ * Converts string to start case.
+ *
+ * @param string The string to convert.
+ * @return Returns the start cased string.
+ */
+ startCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.startCase
+ */
+ startCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.startCase
+ */
+ startCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.startsWith
+ interface LoDashStatic {
+ /**
+ * Checks if string starts with the given target string.
+ *
+ * @param string The string to search.
+ * @param target The string to search for.
+ * @param position The position to search from.
+ * @return Returns true if string starts with target, else false.
+ */
+ startsWith(
+ string?: string,
+ target?: string,
+ position?: number
+ ): boolean;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.startsWith
+ */
+ startsWith(
+ target?: string,
+ position?: number
+ ): boolean;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.startsWith
+ */
+ startsWith(
+ target?: string,
+ position?: number
+ ): LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.template
+ interface TemplateOptions extends TemplateSettings {
+ /**
+ * The sourceURL of the template's compiled source.
+ */
+ sourceURL?: string;
+ }
+
+ interface TemplateExecutor {
+ (data?: Object): string;
+ source: string;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Creates a compiled template function that can interpolate data properties in "interpolate" delimiters,
+ * HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate"
+ * delimiters. Data properties may be accessed as free variables in the template. If a setting object is
+ * provided it takes precedence over _.templateSettings values.
+ *
+ * Note: In the development build _.template utilizes
+ * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) for easier
+ * debugging.
+ *
+ * For more information on precompiling templates see
+ * [lodash's custom builds documentation](https://lodash.com/custom-builds).
+ *
+ * For more information on Chrome extension sandboxes see
+ * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
+ *
+ * @param string The template string.
+ * @param options The options object.
+ * @param options.escape The HTML "escape" delimiter.
+ * @param options.evaluate The "evaluate" delimiter.
+ * @param options.imports An object to import into the template as free variables.
+ * @param options.interpolate The "interpolate" delimiter.
+ * @param options.sourceURL The sourceURL of the template's compiled source.
+ * @param options.variable The data object variable name.
+ * @return Returns the compiled template function.
+ */
+ template(
+ string: string,
+ options?: TemplateOptions
+ ): TemplateExecutor;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.template
+ */
+ template(options?: TemplateOptions): TemplateExecutor;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.template
+ */
+ template(options?: TemplateOptions): LoDashExplicitObjectWrapper<TemplateExecutor>;
+ }
+
+ //_.toLower
+ interface LoDashStatic {
+ /**
+ * Converts `string`, as a whole, to lower case.
+ *
+ * @param string The string to convert.
+ * @return Returns the lower cased string.
+ */
+ toLower(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.toLower
+ */
+ toLower(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.toLower
+ */
+ toLower(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.toUpper
+ interface LoDashStatic {
+ /**
+ * Converts `string`, as a whole, to upper case.
+ *
+ * @param string The string to convert.
+ * @return Returns the upper cased string.
+ */
+ toUpper(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.toUpper
+ */
+ toUpper(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.toUpper
+ */
+ toUpper(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.trim
+ interface LoDashStatic {
+ /**
+ * Removes leading and trailing whitespace or specified characters from string.
+ *
+ * @param string The string to trim.
+ * @param chars The characters to trim.
+ * @return Returns the trimmed string.
+ */
+ trim(
+ string?: string,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.trim
+ */
+ trim(chars?: string): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.trim
+ */
+ trim(chars?: string): LoDashExplicitWrapper<string>;
+ }
+
+ //_.trimEnd
+ interface LoDashStatic {
+ /**
+ * Removes trailing whitespace or specified characters from string.
+ *
+ * @param string The string to trim.
+ * @param chars The characters to trim.
+ * @return Returns the trimmed string.
+ */
+ trimEnd(
+ string?: string,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.trimEnd
+ */
+ trimEnd(chars?: string): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.trimEnd
+ */
+ trimEnd(chars?: string): LoDashExplicitWrapper<string>;
+ }
+
+ //_.trimStart
+ interface LoDashStatic {
+ /**
+ * Removes leading whitespace or specified characters from string.
+ *
+ * @param string The string to trim.
+ * @param chars The characters to trim.
+ * @return Returns the trimmed string.
+ */
+ trimStart(
+ string?: string,
+ chars?: string
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.trimStart
+ */
+ trimStart(chars?: string): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.trimStart
+ */
+ trimStart(chars?: string): LoDashExplicitWrapper<string>;
+ }
+
+ //_.truncate
+ interface TruncateOptions {
+ /** The maximum string length. */
+ length?: number;
+ /** The string to indicate text is omitted. */
+ omission?: string;
+ /** The separator pattern to truncate to. */
+ separator?: string|RegExp;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
+ * string are replaced with the omission string which defaults to "…".
+ *
+ * @param string The string to truncate.
+ * @param options The options object or maximum string length.
+ * @return Returns the truncated string.
+ */
+ truncate(
+ string?: string,
+ options?: TruncateOptions
+ ): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.truncate
+ */
+ truncate(options?: TruncateOptions): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.truncate
+ */
+ truncate(options?: TruncateOptions): LoDashExplicitWrapper<string>;
+ }
+
+ //_.unescape
+ interface LoDashStatic {
+ /**
+ * The inverse of _.escape; this method converts the HTML entities &amp;, &lt;, &gt;, &quot;, &#39;, and &#96;
+ * in string to their corresponding characters.
+ *
+ * Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library
+ * like he.
+ *
+ * @param string The string to unescape.
+ * @return Returns the unescaped string.
+ */
+ unescape(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.unescape
+ */
+ unescape(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.unescape
+ */
+ unescape(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.upperCase
+ interface LoDashStatic {
+ /**
+ * Converts `string`, as space separated words, to upper case.
+ *
+ * @param string The string to convert.
+ * @return Returns the upper cased string.
+ */
+ upperCase(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.upperCase
+ */
+ upperCase(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.upperCase
+ */
+ upperCase(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.upperFirst
+ interface LoDashStatic {
+ /**
+ * Converts the first character of `string` to upper case.
+ *
+ * @param string The string to convert.
+ * @return Returns the converted string.
+ */
+ upperFirst(string?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.upperFirst
+ */
+ upperFirst(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.upperFirst
+ */
+ upperFirst(): LoDashExplicitWrapper<string>;
+ }
+
+ //_.words
+ interface LoDashStatic {
+ /**
+ * Splits `string` into an array of its words.
+ *
+ * @param string The string to inspect.
+ * @param pattern The pattern to match words.
+ * @return Returns the words of `string`.
+ */
+ words(
+ string?: string,
+ pattern?: string|RegExp
+ ): string[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.words
+ */
+ words(pattern?: string|RegExp): string[];
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.words
+ */
+ words(pattern?: string|RegExp): LoDashExplicitArrayWrapper<string>;
+ }
+
+ /***********
+ * Utility *
+ ***********/
+
+ //_.attempt
+ interface LoDashStatic {
+ /**
+ * Attempts to invoke func, returning either the result or the caught error object. Any additional arguments
+ * are provided to func when it’s invoked.
+ *
+ * @param func The function to attempt.
+ * @return Returns the func result or error object.
+ */
+ attempt<TResult>(func: (...args: any[]) => TResult, ...args: any[]): TResult|Error;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.attempt
+ */
+ attempt<TResult>(...args: any[]): TResult|Error;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.attempt
+ */
+ attempt<TResult>(...args: any[]): LoDashExplicitObjectWrapper<TResult|Error>;
+ }
+
+ //_.constant
+ interface LoDashStatic {
+ /**
+ * Creates a function that returns value.
+ *
+ * @param value The value to return from the new function.
+ * @return Returns the new function.
+ */
+ constant<T>(value: T): () => T;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.constant
+ */
+ constant<TResult>(): LoDashImplicitObjectWrapper<() => TResult>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.constant
+ */
+ constant<TResult>(): LoDashExplicitObjectWrapper<() => TResult>;
+ }
+
+ //_.defaultTo
+ interface LoDashStatic {
+ /**
+ * Checks `value` to determine whether a default value should be returned in
+ * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
+ * or `undefined`.
+ *
+ * @param value The value to check.
+ * @param defaultValue The default value.
+ * @returns Returns the resolved value.
+ */
+ defaultTo<T>(value: T | null | undefined, defaultValue: T): T;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.defaultTo
+ */
+ defaultTo<TResult>(value: TResult): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.defaultTo
+ */
+ defaultTo<TResult>(value: TResult): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.identity
+ interface LoDashStatic {
+ /**
+ * This method returns the first argument provided to it.
+ *
+ * @param value Any value.
+ * @return Returns value.
+ */
+ identity<T>(value: T): T;
+
+ /**
+ * @see _.identity
+ */
+ identity(): undefined;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.identity
+ */
+ identity(): T;
+ }
+
+ interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.identity
+ */
+ identity(): TArray;
+ }
+
+ interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.identity
+ */
+ identity(): TObject;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.identity
+ */
+ identity(): LoDashExplicitWrapper<T>;
+ }
+
+ interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> {
+ /**
+ * @see _.identity
+ */
+ identity(): TWrapper;
+ }
+
+ interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
+ /**
+ * @see _.identity
+ */
+ identity(): TWrapper;
+ }
+
+ //_.iteratee
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes `func` with the arguments of the created
+ * function. If `func` is a property name the created callback returns the
+ * property value for a given element. If `func` is an object the created
+ * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
+ *
+ * @static
+ * @memberOf _
+ * @category Util
+ * @param {*} [func=_.identity] The value to convert to a callback.
+ * @returns {Function} Returns the callback.
+ * @example
+ *
+ * var users = [
+ * { 'user': 'barney', 'age': 36 },
+ * { 'user': 'fred', 'age': 40 }
+ * ];
+ *
+ * // create custom iteratee shorthands
+ * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
+ * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
+ * return !p ? callback(func) : function(object) {
+ * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
+ * };
+ * });
+ *
+ * _.filter(users, 'age > 36');
+ * // => [{ 'user': 'fred', 'age': 40 }]
+ */
+ iteratee<TResult>(
+ func: Function
+ ): (...args: any[]) => TResult;
+
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(
+ func: string
+ ): (object: any) => TResult;
+
+ /**
+ * @see _.iteratee
+ */
+ iteratee(
+ func: Object
+ ): (object: any) => boolean;
+
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(): (value: TResult) => TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(): LoDashImplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.iteratee
+ */
+ iteratee(): LoDashImplicitObjectWrapper<(object: any) => boolean>;
+
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(): LoDashImplicitObjectWrapper<(...args: any[]) => TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(): LoDashExplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.iteratee
+ */
+ iteratee(): LoDashExplicitObjectWrapper<(object: any) => boolean>;
+
+ /**
+ * @see _.iteratee
+ */
+ iteratee<TResult>(): LoDashExplicitObjectWrapper<(...args: any[]) => TResult>;
+ }
+
+ //_.matches
+ interface LoDashStatic {
+ /**
+ * Creates a function that performs a deep comparison between a given object and source, returning true if the
+ * given object has equivalent property values, else false.
+ *
+ * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
+ * strings. Objects are compared by their own, not inherited, enumerable properties. For comparing a single own
+ * or inherited property value see _.matchesProperty.
+ *
+ * @param source The object of property values to match.
+ * @return Returns the new function.
+ */
+ matches<T>(source: T): (value: any) => boolean;
+
+ /**
+ * @see _.matches
+ */
+ matches<T, V>(source: T): (value: V) => boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.matches
+ */
+ matches<V>(): LoDashImplicitObjectWrapper<(value: V) => boolean>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.matches
+ */
+ matches<V>(): LoDashExplicitObjectWrapper<(value: V) => boolean>;
+ }
+
+ //_.matchesProperty
+ interface LoDashStatic {
+ /**
+ * Creates a function that compares the property value of path on a given object to value.
+ *
+ * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
+ * strings. Objects are compared by their own, not inherited, enumerable properties.
+ *
+ * @param path The path of the property to get.
+ * @param srcValue The value to match.
+ * @return Returns the new function.
+ */
+ matchesProperty<T>(
+ path: Many<StringRepresentable>,
+ srcValue: T
+ ): (value: any) => boolean;
+
+ /**
+ * @see _.matchesProperty
+ */
+ matchesProperty<T, V>(
+ path: Many<StringRepresentable>,
+ srcValue: T
+ ): (value: V) => boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.matchesProperty
+ */
+ matchesProperty<SrcValue>(
+ srcValue: SrcValue
+ ): LoDashImplicitObjectWrapper<(value: any) => boolean>;
+
+ /**
+ * @see _.matchesProperty
+ */
+ matchesProperty<SrcValue, Value>(
+ srcValue: SrcValue
+ ): LoDashImplicitObjectWrapper<(value: Value) => boolean>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.matchesProperty
+ */
+ matchesProperty<SrcValue>(
+ srcValue: SrcValue
+ ): LoDashExplicitObjectWrapper<(value: any) => boolean>;
+
+ /**
+ * @see _.matchesProperty
+ */
+ matchesProperty<SrcValue, Value>(
+ srcValue: SrcValue
+ ): LoDashExplicitObjectWrapper<(value: Value) => boolean>;
+ }
+
+ //_.method
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes the method at path on a given object. Any additional arguments are provided
+ * to the invoked method.
+ *
+ * @param path The path of the method to invoke.
+ * @param args The arguments to invoke the method with.
+ * @return Returns the new function.
+ */
+ method<TObject, TResult>(
+ path: string|StringRepresentable[],
+ ...args: any[]
+ ): (object: TObject) => TResult;
+
+ /**
+ * @see _.method
+ */
+ method<TResult>(
+ path: string|StringRepresentable[],
+ ...args: any[]
+ ): (object: any) => TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.method
+ */
+ method<TObject, TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>;
+
+ /**
+ * @see _.method
+ */
+ method<TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.method
+ */
+ method<TObject, TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>;
+
+ /**
+ * @see _.method
+ */
+ method<TResult>(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.method
+ */
+ method<TObject, TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>;
+
+ /**
+ * @see _.method
+ */
+ method<TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.method
+ */
+ method<TObject, TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>;
+
+ /**
+ * @see _.method
+ */
+ method<TResult>(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>;
+ }
+
+ //_.methodOf
+ interface LoDashStatic {
+ /**
+ * The opposite of _.method; this method creates a function that invokes the method at a given path on object.
+ * Any additional arguments are provided to the invoked method.
+ *
+ * @param object The object to query.
+ * @param args The arguments to invoke the method with.
+ * @return Returns the new function.
+ */
+ methodOf<TObject extends {}, TResult>(
+ object: TObject,
+ ...args: any[]
+ ): (path: Many<StringRepresentable>) => TResult;
+
+ /**
+ * @see _.methodOf
+ */
+ methodOf<TResult>(
+ object: {},
+ ...args: any[]
+ ): (path: Many<StringRepresentable>) => TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.methodOf
+ */
+ methodOf<TResult>(
+ ...args: any[]
+ ): LoDashImplicitObjectWrapper<(path: Many<StringRepresentable>) => TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.methodOf
+ */
+ methodOf<TResult>(
+ ...args: any[]
+ ): LoDashExplicitObjectWrapper<(path: Many<StringRepresentable>) => TResult>;
+ }
+
+ //_.mixin
+ interface MixinOptions {
+ chain?: boolean;
+ }
+
+ interface LoDashStatic {
+ /**
+ * Adds all own enumerable function properties of a source object to the destination object. If object is a
+ * function then methods are added to its prototype as well.
+ *
+ * Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying
+ * the original.
+ *
+ * @param object The destination object.
+ * @param source The object of functions to add.
+ * @param options The options object.
+ * @param options.chain Specify whether the functions added are chainable.
+ * @return Returns object.
+ */
+ mixin<TResult, TObject>(
+ object: TObject,
+ source: Dictionary<Function>,
+ options?: MixinOptions
+ ): TResult;
+
+ /**
+ * @see _.mixin
+ */
+ mixin<TResult>(
+ source: Dictionary<Function>,
+ options?: MixinOptions
+ ): TResult;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.mixin
+ */
+ mixin<TResult>(
+ source: Dictionary<Function>,
+ options?: MixinOptions
+ ): LoDashImplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.mixin
+ */
+ mixin<TResult>(
+ options?: MixinOptions
+ ): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.mixin
+ */
+ mixin<TResult>(
+ source: Dictionary<Function>,
+ options?: MixinOptions
+ ): LoDashExplicitObjectWrapper<TResult>;
+
+ /**
+ * @see _.mixin
+ */
+ mixin<TResult>(
+ options?: MixinOptions
+ ): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.noConflict
+ interface LoDashStatic {
+ /**
+ * Reverts the _ variable to its previous value and returns a reference to the lodash function.
+ *
+ * @return Returns the lodash function.
+ */
+ noConflict(): typeof _;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.noConflict
+ */
+ noConflict(): typeof _;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.noConflict
+ */
+ noConflict(): LoDashExplicitObjectWrapper<typeof _>;
+ }
+
+ //_.noop
+ interface LoDashStatic {
+ /**
+ * A no-operation function that returns undefined regardless of the arguments it receives.
+ *
+ * @return undefined
+ */
+ noop(...args: any[]): void;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.noop
+ */
+ noop(...args: any[]): void;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.noop
+ */
+ noop(...args: any[]): _.LoDashExplicitWrapper<void>;
+ }
+
+ //_.nthArg
+ interface LoDashStatic {
+ /**
+ * Creates a function that returns its nth argument.
+ *
+ * @param n The index of the argument to return.
+ * @return Returns the new function.
+ */
+ nthArg<TResult extends Function>(n?: number): TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.nthArg
+ */
+ nthArg<TResult extends Function>(): LoDashImplicitObjectWrapper<TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.nthArg
+ */
+ nthArg<TResult extends Function>(): LoDashExplicitObjectWrapper<TResult>;
+ }
+
+ //_.over
+ interface LoDashStatic {
+ /**
+ * Creates a function that invokes iteratees with the arguments provided to the created function and returns
+ * their results.
+ *
+ * @param iteratees The iteratees to invoke.
+ * @return Returns the new function.
+ */
+ over<TResult>(...iteratees: Array<Many<Function>>): (...args: any[]) => TResult[];
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.over
+ */
+ over<TResult>(...iteratees: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.over
+ */
+ over<TResult>(...iteratees: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.over
+ */
+ over<TResult>(...iteratees: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.over
+ */
+ over<TResult>(...iteratees: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>;
+ }
+
+ //_.overEvery
+ interface LoDashStatic {
+ /**
+ * Creates a function that checks if all of the predicates return truthy when invoked with the arguments
+ * provided to the created function.
+ *
+ * @param predicates The predicates to check.
+ * @return Returns the new function.
+ */
+ overEvery(...predicates: Array<Many<Function>>): (...args: any[]) => boolean;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.overEvery
+ */
+ overEvery(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.overEvery
+ */
+ overEvery(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.overEvery
+ */
+ overEvery(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.overEvery
+ */
+ overEvery(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ //_.overSome
+ interface LoDashStatic {
+ /**
+ * Creates a function that checks if any of the predicates return truthy when invoked with the arguments
+ * provided to the created function.
+ *
+ * @param predicates The predicates to check.
+ * @return Returns the new function.
+ */
+ overSome(...predicates: Array<Many<Function>>): (...args: any[]) => boolean;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.overSome
+ */
+ overSome(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.overSome
+ */
+ overSome(...predicates: Array<Many<Function>>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.overSome
+ */
+ overSome(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.overSome
+ */
+ overSome(...predicates: Array<Many<Function>>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>;
+ }
+
+ //_.property
+ interface LoDashStatic {
+ /**
+ * Creates a function that returns the property value at path on a given object.
+ *
+ * @param path The path of the property to get.
+ * @return Returns the new function.
+ */
+ property<TObj, TResult>(path: Many<StringRepresentable>): (obj: TObj) => TResult;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.property
+ */
+ property<TObj, TResult>(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>;
+ }
+
+ interface LoDashImplicitArrayWrapper<T> {
+ /**
+ * @see _.property
+ */
+ property<TObj, TResult>(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.property
+ */
+ property<TObj, TResult>(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>;
+ }
+
+ interface LoDashExplicitArrayWrapper<T> {
+ /**
+ * @see _.property
+ */
+ property<TObj, TResult>(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>;
+ }
+
+ //_.propertyOf
+ interface LoDashStatic {
+ /**
+ * The opposite of _.property; this method creates a function that returns the property value at a given path
+ * on object.
+ *
+ * @param object The object to query.
+ * @return Returns the new function.
+ */
+ propertyOf<T extends {}>(object: T): (path: Many<string>) => any;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.propertyOf
+ */
+ propertyOf(): LoDashImplicitObjectWrapper<(path: Many<string>) => any>;
+ }
+
+ interface LoDashExplicitObjectWrapper<T> {
+ /**
+ * @see _.propertyOf
+ */
+ propertyOf(): LoDashExplicitObjectWrapper<(path: Many<string>) => any>;
+ }
+
+ //_.range
+ interface LoDashStatic {
+ /**
+ * Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end.
+ * If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length
+ * range is created unless a negative step is specified.
+ *
+ * @param start The start of the range.
+ * @param end The end of the range.
+ * @param step The value to increment or decrement by.
+ * @return Returns a new range array.
+ */
+ range(
+ start: number,
+ end: number,
+ step?: number
+ ): number[];
+
+ /**
+ * @see _.range
+ */
+ range(
+ end: number,
+ step?: number
+ ): number[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.range
+ */
+ range(
+ end?: number,
+ step?: number
+ ): LoDashImplicitArrayWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.range
+ */
+ range(
+ end?: number,
+ step?: number
+ ): LoDashExplicitArrayWrapper<number>;
+ }
+
+ //_.rangeRight
+ interface LoDashStatic {
+ /**
+ * This method is like `_.range` except that it populates values in
+ * descending order.
+ *
+ * @static
+ * @memberOf _
+ * @category Util
+ * @param {number} [start=0] The start of the range.
+ * @param {number} end The end of the range.
+ * @param {number} [step=1] The value to increment or decrement by.
+ * @returns {Array} Returns the new array of numbers.
+ * @example
+ *
+ * _.rangeRight(4);
+ * // => [3, 2, 1, 0]
+ *
+ * _.rangeRight(-4);
+ * // => [-3, -2, -1, 0]
+ *
+ * _.rangeRight(1, 5);
+ * // => [4, 3, 2, 1]
+ *
+ * _.rangeRight(0, 20, 5);
+ * // => [15, 10, 5, 0]
+ *
+ * _.rangeRight(0, -4, -1);
+ * // => [-3, -2, -1, 0]
+ *
+ * _.rangeRight(1, 4, 0);
+ * // => [1, 1, 1]
+ *
+ * _.rangeRight(0);
+ * // => []
+ */
+ rangeRight(
+ start: number,
+ end: number,
+ step?: number
+ ): number[];
+
+ /**
+ * @see _.rangeRight
+ */
+ rangeRight(
+ end: number,
+ step?: number
+ ): number[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.rangeRight
+ */
+ rangeRight(
+ end?: number,
+ step?: number
+ ): LoDashImplicitArrayWrapper<number>;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.rangeRight
+ */
+ rangeRight(
+ end?: number,
+ step?: number
+ ): LoDashExplicitArrayWrapper<number>;
+ }
+
+ //_.runInContext
+ interface LoDashStatic {
+ /**
+ * Create a new pristine lodash function using the given context object.
+ *
+ * @param context The context object.
+ * @return Returns a new lodash function.
+ */
+ runInContext(context?: Object): typeof _;
+ }
+
+ interface LoDashImplicitObjectWrapper<T> {
+ /**
+ * @see _.runInContext
+ */
+ runInContext(): typeof _;
+ }
+
+ // _.stubArray
+ interface LoDashStatic {
+ /**
+ * This method returns a new empty array.
+ *
+ * @returns Returns the new empty array.
+ */
+ stubArray(): any[];
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubArray
+ */
+ stubArray(): any[];
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubArray
+ */
+ stubArray(): _.LoDashExplicitArrayWrapper<any>;
+ }
+
+ // _.stubFalse
+ interface LoDashStatic {
+ /**
+ * This method returns `false`.
+ *
+ * @returns Returns `false`.
+ */
+ stubFalse(): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubFalse
+ */
+ stubFalse(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubFalse
+ */
+ stubFalse(): _.LoDashExplicitWrapper<boolean>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * This method returns a new empty object.
+ *
+ * @returns Returns the new empty object.
+ */
+ stubObject(): Object;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubObject
+ */
+ stubObject(): Object;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubObject
+ */
+ stubObject(): _.LoDashExplicitObjectWrapper<Object>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * This method returns an empty string.
+ *
+ * @returns Returns the empty string.
+ */
+ stubString(): string;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubString
+ */
+ stubString(): string;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubString
+ */
+ stubString(): _.LoDashExplicitWrapper<string>;
+ }
+
+ interface LoDashStatic {
+ /**
+ * This method returns `true`.
+ *
+ * @returns Returns `true`.
+ */
+ stubTrue(): boolean;
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubTrue
+ */
+ stubTrue(): boolean;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.stubTrue
+ */
+ stubTrue(): _.LoDashExplicitWrapper<boolean>;
+ }
+
+ //_.times
+ interface LoDashStatic {
+ /**
+ * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee
+ * is invoked with one argument; (index).
+ *
+ * @param n The number of times to invoke iteratee.
+ * @param iteratee The function invoked per iteration.
+ * @return Returns the array of results.
+ */
+ times<TResult>(
+ n: number,
+ iteratee: (num: number) => TResult
+ ): TResult[];
+
+ /**
+ * @see _.times
+ */
+ times(n: number): number[];
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.times
+ */
+ times<TResult>(
+ iteratee: (num: number) => TResult
+ ): TResult[];
+
+ /**
+ * @see _.times
+ */
+ times(): number[];
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.times
+ */
+ times<TResult>(
+ iteratee: (num: number) => TResult
+ ): LoDashExplicitArrayWrapper<TResult>;
+
+ /**
+ * @see _.times
+ */
+ times(): LoDashExplicitArrayWrapper<number>;
+ }
+
+ //_.toPath
+ interface LoDashStatic {
+ /**
+ * Converts `value` to a property path array.
+ *
+ * @static
+ * @memberOf _
+ * @category Util
+ * @param {*} value The value to convert.
+ * @returns {Array} Returns the new property path array.
+ * @example
+ *
+ * _.toPath('a.b.c');
+ * // => ['a', 'b', 'c']
+ *
+ * _.toPath('a[0].b.c');
+ * // => ['a', '0', 'b', 'c']
+ *
+ * var path = ['a', 'b', 'c'],
+ * newPath = _.toPath(path);
+ *
+ * console.log(newPath);
+ * // => ['a', 'b', 'c']
+ *
+ * console.log(path === newPath);
+ * // => false
+ */
+ toPath(value: any): string[];
+ }
+
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toPath
+ */
+ toPath(): LoDashImplicitWrapper<string[]>;
+ }
+
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
+ /**
+ * @see _.toPath
+ */
+ toPath(): LoDashExplicitWrapper<string[]>;
+ }
+
+ //_.uniqueId
+ interface LoDashStatic {
+ /**
+ * Generates a unique ID. If prefix is provided the ID is appended to it.
+ *
+ * @param prefix The value to prefix the ID with.
+ * @return Returns the unique ID.
+ */
+ uniqueId(prefix?: string): string;
+ }
+
+ interface LoDashImplicitWrapper<T> {
+ /**
+ * @see _.uniqueId
+ */
+ uniqueId(): string;
+ }
+
+ interface LoDashExplicitWrapper<T> {
+ /**
+ * @see _.uniqueId
+ */
+ uniqueId(): LoDashExplicitWrapper<string>;
+ }
+
+ type ListIterator<T, TResult> = (value: T, index: number, collection: List<T>) => TResult;
+
+ type DictionaryIterator<T, TResult> = (value: T, key: string, collection: Dictionary<T>) => TResult;
+
+ type NumericDictionaryIterator<T, TResult> = (value: T, key: number, collection: Dictionary<T>) => TResult;
+
+ type ObjectIterator<T, TResult> = (element: T, key: string, collection: any) => TResult;
+
+ type StringIterator<TResult> = (char: string, index: number, string: string) => TResult;
+
+ type MemoVoidIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => void;
+
+ type MemoIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => TResult;
+
+ type MemoVoidArrayIterator<T, TResult> = (acc: TResult, curr: T, index: number, arr: T[]) => void;
+ type MemoVoidDictionaryIterator<T, TResult> = (acc: TResult, curr: T, key: string, dict: Dictionary<T>) => void;
+
+ /** Common interface between Arrays and jQuery objects */
+ type List<T> = ArrayLike<T>;
+
+ interface Dictionary<T> {
+ [index: string]: T;
+ }
+
+ interface NumericDictionary<T> {
+ [index: number]: T;
+ }
+
+ interface StringRepresentable {
+ toString(): string;
+ }
+
+ interface Cancelable {
+ cancel(): void;
+ flush(): void;
+ }
+}
+
+// Backward compatibility with --target es5
+declare global {
+ interface Set<T> { }
+ interface Map<K, V> { }
+ interface WeakSet<T> { }
+ interface WeakMap<K extends object, V> { }
+}
diff --git a/node_modules/@types/lodash/indexOf.d.ts b/node_modules/@types/lodash/indexOf.d.ts
new file mode 100644
index 000000000..50b8f702c
--- /dev/null
+++ b/node_modules/@types/lodash/indexOf.d.ts
@@ -0,0 +1,2 @@
+import { indexOf } from "./index";
+export = indexOf;
diff --git a/node_modules/@types/lodash/indexOf/index.d.ts b/node_modules/@types/lodash/indexOf/index.d.ts
deleted file mode 100644
index 7e7c7ce10..000000000
--- a/node_modules/@types/lodash/indexOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { indexOf } from "../index";
-export = indexOf;
diff --git a/node_modules/@types/lodash/initial.d.ts b/node_modules/@types/lodash/initial.d.ts
new file mode 100644
index 000000000..3ce64ebc0
--- /dev/null
+++ b/node_modules/@types/lodash/initial.d.ts
@@ -0,0 +1,2 @@
+import { initial } from "./index";
+export = initial;
diff --git a/node_modules/@types/lodash/initial/index.d.ts b/node_modules/@types/lodash/initial/index.d.ts
deleted file mode 100644
index 3091985b4..000000000
--- a/node_modules/@types/lodash/initial/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { initial } from "../index";
-export = initial;
diff --git a/node_modules/@types/lodash/intersection.d.ts b/node_modules/@types/lodash/intersection.d.ts
new file mode 100644
index 000000000..1fbe4e596
--- /dev/null
+++ b/node_modules/@types/lodash/intersection.d.ts
@@ -0,0 +1,2 @@
+import { intersection } from "./index";
+export = intersection;
diff --git a/node_modules/@types/lodash/intersection/index.d.ts b/node_modules/@types/lodash/intersection/index.d.ts
deleted file mode 100644
index 63ff5cf7f..000000000
--- a/node_modules/@types/lodash/intersection/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { intersection } from "../index";
-export = intersection;
diff --git a/node_modules/@types/lodash/intersectionBy.d.ts b/node_modules/@types/lodash/intersectionBy.d.ts
new file mode 100644
index 000000000..b4885da5e
--- /dev/null
+++ b/node_modules/@types/lodash/intersectionBy.d.ts
@@ -0,0 +1,2 @@
+import { intersectionBy } from "./index";
+export = intersectionBy;
diff --git a/node_modules/@types/lodash/intersectionBy/index.d.ts b/node_modules/@types/lodash/intersectionBy/index.d.ts
deleted file mode 100644
index eca671c18..000000000
--- a/node_modules/@types/lodash/intersectionBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { intersectionBy } from "../index";
-export = intersectionBy;
diff --git a/node_modules/@types/lodash/intersectionWith.d.ts b/node_modules/@types/lodash/intersectionWith.d.ts
new file mode 100644
index 000000000..bacccd045
--- /dev/null
+++ b/node_modules/@types/lodash/intersectionWith.d.ts
@@ -0,0 +1,2 @@
+import { intersectionWith } from "./index";
+export = intersectionWith;
diff --git a/node_modules/@types/lodash/intersectionWith/index.d.ts b/node_modules/@types/lodash/intersectionWith/index.d.ts
deleted file mode 100644
index 5a754708f..000000000
--- a/node_modules/@types/lodash/intersectionWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { intersectionWith } from "../index";
-export = intersectionWith;
diff --git a/node_modules/@types/lodash/invert.d.ts b/node_modules/@types/lodash/invert.d.ts
new file mode 100644
index 000000000..2287ea1f9
--- /dev/null
+++ b/node_modules/@types/lodash/invert.d.ts
@@ -0,0 +1,2 @@
+import { invert } from "./index";
+export = invert;
diff --git a/node_modules/@types/lodash/invert/index.d.ts b/node_modules/@types/lodash/invert/index.d.ts
deleted file mode 100644
index bc832aa3f..000000000
--- a/node_modules/@types/lodash/invert/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { invert } from "../index";
-export = invert;
diff --git a/node_modules/@types/lodash/invertBy.d.ts b/node_modules/@types/lodash/invertBy.d.ts
new file mode 100644
index 000000000..5951600e2
--- /dev/null
+++ b/node_modules/@types/lodash/invertBy.d.ts
@@ -0,0 +1,2 @@
+import { invertBy } from "./index";
+export = invertBy;
diff --git a/node_modules/@types/lodash/invertBy/index.d.ts b/node_modules/@types/lodash/invertBy/index.d.ts
deleted file mode 100644
index 8dece43a6..000000000
--- a/node_modules/@types/lodash/invertBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { invertBy } from "../index";
-export = invertBy;
diff --git a/node_modules/@types/lodash/invoke.d.ts b/node_modules/@types/lodash/invoke.d.ts
new file mode 100644
index 000000000..eea6b3888
--- /dev/null
+++ b/node_modules/@types/lodash/invoke.d.ts
@@ -0,0 +1,2 @@
+import { invoke } from "./index";
+export = invoke;
diff --git a/node_modules/@types/lodash/invoke/index.d.ts b/node_modules/@types/lodash/invoke/index.d.ts
deleted file mode 100644
index 6634e4c60..000000000
--- a/node_modules/@types/lodash/invoke/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { invoke } from "../index";
-export = invoke;
diff --git a/node_modules/@types/lodash/invokeMap.d.ts b/node_modules/@types/lodash/invokeMap.d.ts
new file mode 100644
index 000000000..814cf05fd
--- /dev/null
+++ b/node_modules/@types/lodash/invokeMap.d.ts
@@ -0,0 +1,2 @@
+import { invokeMap } from "./index";
+export = invokeMap;
diff --git a/node_modules/@types/lodash/invokeMap/index.d.ts b/node_modules/@types/lodash/invokeMap/index.d.ts
deleted file mode 100644
index aaa0621ac..000000000
--- a/node_modules/@types/lodash/invokeMap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { invokeMap } from "../index";
-export = invokeMap;
diff --git a/node_modules/@types/lodash/isArguments.d.ts b/node_modules/@types/lodash/isArguments.d.ts
new file mode 100644
index 000000000..5b2257231
--- /dev/null
+++ b/node_modules/@types/lodash/isArguments.d.ts
@@ -0,0 +1,2 @@
+import { isArguments } from "./index";
+export = isArguments;
diff --git a/node_modules/@types/lodash/isArguments/index.d.ts b/node_modules/@types/lodash/isArguments/index.d.ts
deleted file mode 100644
index 84a01fc2a..000000000
--- a/node_modules/@types/lodash/isArguments/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isArguments } from "../index";
-export = isArguments;
diff --git a/node_modules/@types/lodash/isArray.d.ts b/node_modules/@types/lodash/isArray.d.ts
new file mode 100644
index 000000000..a35ab5a62
--- /dev/null
+++ b/node_modules/@types/lodash/isArray.d.ts
@@ -0,0 +1,2 @@
+import { isArray } from "./index";
+export = isArray;
diff --git a/node_modules/@types/lodash/isArray/index.d.ts b/node_modules/@types/lodash/isArray/index.d.ts
deleted file mode 100644
index 9612d7956..000000000
--- a/node_modules/@types/lodash/isArray/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isArray } from "../index";
-export = isArray;
diff --git a/node_modules/@types/lodash/isArrayBuffer.d.ts b/node_modules/@types/lodash/isArrayBuffer.d.ts
new file mode 100644
index 000000000..ec7c68ce2
--- /dev/null
+++ b/node_modules/@types/lodash/isArrayBuffer.d.ts
@@ -0,0 +1,2 @@
+import { isArrayBuffer } from "./index";
+export = isArrayBuffer;
diff --git a/node_modules/@types/lodash/isArrayBuffer/index.d.ts b/node_modules/@types/lodash/isArrayBuffer/index.d.ts
deleted file mode 100644
index 79f991c8f..000000000
--- a/node_modules/@types/lodash/isArrayBuffer/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isArrayBuffer } from "../index";
-export = isArrayBuffer;
diff --git a/node_modules/@types/lodash/isArrayLike.d.ts b/node_modules/@types/lodash/isArrayLike.d.ts
new file mode 100644
index 000000000..aa95c7700
--- /dev/null
+++ b/node_modules/@types/lodash/isArrayLike.d.ts
@@ -0,0 +1,2 @@
+import { isArrayLike } from "./index";
+export = isArrayLike;
diff --git a/node_modules/@types/lodash/isArrayLike/index.d.ts b/node_modules/@types/lodash/isArrayLike/index.d.ts
deleted file mode 100644
index 6ccd66165..000000000
--- a/node_modules/@types/lodash/isArrayLike/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isArrayLike } from "../index";
-export = isArrayLike;
diff --git a/node_modules/@types/lodash/isArrayLikeObject.d.ts b/node_modules/@types/lodash/isArrayLikeObject.d.ts
new file mode 100644
index 000000000..736c91db1
--- /dev/null
+++ b/node_modules/@types/lodash/isArrayLikeObject.d.ts
@@ -0,0 +1,2 @@
+import { isArrayLikeObject } from "./index";
+export = isArrayLikeObject;
diff --git a/node_modules/@types/lodash/isArrayLikeObject/index.d.ts b/node_modules/@types/lodash/isArrayLikeObject/index.d.ts
deleted file mode 100644
index 1eb84e7bd..000000000
--- a/node_modules/@types/lodash/isArrayLikeObject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isArrayLikeObject } from "../index";
-export = isArrayLikeObject;
diff --git a/node_modules/@types/lodash/isBoolean.d.ts b/node_modules/@types/lodash/isBoolean.d.ts
new file mode 100644
index 000000000..96c306d9c
--- /dev/null
+++ b/node_modules/@types/lodash/isBoolean.d.ts
@@ -0,0 +1,2 @@
+import { isBoolean } from "./index";
+export = isBoolean;
diff --git a/node_modules/@types/lodash/isBoolean/index.d.ts b/node_modules/@types/lodash/isBoolean/index.d.ts
deleted file mode 100644
index acbde5ba8..000000000
--- a/node_modules/@types/lodash/isBoolean/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isBoolean } from "../index";
-export = isBoolean;
diff --git a/node_modules/@types/lodash/isBuffer.d.ts b/node_modules/@types/lodash/isBuffer.d.ts
new file mode 100644
index 000000000..b22d78244
--- /dev/null
+++ b/node_modules/@types/lodash/isBuffer.d.ts
@@ -0,0 +1,2 @@
+import { isBuffer } from "./index";
+export = isBuffer;
diff --git a/node_modules/@types/lodash/isBuffer/index.d.ts b/node_modules/@types/lodash/isBuffer/index.d.ts
deleted file mode 100644
index 14609cada..000000000
--- a/node_modules/@types/lodash/isBuffer/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isBuffer } from "../index";
-export = isBuffer;
diff --git a/node_modules/@types/lodash/isDate.d.ts b/node_modules/@types/lodash/isDate.d.ts
new file mode 100644
index 000000000..1269a69d4
--- /dev/null
+++ b/node_modules/@types/lodash/isDate.d.ts
@@ -0,0 +1,2 @@
+import { isDate } from "./index";
+export = isDate;
diff --git a/node_modules/@types/lodash/isDate/index.d.ts b/node_modules/@types/lodash/isDate/index.d.ts
deleted file mode 100644
index 027bf9b21..000000000
--- a/node_modules/@types/lodash/isDate/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isDate } from "../index";
-export = isDate;
diff --git a/node_modules/@types/lodash/isElement.d.ts b/node_modules/@types/lodash/isElement.d.ts
new file mode 100644
index 000000000..e4510cd9c
--- /dev/null
+++ b/node_modules/@types/lodash/isElement.d.ts
@@ -0,0 +1,2 @@
+import { isElement } from "./index";
+export = isElement;
diff --git a/node_modules/@types/lodash/isElement/index.d.ts b/node_modules/@types/lodash/isElement/index.d.ts
deleted file mode 100644
index 07dd2fca1..000000000
--- a/node_modules/@types/lodash/isElement/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isElement } from "../index";
-export = isElement;
diff --git a/node_modules/@types/lodash/isEmpty.d.ts b/node_modules/@types/lodash/isEmpty.d.ts
new file mode 100644
index 000000000..9e71bfa96
--- /dev/null
+++ b/node_modules/@types/lodash/isEmpty.d.ts
@@ -0,0 +1,2 @@
+import { isEmpty } from "./index";
+export = isEmpty;
diff --git a/node_modules/@types/lodash/isEmpty/index.d.ts b/node_modules/@types/lodash/isEmpty/index.d.ts
deleted file mode 100644
index cd086a584..000000000
--- a/node_modules/@types/lodash/isEmpty/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isEmpty } from "../index";
-export = isEmpty;
diff --git a/node_modules/@types/lodash/isEqual.d.ts b/node_modules/@types/lodash/isEqual.d.ts
new file mode 100644
index 000000000..1e065fa83
--- /dev/null
+++ b/node_modules/@types/lodash/isEqual.d.ts
@@ -0,0 +1,2 @@
+import { isEqual } from "./index";
+export = isEqual;
diff --git a/node_modules/@types/lodash/isEqual/index.d.ts b/node_modules/@types/lodash/isEqual/index.d.ts
deleted file mode 100644
index 2ee18c4f9..000000000
--- a/node_modules/@types/lodash/isEqual/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isEqual } from "../index";
-export = isEqual;
diff --git a/node_modules/@types/lodash/isEqualWith.d.ts b/node_modules/@types/lodash/isEqualWith.d.ts
new file mode 100644
index 000000000..e14d005c4
--- /dev/null
+++ b/node_modules/@types/lodash/isEqualWith.d.ts
@@ -0,0 +1,2 @@
+import { isEqualWith } from "./index";
+export = isEqualWith;
diff --git a/node_modules/@types/lodash/isEqualWith/index.d.ts b/node_modules/@types/lodash/isEqualWith/index.d.ts
deleted file mode 100644
index c67aaf9e2..000000000
--- a/node_modules/@types/lodash/isEqualWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isEqualWith } from "../index";
-export = isEqualWith;
diff --git a/node_modules/@types/lodash/isError.d.ts b/node_modules/@types/lodash/isError.d.ts
new file mode 100644
index 000000000..d9d578577
--- /dev/null
+++ b/node_modules/@types/lodash/isError.d.ts
@@ -0,0 +1,2 @@
+import { isError } from "./index";
+export = isError;
diff --git a/node_modules/@types/lodash/isError/index.d.ts b/node_modules/@types/lodash/isError/index.d.ts
deleted file mode 100644
index 876fc0a0a..000000000
--- a/node_modules/@types/lodash/isError/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isError } from "../index";
-export = isError;
diff --git a/node_modules/@types/lodash/isFinite.d.ts b/node_modules/@types/lodash/isFinite.d.ts
new file mode 100644
index 000000000..7aba1dc6f
--- /dev/null
+++ b/node_modules/@types/lodash/isFinite.d.ts
@@ -0,0 +1,2 @@
+import { isFinite } from "./index";
+export = isFinite;
diff --git a/node_modules/@types/lodash/isFinite/index.d.ts b/node_modules/@types/lodash/isFinite/index.d.ts
deleted file mode 100644
index ca782a46a..000000000
--- a/node_modules/@types/lodash/isFinite/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isFinite } from "../index";
-export = isFinite;
diff --git a/node_modules/@types/lodash/isFunction.d.ts b/node_modules/@types/lodash/isFunction.d.ts
new file mode 100644
index 000000000..0a22d6cc7
--- /dev/null
+++ b/node_modules/@types/lodash/isFunction.d.ts
@@ -0,0 +1,2 @@
+import { isFunction } from "./index";
+export = isFunction;
diff --git a/node_modules/@types/lodash/isFunction/index.d.ts b/node_modules/@types/lodash/isFunction/index.d.ts
deleted file mode 100644
index 3993a7988..000000000
--- a/node_modules/@types/lodash/isFunction/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isFunction } from "../index";
-export = isFunction;
diff --git a/node_modules/@types/lodash/isInteger.d.ts b/node_modules/@types/lodash/isInteger.d.ts
new file mode 100644
index 000000000..40d33d39e
--- /dev/null
+++ b/node_modules/@types/lodash/isInteger.d.ts
@@ -0,0 +1,2 @@
+import { isInteger } from "./index";
+export = isInteger;
diff --git a/node_modules/@types/lodash/isInteger/index.d.ts b/node_modules/@types/lodash/isInteger/index.d.ts
deleted file mode 100644
index 75d1f1e40..000000000
--- a/node_modules/@types/lodash/isInteger/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isInteger } from "../index";
-export = isInteger;
diff --git a/node_modules/@types/lodash/isLength.d.ts b/node_modules/@types/lodash/isLength.d.ts
new file mode 100644
index 000000000..ee5a93304
--- /dev/null
+++ b/node_modules/@types/lodash/isLength.d.ts
@@ -0,0 +1,2 @@
+import { isLength } from "./index";
+export = isLength;
diff --git a/node_modules/@types/lodash/isLength/index.d.ts b/node_modules/@types/lodash/isLength/index.d.ts
deleted file mode 100644
index 6ec94eefd..000000000
--- a/node_modules/@types/lodash/isLength/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isLength } from "../index";
-export = isLength;
diff --git a/node_modules/@types/lodash/isMap.d.ts b/node_modules/@types/lodash/isMap.d.ts
new file mode 100644
index 000000000..441c5388c
--- /dev/null
+++ b/node_modules/@types/lodash/isMap.d.ts
@@ -0,0 +1,2 @@
+import { isMap } from "./index";
+export = isMap;
diff --git a/node_modules/@types/lodash/isMap/index.d.ts b/node_modules/@types/lodash/isMap/index.d.ts
deleted file mode 100644
index f6afe4ca2..000000000
--- a/node_modules/@types/lodash/isMap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isMap } from "../index";
-export = isMap;
diff --git a/node_modules/@types/lodash/isMatch.d.ts b/node_modules/@types/lodash/isMatch.d.ts
new file mode 100644
index 000000000..69d194a28
--- /dev/null
+++ b/node_modules/@types/lodash/isMatch.d.ts
@@ -0,0 +1,2 @@
+import { isMatch } from "./index";
+export = isMatch;
diff --git a/node_modules/@types/lodash/isMatch/index.d.ts b/node_modules/@types/lodash/isMatch/index.d.ts
deleted file mode 100644
index 15844b030..000000000
--- a/node_modules/@types/lodash/isMatch/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isMatch } from "../index";
-export = isMatch;
diff --git a/node_modules/@types/lodash/isMatchWith.d.ts b/node_modules/@types/lodash/isMatchWith.d.ts
new file mode 100644
index 000000000..932310af4
--- /dev/null
+++ b/node_modules/@types/lodash/isMatchWith.d.ts
@@ -0,0 +1,2 @@
+import { isMatchWith } from "./index";
+export = isMatchWith;
diff --git a/node_modules/@types/lodash/isMatchWith/index.d.ts b/node_modules/@types/lodash/isMatchWith/index.d.ts
deleted file mode 100644
index c720cd135..000000000
--- a/node_modules/@types/lodash/isMatchWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isMatchWith } from "../index";
-export = isMatchWith;
diff --git a/node_modules/@types/lodash/isNaN.d.ts b/node_modules/@types/lodash/isNaN.d.ts
new file mode 100644
index 000000000..970702b50
--- /dev/null
+++ b/node_modules/@types/lodash/isNaN.d.ts
@@ -0,0 +1,2 @@
+import { isNaN } from "./index";
+export = isNaN;
diff --git a/node_modules/@types/lodash/isNaN/index.d.ts b/node_modules/@types/lodash/isNaN/index.d.ts
deleted file mode 100644
index 01ff429d3..000000000
--- a/node_modules/@types/lodash/isNaN/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isNaN } from "../index";
-export = isNaN;
diff --git a/node_modules/@types/lodash/isNative.d.ts b/node_modules/@types/lodash/isNative.d.ts
new file mode 100644
index 000000000..3174f8a8c
--- /dev/null
+++ b/node_modules/@types/lodash/isNative.d.ts
@@ -0,0 +1,2 @@
+import { isNative } from "./index";
+export = isNative;
diff --git a/node_modules/@types/lodash/isNative/index.d.ts b/node_modules/@types/lodash/isNative/index.d.ts
deleted file mode 100644
index 60a1248e6..000000000
--- a/node_modules/@types/lodash/isNative/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isNative } from "../index";
-export = isNative;
diff --git a/node_modules/@types/lodash/isNil.d.ts b/node_modules/@types/lodash/isNil.d.ts
new file mode 100644
index 000000000..9e1581976
--- /dev/null
+++ b/node_modules/@types/lodash/isNil.d.ts
@@ -0,0 +1,2 @@
+import { isNil } from "./index";
+export = isNil;
diff --git a/node_modules/@types/lodash/isNil/index.d.ts b/node_modules/@types/lodash/isNil/index.d.ts
deleted file mode 100644
index 78ea7336d..000000000
--- a/node_modules/@types/lodash/isNil/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isNil } from "../index";
-export = isNil;
diff --git a/node_modules/@types/lodash/isNull.d.ts b/node_modules/@types/lodash/isNull.d.ts
new file mode 100644
index 000000000..e572c456e
--- /dev/null
+++ b/node_modules/@types/lodash/isNull.d.ts
@@ -0,0 +1,2 @@
+import { isNull } from "./index";
+export = isNull;
diff --git a/node_modules/@types/lodash/isNull/index.d.ts b/node_modules/@types/lodash/isNull/index.d.ts
deleted file mode 100644
index f1768ecbd..000000000
--- a/node_modules/@types/lodash/isNull/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isNull } from "../index";
-export = isNull;
diff --git a/node_modules/@types/lodash/isNumber.d.ts b/node_modules/@types/lodash/isNumber.d.ts
new file mode 100644
index 000000000..91c83598c
--- /dev/null
+++ b/node_modules/@types/lodash/isNumber.d.ts
@@ -0,0 +1,2 @@
+import { isNumber } from "./index";
+export = isNumber;
diff --git a/node_modules/@types/lodash/isNumber/index.d.ts b/node_modules/@types/lodash/isNumber/index.d.ts
deleted file mode 100644
index 9fdcc69c8..000000000
--- a/node_modules/@types/lodash/isNumber/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isNumber } from "../index";
-export = isNumber;
diff --git a/node_modules/@types/lodash/isObject.d.ts b/node_modules/@types/lodash/isObject.d.ts
new file mode 100644
index 000000000..9a43544c2
--- /dev/null
+++ b/node_modules/@types/lodash/isObject.d.ts
@@ -0,0 +1,2 @@
+import { isObject } from "./index";
+export = isObject;
diff --git a/node_modules/@types/lodash/isObject/index.d.ts b/node_modules/@types/lodash/isObject/index.d.ts
deleted file mode 100644
index cb955e188..000000000
--- a/node_modules/@types/lodash/isObject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isObject } from "../index";
-export = isObject;
diff --git a/node_modules/@types/lodash/isObjectLike.d.ts b/node_modules/@types/lodash/isObjectLike.d.ts
new file mode 100644
index 000000000..a17d39c4e
--- /dev/null
+++ b/node_modules/@types/lodash/isObjectLike.d.ts
@@ -0,0 +1,2 @@
+import { isObjectLike } from "./index";
+export = isObjectLike;
diff --git a/node_modules/@types/lodash/isObjectLike/index.d.ts b/node_modules/@types/lodash/isObjectLike/index.d.ts
deleted file mode 100644
index d338e132f..000000000
--- a/node_modules/@types/lodash/isObjectLike/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isObjectLike } from "../index";
-export = isObjectLike;
diff --git a/node_modules/@types/lodash/isPlainObject.d.ts b/node_modules/@types/lodash/isPlainObject.d.ts
new file mode 100644
index 000000000..4df85e28b
--- /dev/null
+++ b/node_modules/@types/lodash/isPlainObject.d.ts
@@ -0,0 +1,2 @@
+import { isPlainObject } from "./index";
+export = isPlainObject;
diff --git a/node_modules/@types/lodash/isPlainObject/index.d.ts b/node_modules/@types/lodash/isPlainObject/index.d.ts
deleted file mode 100644
index b17e6840d..000000000
--- a/node_modules/@types/lodash/isPlainObject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isPlainObject } from "../index";
-export = isPlainObject;
diff --git a/node_modules/@types/lodash/isRegExp.d.ts b/node_modules/@types/lodash/isRegExp.d.ts
new file mode 100644
index 000000000..ed206d972
--- /dev/null
+++ b/node_modules/@types/lodash/isRegExp.d.ts
@@ -0,0 +1,2 @@
+import { isRegExp } from "./index";
+export = isRegExp;
diff --git a/node_modules/@types/lodash/isRegExp/index.d.ts b/node_modules/@types/lodash/isRegExp/index.d.ts
deleted file mode 100644
index a6d175bc2..000000000
--- a/node_modules/@types/lodash/isRegExp/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isRegExp } from "../index";
-export = isRegExp;
diff --git a/node_modules/@types/lodash/isSafeInteger.d.ts b/node_modules/@types/lodash/isSafeInteger.d.ts
new file mode 100644
index 000000000..6bc608331
--- /dev/null
+++ b/node_modules/@types/lodash/isSafeInteger.d.ts
@@ -0,0 +1,2 @@
+import { isSafeInteger } from "./index";
+export = isSafeInteger;
diff --git a/node_modules/@types/lodash/isSafeInteger/index.d.ts b/node_modules/@types/lodash/isSafeInteger/index.d.ts
deleted file mode 100644
index 35bf8eb3d..000000000
--- a/node_modules/@types/lodash/isSafeInteger/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isSafeInteger } from "../index";
-export = isSafeInteger;
diff --git a/node_modules/@types/lodash/isSet.d.ts b/node_modules/@types/lodash/isSet.d.ts
new file mode 100644
index 000000000..7967b50d2
--- /dev/null
+++ b/node_modules/@types/lodash/isSet.d.ts
@@ -0,0 +1,2 @@
+import { isSet } from "./index";
+export = isSet;
diff --git a/node_modules/@types/lodash/isSet/index.d.ts b/node_modules/@types/lodash/isSet/index.d.ts
deleted file mode 100644
index 47858a80d..000000000
--- a/node_modules/@types/lodash/isSet/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isSet } from "../index";
-export = isSet;
diff --git a/node_modules/@types/lodash/isString.d.ts b/node_modules/@types/lodash/isString.d.ts
new file mode 100644
index 000000000..757802e17
--- /dev/null
+++ b/node_modules/@types/lodash/isString.d.ts
@@ -0,0 +1,2 @@
+import { isString } from "./index";
+export = isString;
diff --git a/node_modules/@types/lodash/isString/index.d.ts b/node_modules/@types/lodash/isString/index.d.ts
deleted file mode 100644
index 615786c96..000000000
--- a/node_modules/@types/lodash/isString/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isString } from "../index";
-export = isString;
diff --git a/node_modules/@types/lodash/isSymbol.d.ts b/node_modules/@types/lodash/isSymbol.d.ts
new file mode 100644
index 000000000..e28b2b0c7
--- /dev/null
+++ b/node_modules/@types/lodash/isSymbol.d.ts
@@ -0,0 +1,2 @@
+import { isSymbol } from "./index";
+export = isSymbol;
diff --git a/node_modules/@types/lodash/isSymbol/index.d.ts b/node_modules/@types/lodash/isSymbol/index.d.ts
deleted file mode 100644
index 5d8af89ef..000000000
--- a/node_modules/@types/lodash/isSymbol/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isSymbol } from "../index";
-export = isSymbol;
diff --git a/node_modules/@types/lodash/isTypedArray.d.ts b/node_modules/@types/lodash/isTypedArray.d.ts
new file mode 100644
index 000000000..7f3260122
--- /dev/null
+++ b/node_modules/@types/lodash/isTypedArray.d.ts
@@ -0,0 +1,2 @@
+import { isTypedArray } from "./index";
+export = isTypedArray;
diff --git a/node_modules/@types/lodash/isTypedArray/index.d.ts b/node_modules/@types/lodash/isTypedArray/index.d.ts
deleted file mode 100644
index 8c9d56c36..000000000
--- a/node_modules/@types/lodash/isTypedArray/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isTypedArray } from "../index";
-export = isTypedArray;
diff --git a/node_modules/@types/lodash/isUndefined.d.ts b/node_modules/@types/lodash/isUndefined.d.ts
new file mode 100644
index 000000000..7a5c64ff7
--- /dev/null
+++ b/node_modules/@types/lodash/isUndefined.d.ts
@@ -0,0 +1,2 @@
+import { isUndefined } from "./index";
+export = isUndefined;
diff --git a/node_modules/@types/lodash/isUndefined/index.d.ts b/node_modules/@types/lodash/isUndefined/index.d.ts
deleted file mode 100644
index 7beaa498b..000000000
--- a/node_modules/@types/lodash/isUndefined/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isUndefined } from "../index";
-export = isUndefined;
diff --git a/node_modules/@types/lodash/isWeakMap.d.ts b/node_modules/@types/lodash/isWeakMap.d.ts
new file mode 100644
index 000000000..b0609daab
--- /dev/null
+++ b/node_modules/@types/lodash/isWeakMap.d.ts
@@ -0,0 +1,2 @@
+import { isWeakMap } from "./index";
+export = isWeakMap;
diff --git a/node_modules/@types/lodash/isWeakMap/index.d.ts b/node_modules/@types/lodash/isWeakMap/index.d.ts
deleted file mode 100644
index 4cc54050f..000000000
--- a/node_modules/@types/lodash/isWeakMap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isWeakMap } from "../index";
-export = isWeakMap;
diff --git a/node_modules/@types/lodash/isWeakSet.d.ts b/node_modules/@types/lodash/isWeakSet.d.ts
new file mode 100644
index 000000000..6beda3d0f
--- /dev/null
+++ b/node_modules/@types/lodash/isWeakSet.d.ts
@@ -0,0 +1,2 @@
+import { isWeakSet } from "./index";
+export = isWeakSet;
diff --git a/node_modules/@types/lodash/isWeakSet/index.d.ts b/node_modules/@types/lodash/isWeakSet/index.d.ts
deleted file mode 100644
index f6b5e2c24..000000000
--- a/node_modules/@types/lodash/isWeakSet/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { isWeakSet } from "../index";
-export = isWeakSet;
diff --git a/node_modules/@types/lodash/iteratee.d.ts b/node_modules/@types/lodash/iteratee.d.ts
new file mode 100644
index 000000000..493b39c4b
--- /dev/null
+++ b/node_modules/@types/lodash/iteratee.d.ts
@@ -0,0 +1,2 @@
+import { iteratee } from "./index";
+export = iteratee;
diff --git a/node_modules/@types/lodash/iteratee/index.d.ts b/node_modules/@types/lodash/iteratee/index.d.ts
deleted file mode 100644
index b2cac6a5d..000000000
--- a/node_modules/@types/lodash/iteratee/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { iteratee } from "../index";
-export = iteratee;
diff --git a/node_modules/@types/lodash/join.d.ts b/node_modules/@types/lodash/join.d.ts
new file mode 100644
index 000000000..b2c5fb401
--- /dev/null
+++ b/node_modules/@types/lodash/join.d.ts
@@ -0,0 +1,2 @@
+import { join } from "./index";
+export = join;
diff --git a/node_modules/@types/lodash/join/index.d.ts b/node_modules/@types/lodash/join/index.d.ts
deleted file mode 100644
index 5702bbb06..000000000
--- a/node_modules/@types/lodash/join/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { join } from "../index";
-export = join;
diff --git a/node_modules/@types/lodash/kebabCase.d.ts b/node_modules/@types/lodash/kebabCase.d.ts
new file mode 100644
index 000000000..c088ef7c2
--- /dev/null
+++ b/node_modules/@types/lodash/kebabCase.d.ts
@@ -0,0 +1,2 @@
+import { kebabCase } from "./index";
+export = kebabCase;
diff --git a/node_modules/@types/lodash/kebabCase/index.d.ts b/node_modules/@types/lodash/kebabCase/index.d.ts
deleted file mode 100644
index 0cd3a12f1..000000000
--- a/node_modules/@types/lodash/kebabCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { kebabCase } from "../index";
-export = kebabCase;
diff --git a/node_modules/@types/lodash/keyBy.d.ts b/node_modules/@types/lodash/keyBy.d.ts
new file mode 100644
index 000000000..664a7229a
--- /dev/null
+++ b/node_modules/@types/lodash/keyBy.d.ts
@@ -0,0 +1,2 @@
+import { keyBy } from "./index";
+export = keyBy;
diff --git a/node_modules/@types/lodash/keyBy/index.d.ts b/node_modules/@types/lodash/keyBy/index.d.ts
deleted file mode 100644
index ed5d1f205..000000000
--- a/node_modules/@types/lodash/keyBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { keyBy } from "../index";
-export = keyBy;
diff --git a/node_modules/@types/lodash/keys.d.ts b/node_modules/@types/lodash/keys.d.ts
new file mode 100644
index 000000000..7eb29a0b9
--- /dev/null
+++ b/node_modules/@types/lodash/keys.d.ts
@@ -0,0 +1,2 @@
+import { keys } from "./index";
+export = keys;
diff --git a/node_modules/@types/lodash/keys/index.d.ts b/node_modules/@types/lodash/keys/index.d.ts
deleted file mode 100644
index 7f0e5ddf1..000000000
--- a/node_modules/@types/lodash/keys/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { keys } from "../index";
-export = keys;
diff --git a/node_modules/@types/lodash/keysIn.d.ts b/node_modules/@types/lodash/keysIn.d.ts
new file mode 100644
index 000000000..c9eeee6c2
--- /dev/null
+++ b/node_modules/@types/lodash/keysIn.d.ts
@@ -0,0 +1,2 @@
+import { keysIn } from "./index";
+export = keysIn;
diff --git a/node_modules/@types/lodash/keysIn/index.d.ts b/node_modules/@types/lodash/keysIn/index.d.ts
deleted file mode 100644
index e4f6ecb21..000000000
--- a/node_modules/@types/lodash/keysIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { keysIn } from "../index";
-export = keysIn;
diff --git a/node_modules/@types/lodash/last.d.ts b/node_modules/@types/lodash/last.d.ts
new file mode 100644
index 000000000..cfdeb757e
--- /dev/null
+++ b/node_modules/@types/lodash/last.d.ts
@@ -0,0 +1,2 @@
+import { last } from "./index";
+export = last;
diff --git a/node_modules/@types/lodash/last/index.d.ts b/node_modules/@types/lodash/last/index.d.ts
deleted file mode 100644
index a49995ea2..000000000
--- a/node_modules/@types/lodash/last/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { last } from "../index";
-export = last;
diff --git a/node_modules/@types/lodash/lastIndexOf.d.ts b/node_modules/@types/lodash/lastIndexOf.d.ts
new file mode 100644
index 000000000..979d80dd9
--- /dev/null
+++ b/node_modules/@types/lodash/lastIndexOf.d.ts
@@ -0,0 +1,2 @@
+import { lastIndexOf } from "./index";
+export = lastIndexOf;
diff --git a/node_modules/@types/lodash/lastIndexOf/index.d.ts b/node_modules/@types/lodash/lastIndexOf/index.d.ts
deleted file mode 100644
index c430865ab..000000000
--- a/node_modules/@types/lodash/lastIndexOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { lastIndexOf } from "../index";
-export = lastIndexOf;
diff --git a/node_modules/@types/lodash/lowerCase.d.ts b/node_modules/@types/lodash/lowerCase.d.ts
new file mode 100644
index 000000000..475297d8c
--- /dev/null
+++ b/node_modules/@types/lodash/lowerCase.d.ts
@@ -0,0 +1,2 @@
+import { lowerCase } from "./index";
+export = lowerCase;
diff --git a/node_modules/@types/lodash/lowerCase/index.d.ts b/node_modules/@types/lodash/lowerCase/index.d.ts
deleted file mode 100644
index 9ddea5741..000000000
--- a/node_modules/@types/lodash/lowerCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { lowerCase } from "../index";
-export = lowerCase;
diff --git a/node_modules/@types/lodash/lowerFirst.d.ts b/node_modules/@types/lodash/lowerFirst.d.ts
new file mode 100644
index 000000000..0836228fc
--- /dev/null
+++ b/node_modules/@types/lodash/lowerFirst.d.ts
@@ -0,0 +1,2 @@
+import { lowerFirst } from "./index";
+export = lowerFirst;
diff --git a/node_modules/@types/lodash/lowerFirst/index.d.ts b/node_modules/@types/lodash/lowerFirst/index.d.ts
deleted file mode 100644
index 892e21109..000000000
--- a/node_modules/@types/lodash/lowerFirst/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { lowerFirst } from "../index";
-export = lowerFirst;
diff --git a/node_modules/@types/lodash/lt.d.ts b/node_modules/@types/lodash/lt.d.ts
new file mode 100644
index 000000000..92cd4e26f
--- /dev/null
+++ b/node_modules/@types/lodash/lt.d.ts
@@ -0,0 +1,2 @@
+import { lt } from "./index";
+export = lt;
diff --git a/node_modules/@types/lodash/lt/index.d.ts b/node_modules/@types/lodash/lt/index.d.ts
deleted file mode 100644
index 59cc4bad4..000000000
--- a/node_modules/@types/lodash/lt/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { lt } from "../index";
-export = lt;
diff --git a/node_modules/@types/lodash/lte.d.ts b/node_modules/@types/lodash/lte.d.ts
new file mode 100644
index 000000000..7c80f37c0
--- /dev/null
+++ b/node_modules/@types/lodash/lte.d.ts
@@ -0,0 +1,2 @@
+import { lte } from "./index";
+export = lte;
diff --git a/node_modules/@types/lodash/lte/index.d.ts b/node_modules/@types/lodash/lte/index.d.ts
deleted file mode 100644
index 215ea6408..000000000
--- a/node_modules/@types/lodash/lte/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { lte } from "../index";
-export = lte;
diff --git a/node_modules/@types/lodash/map.d.ts b/node_modules/@types/lodash/map.d.ts
new file mode 100644
index 000000000..2f783cb7f
--- /dev/null
+++ b/node_modules/@types/lodash/map.d.ts
@@ -0,0 +1,2 @@
+import { map } from "./index";
+export = map;
diff --git a/node_modules/@types/lodash/map/index.d.ts b/node_modules/@types/lodash/map/index.d.ts
deleted file mode 100644
index 1b117b53f..000000000
--- a/node_modules/@types/lodash/map/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { map } from "../index";
-export = map;
diff --git a/node_modules/@types/lodash/mapKeys.d.ts b/node_modules/@types/lodash/mapKeys.d.ts
new file mode 100644
index 000000000..7c7e1b5ce
--- /dev/null
+++ b/node_modules/@types/lodash/mapKeys.d.ts
@@ -0,0 +1,2 @@
+import { mapKeys } from "./index";
+export = mapKeys;
diff --git a/node_modules/@types/lodash/mapKeys/index.d.ts b/node_modules/@types/lodash/mapKeys/index.d.ts
deleted file mode 100644
index 6cf153c17..000000000
--- a/node_modules/@types/lodash/mapKeys/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { mapKeys } from "../index";
-export = mapKeys;
diff --git a/node_modules/@types/lodash/mapValues.d.ts b/node_modules/@types/lodash/mapValues.d.ts
new file mode 100644
index 000000000..3e87ea61e
--- /dev/null
+++ b/node_modules/@types/lodash/mapValues.d.ts
@@ -0,0 +1,2 @@
+import { mapValues } from "./index";
+export = mapValues;
diff --git a/node_modules/@types/lodash/mapValues/index.d.ts b/node_modules/@types/lodash/mapValues/index.d.ts
deleted file mode 100644
index 3b0551f67..000000000
--- a/node_modules/@types/lodash/mapValues/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { mapValues } from "../index";
-export = mapValues;
diff --git a/node_modules/@types/lodash/matches.d.ts b/node_modules/@types/lodash/matches.d.ts
new file mode 100644
index 000000000..5bb3cc268
--- /dev/null
+++ b/node_modules/@types/lodash/matches.d.ts
@@ -0,0 +1,2 @@
+import { matches } from "./index";
+export = matches;
diff --git a/node_modules/@types/lodash/matches/index.d.ts b/node_modules/@types/lodash/matches/index.d.ts
deleted file mode 100644
index 5a8dc6993..000000000
--- a/node_modules/@types/lodash/matches/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { matches } from "../index";
-export = matches;
diff --git a/node_modules/@types/lodash/matchesProperty.d.ts b/node_modules/@types/lodash/matchesProperty.d.ts
new file mode 100644
index 000000000..737849853
--- /dev/null
+++ b/node_modules/@types/lodash/matchesProperty.d.ts
@@ -0,0 +1,2 @@
+import { matchesProperty } from "./index";
+export = matchesProperty;
diff --git a/node_modules/@types/lodash/matchesProperty/index.d.ts b/node_modules/@types/lodash/matchesProperty/index.d.ts
deleted file mode 100644
index 2d64dad70..000000000
--- a/node_modules/@types/lodash/matchesProperty/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { matchesProperty } from "../index";
-export = matchesProperty;
diff --git a/node_modules/@types/lodash/max.d.ts b/node_modules/@types/lodash/max.d.ts
new file mode 100644
index 000000000..36d064613
--- /dev/null
+++ b/node_modules/@types/lodash/max.d.ts
@@ -0,0 +1,2 @@
+import { max } from "./index";
+export = max;
diff --git a/node_modules/@types/lodash/max/index.d.ts b/node_modules/@types/lodash/max/index.d.ts
deleted file mode 100644
index bade2f29f..000000000
--- a/node_modules/@types/lodash/max/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { max } from "../index";
-export = max;
diff --git a/node_modules/@types/lodash/maxBy.d.ts b/node_modules/@types/lodash/maxBy.d.ts
new file mode 100644
index 000000000..d483d95f9
--- /dev/null
+++ b/node_modules/@types/lodash/maxBy.d.ts
@@ -0,0 +1,2 @@
+import { maxBy } from "./index";
+export = maxBy;
diff --git a/node_modules/@types/lodash/maxBy/index.d.ts b/node_modules/@types/lodash/maxBy/index.d.ts
deleted file mode 100644
index d1b8966e1..000000000
--- a/node_modules/@types/lodash/maxBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { maxBy } from "../index";
-export = maxBy;
diff --git a/node_modules/@types/lodash/mean.d.ts b/node_modules/@types/lodash/mean.d.ts
new file mode 100644
index 000000000..983ad7728
--- /dev/null
+++ b/node_modules/@types/lodash/mean.d.ts
@@ -0,0 +1,2 @@
+import { mean } from "./index";
+export = mean;
diff --git a/node_modules/@types/lodash/mean/index.d.ts b/node_modules/@types/lodash/mean/index.d.ts
deleted file mode 100644
index a621320d5..000000000
--- a/node_modules/@types/lodash/mean/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { mean } from "../index";
-export = mean;
diff --git a/node_modules/@types/lodash/meanBy.d.ts b/node_modules/@types/lodash/meanBy.d.ts
new file mode 100644
index 000000000..67aebbbe8
--- /dev/null
+++ b/node_modules/@types/lodash/meanBy.d.ts
@@ -0,0 +1,2 @@
+import { meanBy } from "./index";
+export = meanBy;
diff --git a/node_modules/@types/lodash/meanBy/index.d.ts b/node_modules/@types/lodash/meanBy/index.d.ts
deleted file mode 100644
index 52e8fddb8..000000000
--- a/node_modules/@types/lodash/meanBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { meanBy } from "../index";
-export = meanBy;
diff --git a/node_modules/@types/lodash/memoize.d.ts b/node_modules/@types/lodash/memoize.d.ts
new file mode 100644
index 000000000..6ff535b91
--- /dev/null
+++ b/node_modules/@types/lodash/memoize.d.ts
@@ -0,0 +1,2 @@
+import { memoize } from "./index";
+export = memoize;
diff --git a/node_modules/@types/lodash/memoize/index.d.ts b/node_modules/@types/lodash/memoize/index.d.ts
deleted file mode 100644
index 91726801e..000000000
--- a/node_modules/@types/lodash/memoize/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { memoize } from "../index";
-export = memoize;
diff --git a/node_modules/@types/lodash/merge.d.ts b/node_modules/@types/lodash/merge.d.ts
new file mode 100644
index 000000000..eb8bd95e8
--- /dev/null
+++ b/node_modules/@types/lodash/merge.d.ts
@@ -0,0 +1,2 @@
+import { merge } from "./index";
+export = merge;
diff --git a/node_modules/@types/lodash/merge/index.d.ts b/node_modules/@types/lodash/merge/index.d.ts
deleted file mode 100644
index 8f76c4d93..000000000
--- a/node_modules/@types/lodash/merge/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { merge } from "../index";
-export = merge;
diff --git a/node_modules/@types/lodash/mergeWith.d.ts b/node_modules/@types/lodash/mergeWith.d.ts
new file mode 100644
index 000000000..a58dd908b
--- /dev/null
+++ b/node_modules/@types/lodash/mergeWith.d.ts
@@ -0,0 +1,2 @@
+import { mergeWith } from "./index";
+export = mergeWith;
diff --git a/node_modules/@types/lodash/mergeWith/index.d.ts b/node_modules/@types/lodash/mergeWith/index.d.ts
deleted file mode 100644
index 94bdb7fa9..000000000
--- a/node_modules/@types/lodash/mergeWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { mergeWith } from "../index";
-export = mergeWith;
diff --git a/node_modules/@types/lodash/method.d.ts b/node_modules/@types/lodash/method.d.ts
new file mode 100644
index 000000000..cc3058870
--- /dev/null
+++ b/node_modules/@types/lodash/method.d.ts
@@ -0,0 +1,2 @@
+import { method } from "./index";
+export = method;
diff --git a/node_modules/@types/lodash/method/index.d.ts b/node_modules/@types/lodash/method/index.d.ts
deleted file mode 100644
index 5d82032a1..000000000
--- a/node_modules/@types/lodash/method/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { method } from "../index";
-export = method;
diff --git a/node_modules/@types/lodash/methodOf.d.ts b/node_modules/@types/lodash/methodOf.d.ts
new file mode 100644
index 000000000..af7f19aa6
--- /dev/null
+++ b/node_modules/@types/lodash/methodOf.d.ts
@@ -0,0 +1,2 @@
+import { methodOf } from "./index";
+export = methodOf;
diff --git a/node_modules/@types/lodash/methodOf/index.d.ts b/node_modules/@types/lodash/methodOf/index.d.ts
deleted file mode 100644
index 9fa1fd611..000000000
--- a/node_modules/@types/lodash/methodOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { methodOf } from "../index";
-export = methodOf;
diff --git a/node_modules/@types/lodash/min.d.ts b/node_modules/@types/lodash/min.d.ts
new file mode 100644
index 000000000..e8ba597cd
--- /dev/null
+++ b/node_modules/@types/lodash/min.d.ts
@@ -0,0 +1,2 @@
+import { min } from "./index";
+export = min;
diff --git a/node_modules/@types/lodash/min/index.d.ts b/node_modules/@types/lodash/min/index.d.ts
deleted file mode 100644
index 7132304dc..000000000
--- a/node_modules/@types/lodash/min/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { min } from "../index";
-export = min;
diff --git a/node_modules/@types/lodash/minBy.d.ts b/node_modules/@types/lodash/minBy.d.ts
new file mode 100644
index 000000000..74860f908
--- /dev/null
+++ b/node_modules/@types/lodash/minBy.d.ts
@@ -0,0 +1,2 @@
+import { minBy } from "./index";
+export = minBy;
diff --git a/node_modules/@types/lodash/minBy/index.d.ts b/node_modules/@types/lodash/minBy/index.d.ts
deleted file mode 100644
index 54fe58e86..000000000
--- a/node_modules/@types/lodash/minBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { minBy } from "../index";
-export = minBy;
diff --git a/node_modules/@types/lodash/mixin.d.ts b/node_modules/@types/lodash/mixin.d.ts
new file mode 100644
index 000000000..798424679
--- /dev/null
+++ b/node_modules/@types/lodash/mixin.d.ts
@@ -0,0 +1,2 @@
+import { mixin } from "./index";
+export = mixin;
diff --git a/node_modules/@types/lodash/mixin/index.d.ts b/node_modules/@types/lodash/mixin/index.d.ts
deleted file mode 100644
index 24e268fb8..000000000
--- a/node_modules/@types/lodash/mixin/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { mixin } from "../index";
-export = mixin;
diff --git a/node_modules/@types/lodash/negate.d.ts b/node_modules/@types/lodash/negate.d.ts
new file mode 100644
index 000000000..46d059644
--- /dev/null
+++ b/node_modules/@types/lodash/negate.d.ts
@@ -0,0 +1,2 @@
+import { negate } from "./index";
+export = negate;
diff --git a/node_modules/@types/lodash/negate/index.d.ts b/node_modules/@types/lodash/negate/index.d.ts
deleted file mode 100644
index 08e21d66f..000000000
--- a/node_modules/@types/lodash/negate/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { negate } from "../index";
-export = negate;
diff --git a/node_modules/@types/lodash/noConflict.d.ts b/node_modules/@types/lodash/noConflict.d.ts
new file mode 100644
index 000000000..78b3c921b
--- /dev/null
+++ b/node_modules/@types/lodash/noConflict.d.ts
@@ -0,0 +1,2 @@
+import { noConflict } from "./index";
+export = noConflict;
diff --git a/node_modules/@types/lodash/noConflict/index.d.ts b/node_modules/@types/lodash/noConflict/index.d.ts
deleted file mode 100644
index 0e3b7d607..000000000
--- a/node_modules/@types/lodash/noConflict/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { noConflict } from "../index";
-export = noConflict;
diff --git a/node_modules/@types/lodash/noop.d.ts b/node_modules/@types/lodash/noop.d.ts
new file mode 100644
index 000000000..bfaeb880d
--- /dev/null
+++ b/node_modules/@types/lodash/noop.d.ts
@@ -0,0 +1,2 @@
+import { noop } from "./index";
+export = noop;
diff --git a/node_modules/@types/lodash/noop/index.d.ts b/node_modules/@types/lodash/noop/index.d.ts
deleted file mode 100644
index bf747c2d5..000000000
--- a/node_modules/@types/lodash/noop/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { noop } from "../index";
-export = noop;
diff --git a/node_modules/@types/lodash/now.d.ts b/node_modules/@types/lodash/now.d.ts
new file mode 100644
index 000000000..00f807eb5
--- /dev/null
+++ b/node_modules/@types/lodash/now.d.ts
@@ -0,0 +1,2 @@
+import { now } from "./index";
+export = now;
diff --git a/node_modules/@types/lodash/now/index.d.ts b/node_modules/@types/lodash/now/index.d.ts
deleted file mode 100644
index b1819e084..000000000
--- a/node_modules/@types/lodash/now/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { now } from "../index";
-export = now;
diff --git a/node_modules/@types/lodash/nth/index.d.ts b/node_modules/@types/lodash/nth/index.d.ts
deleted file mode 100644
index bce91e4f1..000000000
--- a/node_modules/@types/lodash/nth/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { nth } from "../index";
-export = nth;
diff --git a/node_modules/@types/lodash/nthArg.d.ts b/node_modules/@types/lodash/nthArg.d.ts
new file mode 100644
index 000000000..2729d70e0
--- /dev/null
+++ b/node_modules/@types/lodash/nthArg.d.ts
@@ -0,0 +1,2 @@
+import { nthArg } from "./index";
+export = nthArg;
diff --git a/node_modules/@types/lodash/nthArg/index.d.ts b/node_modules/@types/lodash/nthArg/index.d.ts
deleted file mode 100644
index ab4e31a29..000000000
--- a/node_modules/@types/lodash/nthArg/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { nthArg } from "../index";
-export = nthArg;
diff --git a/node_modules/@types/lodash/omit.d.ts b/node_modules/@types/lodash/omit.d.ts
new file mode 100644
index 000000000..5868a07bf
--- /dev/null
+++ b/node_modules/@types/lodash/omit.d.ts
@@ -0,0 +1,2 @@
+import { omit } from "./index";
+export = omit;
diff --git a/node_modules/@types/lodash/omit/index.d.ts b/node_modules/@types/lodash/omit/index.d.ts
deleted file mode 100644
index 21ffa823d..000000000
--- a/node_modules/@types/lodash/omit/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { omit } from "../index";
-export = omit;
diff --git a/node_modules/@types/lodash/omitBy.d.ts b/node_modules/@types/lodash/omitBy.d.ts
new file mode 100644
index 000000000..41bf6b48a
--- /dev/null
+++ b/node_modules/@types/lodash/omitBy.d.ts
@@ -0,0 +1,2 @@
+import { omitBy } from "./index";
+export = omitBy;
diff --git a/node_modules/@types/lodash/omitBy/index.d.ts b/node_modules/@types/lodash/omitBy/index.d.ts
deleted file mode 100644
index 8ec9dee94..000000000
--- a/node_modules/@types/lodash/omitBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { omitBy } from "../index";
-export = omitBy;
diff --git a/node_modules/@types/lodash/once.d.ts b/node_modules/@types/lodash/once.d.ts
new file mode 100644
index 000000000..4340e8805
--- /dev/null
+++ b/node_modules/@types/lodash/once.d.ts
@@ -0,0 +1,2 @@
+import { once } from "./index";
+export = once;
diff --git a/node_modules/@types/lodash/once/index.d.ts b/node_modules/@types/lodash/once/index.d.ts
deleted file mode 100644
index 2f1b6aa9a..000000000
--- a/node_modules/@types/lodash/once/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { once } from "../index";
-export = once;
diff --git a/node_modules/@types/lodash/orderBy.d.ts b/node_modules/@types/lodash/orderBy.d.ts
new file mode 100644
index 000000000..02320d506
--- /dev/null
+++ b/node_modules/@types/lodash/orderBy.d.ts
@@ -0,0 +1,2 @@
+import { orderBy } from "./index";
+export = orderBy;
diff --git a/node_modules/@types/lodash/orderBy/index.d.ts b/node_modules/@types/lodash/orderBy/index.d.ts
deleted file mode 100644
index 029aae981..000000000
--- a/node_modules/@types/lodash/orderBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { orderBy } from "../index";
-export = orderBy;
diff --git a/node_modules/@types/lodash/over.d.ts b/node_modules/@types/lodash/over.d.ts
new file mode 100644
index 000000000..172c822bd
--- /dev/null
+++ b/node_modules/@types/lodash/over.d.ts
@@ -0,0 +1,2 @@
+import { over } from "./index";
+export = over;
diff --git a/node_modules/@types/lodash/over/index.d.ts b/node_modules/@types/lodash/over/index.d.ts
deleted file mode 100644
index f320f4be0..000000000
--- a/node_modules/@types/lodash/over/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { over } from "../index";
-export = over;
diff --git a/node_modules/@types/lodash/overArgs.d.ts b/node_modules/@types/lodash/overArgs.d.ts
new file mode 100644
index 000000000..f8518f68d
--- /dev/null
+++ b/node_modules/@types/lodash/overArgs.d.ts
@@ -0,0 +1,2 @@
+import { overArgs } from "./index";
+export = overArgs;
diff --git a/node_modules/@types/lodash/overArgs/index.d.ts b/node_modules/@types/lodash/overArgs/index.d.ts
deleted file mode 100644
index e2c6e353e..000000000
--- a/node_modules/@types/lodash/overArgs/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { overArgs } from "../index";
-export = overArgs;
diff --git a/node_modules/@types/lodash/overEvery.d.ts b/node_modules/@types/lodash/overEvery.d.ts
new file mode 100644
index 000000000..b8328fb52
--- /dev/null
+++ b/node_modules/@types/lodash/overEvery.d.ts
@@ -0,0 +1,2 @@
+import { overEvery } from "./index";
+export = overEvery;
diff --git a/node_modules/@types/lodash/overEvery/index.d.ts b/node_modules/@types/lodash/overEvery/index.d.ts
deleted file mode 100644
index 4a181c822..000000000
--- a/node_modules/@types/lodash/overEvery/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { overEvery } from "../index";
-export = overEvery;
diff --git a/node_modules/@types/lodash/overSome.d.ts b/node_modules/@types/lodash/overSome.d.ts
new file mode 100644
index 000000000..2f172581c
--- /dev/null
+++ b/node_modules/@types/lodash/overSome.d.ts
@@ -0,0 +1,2 @@
+import { overSome } from "./index";
+export = overSome;
diff --git a/node_modules/@types/lodash/overSome/index.d.ts b/node_modules/@types/lodash/overSome/index.d.ts
deleted file mode 100644
index ee59d5471..000000000
--- a/node_modules/@types/lodash/overSome/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { overSome } from "../index";
-export = overSome;
diff --git a/node_modules/@types/lodash/package.json b/node_modules/@types/lodash/package.json
index d8d708afe..504fdd710 100644
--- a/node_modules/@types/lodash/package.json
+++ b/node_modules/@types/lodash/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/lodash",
- "version": "4.14.64",
+ "version": "4.14.72",
"description": "TypeScript definitions for Lo-Dash",
"license": "MIT",
"contributors": [
@@ -19,6 +19,14 @@
{
"name": "Eric L Anderson",
"url": "https://github.com/ericanderson"
+ },
+ {
+ "name": "AJ Richardson",
+ "url": "https://github.com/aj-r"
+ },
+ {
+ "name": "Junyoung Clare Jang",
+ "url": "https://github.com/ailrun"
}
],
"main": "",
@@ -29,6 +37,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
- "typesPublisherContentHash": "330e006ea281292a94373c4130ab318a21efbc6a406e7a4fa2a3ddabe1f72254",
+ "typesPublisherContentHash": "6507972d25d8723e9951af8ca749b3c55e8c50af4563aee432fa3f18144cec54",
"typeScriptVersion": "2.2"
} \ No newline at end of file
diff --git a/node_modules/@types/lodash/pad.d.ts b/node_modules/@types/lodash/pad.d.ts
new file mode 100644
index 000000000..552667ada
--- /dev/null
+++ b/node_modules/@types/lodash/pad.d.ts
@@ -0,0 +1,2 @@
+import { pad } from "./index";
+export = pad;
diff --git a/node_modules/@types/lodash/pad/index.d.ts b/node_modules/@types/lodash/pad/index.d.ts
deleted file mode 100644
index b88bd3081..000000000
--- a/node_modules/@types/lodash/pad/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pad } from "../index";
-export = pad;
diff --git a/node_modules/@types/lodash/padEnd.d.ts b/node_modules/@types/lodash/padEnd.d.ts
new file mode 100644
index 000000000..c81a7b0e1
--- /dev/null
+++ b/node_modules/@types/lodash/padEnd.d.ts
@@ -0,0 +1,2 @@
+import { padEnd } from "./index";
+export = padEnd;
diff --git a/node_modules/@types/lodash/padEnd/index.d.ts b/node_modules/@types/lodash/padEnd/index.d.ts
deleted file mode 100644
index 2d724cb15..000000000
--- a/node_modules/@types/lodash/padEnd/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { padEnd } from "../index";
-export = padEnd;
diff --git a/node_modules/@types/lodash/padStart.d.ts b/node_modules/@types/lodash/padStart.d.ts
new file mode 100644
index 000000000..c119c3584
--- /dev/null
+++ b/node_modules/@types/lodash/padStart.d.ts
@@ -0,0 +1,2 @@
+import { padStart } from "./index";
+export = padStart;
diff --git a/node_modules/@types/lodash/padStart/index.d.ts b/node_modules/@types/lodash/padStart/index.d.ts
deleted file mode 100644
index d6a034661..000000000
--- a/node_modules/@types/lodash/padStart/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { padStart } from "../index";
-export = padStart;
diff --git a/node_modules/@types/lodash/parseInt.d.ts b/node_modules/@types/lodash/parseInt.d.ts
new file mode 100644
index 000000000..de59e7be9
--- /dev/null
+++ b/node_modules/@types/lodash/parseInt.d.ts
@@ -0,0 +1,2 @@
+import { parseInt } from "./index";
+export = parseInt;
diff --git a/node_modules/@types/lodash/parseInt/index.d.ts b/node_modules/@types/lodash/parseInt/index.d.ts
deleted file mode 100644
index 6bb4e4351..000000000
--- a/node_modules/@types/lodash/parseInt/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { parseInt } from "../index";
-export = parseInt;
diff --git a/node_modules/@types/lodash/partial.d.ts b/node_modules/@types/lodash/partial.d.ts
new file mode 100644
index 000000000..d764f6e05
--- /dev/null
+++ b/node_modules/@types/lodash/partial.d.ts
@@ -0,0 +1,2 @@
+import { partial } from "./index";
+export = partial;
diff --git a/node_modules/@types/lodash/partial/index.d.ts b/node_modules/@types/lodash/partial/index.d.ts
deleted file mode 100644
index 82d8fa1c5..000000000
--- a/node_modules/@types/lodash/partial/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { partial } from "../index";
-export = partial;
diff --git a/node_modules/@types/lodash/partialRight.d.ts b/node_modules/@types/lodash/partialRight.d.ts
new file mode 100644
index 000000000..ed60160c6
--- /dev/null
+++ b/node_modules/@types/lodash/partialRight.d.ts
@@ -0,0 +1,2 @@
+import { partialRight } from "./index";
+export = partialRight;
diff --git a/node_modules/@types/lodash/partialRight/index.d.ts b/node_modules/@types/lodash/partialRight/index.d.ts
deleted file mode 100644
index f179fcf0e..000000000
--- a/node_modules/@types/lodash/partialRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { partialRight } from "../index";
-export = partialRight;
diff --git a/node_modules/@types/lodash/partition.d.ts b/node_modules/@types/lodash/partition.d.ts
new file mode 100644
index 000000000..f26ab15a5
--- /dev/null
+++ b/node_modules/@types/lodash/partition.d.ts
@@ -0,0 +1,2 @@
+import { partition } from "./index";
+export = partition;
diff --git a/node_modules/@types/lodash/partition/index.d.ts b/node_modules/@types/lodash/partition/index.d.ts
deleted file mode 100644
index 2acf90341..000000000
--- a/node_modules/@types/lodash/partition/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { partition } from "../index";
-export = partition;
diff --git a/node_modules/@types/lodash/pick.d.ts b/node_modules/@types/lodash/pick.d.ts
new file mode 100644
index 000000000..6d346f8f6
--- /dev/null
+++ b/node_modules/@types/lodash/pick.d.ts
@@ -0,0 +1,2 @@
+import { pick } from "./index";
+export = pick;
diff --git a/node_modules/@types/lodash/pick/index.d.ts b/node_modules/@types/lodash/pick/index.d.ts
deleted file mode 100644
index 9bc4c04e8..000000000
--- a/node_modules/@types/lodash/pick/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pick } from "../index";
-export = pick;
diff --git a/node_modules/@types/lodash/pickBy.d.ts b/node_modules/@types/lodash/pickBy.d.ts
new file mode 100644
index 000000000..5285ead8f
--- /dev/null
+++ b/node_modules/@types/lodash/pickBy.d.ts
@@ -0,0 +1,2 @@
+import { pickBy } from "./index";
+export = pickBy;
diff --git a/node_modules/@types/lodash/pickBy/index.d.ts b/node_modules/@types/lodash/pickBy/index.d.ts
deleted file mode 100644
index d1379dcf0..000000000
--- a/node_modules/@types/lodash/pickBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pickBy } from "../index";
-export = pickBy;
diff --git a/node_modules/@types/lodash/property.d.ts b/node_modules/@types/lodash/property.d.ts
new file mode 100644
index 000000000..3ff96f0e1
--- /dev/null
+++ b/node_modules/@types/lodash/property.d.ts
@@ -0,0 +1,2 @@
+import { property } from "./index";
+export = property;
diff --git a/node_modules/@types/lodash/property/index.d.ts b/node_modules/@types/lodash/property/index.d.ts
deleted file mode 100644
index ac3e073f9..000000000
--- a/node_modules/@types/lodash/property/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { property } from "../index";
-export = property;
diff --git a/node_modules/@types/lodash/propertyOf.d.ts b/node_modules/@types/lodash/propertyOf.d.ts
new file mode 100644
index 000000000..27c628fa9
--- /dev/null
+++ b/node_modules/@types/lodash/propertyOf.d.ts
@@ -0,0 +1,2 @@
+import { propertyOf } from "./index";
+export = propertyOf;
diff --git a/node_modules/@types/lodash/propertyOf/index.d.ts b/node_modules/@types/lodash/propertyOf/index.d.ts
deleted file mode 100644
index c51a58e56..000000000
--- a/node_modules/@types/lodash/propertyOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { propertyOf } from "../index";
-export = propertyOf;
diff --git a/node_modules/@types/lodash/pull.d.ts b/node_modules/@types/lodash/pull.d.ts
new file mode 100644
index 000000000..b496ebde8
--- /dev/null
+++ b/node_modules/@types/lodash/pull.d.ts
@@ -0,0 +1,2 @@
+import { pull } from "./index";
+export = pull;
diff --git a/node_modules/@types/lodash/pull/index.d.ts b/node_modules/@types/lodash/pull/index.d.ts
deleted file mode 100644
index c3857fdba..000000000
--- a/node_modules/@types/lodash/pull/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pull } from "../index";
-export = pull;
diff --git a/node_modules/@types/lodash/pullAll.d.ts b/node_modules/@types/lodash/pullAll.d.ts
new file mode 100644
index 000000000..22c81c48a
--- /dev/null
+++ b/node_modules/@types/lodash/pullAll.d.ts
@@ -0,0 +1,2 @@
+import { pullAll } from "./index";
+export = pullAll;
diff --git a/node_modules/@types/lodash/pullAll/index.d.ts b/node_modules/@types/lodash/pullAll/index.d.ts
deleted file mode 100644
index 5aaad4aa6..000000000
--- a/node_modules/@types/lodash/pullAll/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pullAll } from "../index";
-export = pullAll;
diff --git a/node_modules/@types/lodash/pullAllBy.d.ts b/node_modules/@types/lodash/pullAllBy.d.ts
new file mode 100644
index 000000000..e0629ce99
--- /dev/null
+++ b/node_modules/@types/lodash/pullAllBy.d.ts
@@ -0,0 +1,2 @@
+import { pullAllBy } from "./index";
+export = pullAllBy;
diff --git a/node_modules/@types/lodash/pullAllBy/index.d.ts b/node_modules/@types/lodash/pullAllBy/index.d.ts
deleted file mode 100644
index 453b75436..000000000
--- a/node_modules/@types/lodash/pullAllBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pullAllBy } from "../index";
-export = pullAllBy;
diff --git a/node_modules/@types/lodash/pullAt.d.ts b/node_modules/@types/lodash/pullAt.d.ts
new file mode 100644
index 000000000..47be38253
--- /dev/null
+++ b/node_modules/@types/lodash/pullAt.d.ts
@@ -0,0 +1,2 @@
+import { pullAt } from "./index";
+export = pullAt;
diff --git a/node_modules/@types/lodash/pullAt/index.d.ts b/node_modules/@types/lodash/pullAt/index.d.ts
deleted file mode 100644
index 9e1ef383d..000000000
--- a/node_modules/@types/lodash/pullAt/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { pullAt } from "../index";
-export = pullAt;
diff --git a/node_modules/@types/lodash/random.d.ts b/node_modules/@types/lodash/random.d.ts
new file mode 100644
index 000000000..a68cc2720
--- /dev/null
+++ b/node_modules/@types/lodash/random.d.ts
@@ -0,0 +1,2 @@
+import { random } from "./index";
+export = random;
diff --git a/node_modules/@types/lodash/random/index.d.ts b/node_modules/@types/lodash/random/index.d.ts
deleted file mode 100644
index 91749dca3..000000000
--- a/node_modules/@types/lodash/random/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { random } from "../index";
-export = random;
diff --git a/node_modules/@types/lodash/range.d.ts b/node_modules/@types/lodash/range.d.ts
new file mode 100644
index 000000000..8f737ca5e
--- /dev/null
+++ b/node_modules/@types/lodash/range.d.ts
@@ -0,0 +1,2 @@
+import { range } from "./index";
+export = range;
diff --git a/node_modules/@types/lodash/range/index.d.ts b/node_modules/@types/lodash/range/index.d.ts
deleted file mode 100644
index ee9771f0e..000000000
--- a/node_modules/@types/lodash/range/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { range } from "../index";
-export = range;
diff --git a/node_modules/@types/lodash/rangeRight.d.ts b/node_modules/@types/lodash/rangeRight.d.ts
new file mode 100644
index 000000000..cabd0ed7c
--- /dev/null
+++ b/node_modules/@types/lodash/rangeRight.d.ts
@@ -0,0 +1,2 @@
+import { rangeRight } from "./index";
+export = rangeRight;
diff --git a/node_modules/@types/lodash/rangeRight/index.d.ts b/node_modules/@types/lodash/rangeRight/index.d.ts
deleted file mode 100644
index 19ab5f2c1..000000000
--- a/node_modules/@types/lodash/rangeRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { rangeRight } from "../index";
-export = rangeRight;
diff --git a/node_modules/@types/lodash/rearg.d.ts b/node_modules/@types/lodash/rearg.d.ts
new file mode 100644
index 000000000..7684e867b
--- /dev/null
+++ b/node_modules/@types/lodash/rearg.d.ts
@@ -0,0 +1,2 @@
+import { rearg } from "./index";
+export = rearg;
diff --git a/node_modules/@types/lodash/rearg/index.d.ts b/node_modules/@types/lodash/rearg/index.d.ts
deleted file mode 100644
index 2b7c3a668..000000000
--- a/node_modules/@types/lodash/rearg/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { rearg } from "../index";
-export = rearg;
diff --git a/node_modules/@types/lodash/reduce.d.ts b/node_modules/@types/lodash/reduce.d.ts
new file mode 100644
index 000000000..4765fcd90
--- /dev/null
+++ b/node_modules/@types/lodash/reduce.d.ts
@@ -0,0 +1,2 @@
+import { reduce } from "./index";
+export = reduce;
diff --git a/node_modules/@types/lodash/reduce/index.d.ts b/node_modules/@types/lodash/reduce/index.d.ts
deleted file mode 100644
index 55ebf6aaf..000000000
--- a/node_modules/@types/lodash/reduce/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { reduce } from "../index";
-export = reduce;
diff --git a/node_modules/@types/lodash/reduceRight.d.ts b/node_modules/@types/lodash/reduceRight.d.ts
new file mode 100644
index 000000000..1cfdb5f80
--- /dev/null
+++ b/node_modules/@types/lodash/reduceRight.d.ts
@@ -0,0 +1,2 @@
+import { reduceRight } from "./index";
+export = reduceRight;
diff --git a/node_modules/@types/lodash/reduceRight/index.d.ts b/node_modules/@types/lodash/reduceRight/index.d.ts
deleted file mode 100644
index fd84212e4..000000000
--- a/node_modules/@types/lodash/reduceRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { reduceRight } from "../index";
-export = reduceRight;
diff --git a/node_modules/@types/lodash/reject.d.ts b/node_modules/@types/lodash/reject.d.ts
new file mode 100644
index 000000000..aabc14131
--- /dev/null
+++ b/node_modules/@types/lodash/reject.d.ts
@@ -0,0 +1,2 @@
+import { reject } from "./index";
+export = reject;
diff --git a/node_modules/@types/lodash/reject/index.d.ts b/node_modules/@types/lodash/reject/index.d.ts
deleted file mode 100644
index d1e9fbe30..000000000
--- a/node_modules/@types/lodash/reject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { reject } from "../index";
-export = reject;
diff --git a/node_modules/@types/lodash/remove.d.ts b/node_modules/@types/lodash/remove.d.ts
new file mode 100644
index 000000000..dca471886
--- /dev/null
+++ b/node_modules/@types/lodash/remove.d.ts
@@ -0,0 +1,2 @@
+import { remove } from "./index";
+export = remove;
diff --git a/node_modules/@types/lodash/remove/index.d.ts b/node_modules/@types/lodash/remove/index.d.ts
deleted file mode 100644
index e8295f122..000000000
--- a/node_modules/@types/lodash/remove/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { remove } from "../index";
-export = remove;
diff --git a/node_modules/@types/lodash/repeat.d.ts b/node_modules/@types/lodash/repeat.d.ts
new file mode 100644
index 000000000..ca3c7fcb2
--- /dev/null
+++ b/node_modules/@types/lodash/repeat.d.ts
@@ -0,0 +1,2 @@
+import { repeat } from "./index";
+export = repeat;
diff --git a/node_modules/@types/lodash/repeat/index.d.ts b/node_modules/@types/lodash/repeat/index.d.ts
deleted file mode 100644
index f7ab896e8..000000000
--- a/node_modules/@types/lodash/repeat/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { repeat } from "../index";
-export = repeat;
diff --git a/node_modules/@types/lodash/replace.d.ts b/node_modules/@types/lodash/replace.d.ts
new file mode 100644
index 000000000..701541126
--- /dev/null
+++ b/node_modules/@types/lodash/replace.d.ts
@@ -0,0 +1,2 @@
+import { replace } from "./index";
+export = replace;
diff --git a/node_modules/@types/lodash/replace/index.d.ts b/node_modules/@types/lodash/replace/index.d.ts
deleted file mode 100644
index 20885bf1b..000000000
--- a/node_modules/@types/lodash/replace/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { replace } from "../index";
-export = replace;
diff --git a/node_modules/@types/lodash/rest.d.ts b/node_modules/@types/lodash/rest.d.ts
new file mode 100644
index 000000000..433a4fde7
--- /dev/null
+++ b/node_modules/@types/lodash/rest.d.ts
@@ -0,0 +1,2 @@
+import { rest } from "./index";
+export = rest;
diff --git a/node_modules/@types/lodash/rest/index.d.ts b/node_modules/@types/lodash/rest/index.d.ts
deleted file mode 100644
index b02143782..000000000
--- a/node_modules/@types/lodash/rest/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { rest } from "../index";
-export = rest;
diff --git a/node_modules/@types/lodash/result.d.ts b/node_modules/@types/lodash/result.d.ts
new file mode 100644
index 000000000..65786428e
--- /dev/null
+++ b/node_modules/@types/lodash/result.d.ts
@@ -0,0 +1,2 @@
+import { result } from "./index";
+export = result;
diff --git a/node_modules/@types/lodash/result/index.d.ts b/node_modules/@types/lodash/result/index.d.ts
deleted file mode 100644
index 1fc8574d0..000000000
--- a/node_modules/@types/lodash/result/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { result } from "../index";
-export = result;
diff --git a/node_modules/@types/lodash/reverse.d.ts b/node_modules/@types/lodash/reverse.d.ts
new file mode 100644
index 000000000..ecef17389
--- /dev/null
+++ b/node_modules/@types/lodash/reverse.d.ts
@@ -0,0 +1,2 @@
+import { reverse } from "./index";
+export = reverse;
diff --git a/node_modules/@types/lodash/reverse/index.d.ts b/node_modules/@types/lodash/reverse/index.d.ts
deleted file mode 100644
index c19bb69a4..000000000
--- a/node_modules/@types/lodash/reverse/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { reverse } from "../index";
-export = reverse;
diff --git a/node_modules/@types/lodash/round.d.ts b/node_modules/@types/lodash/round.d.ts
new file mode 100644
index 000000000..ed2c17926
--- /dev/null
+++ b/node_modules/@types/lodash/round.d.ts
@@ -0,0 +1,2 @@
+import { round } from "./index";
+export = round;
diff --git a/node_modules/@types/lodash/round/index.d.ts b/node_modules/@types/lodash/round/index.d.ts
deleted file mode 100644
index b168cf6f5..000000000
--- a/node_modules/@types/lodash/round/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { round } from "../index";
-export = round;
diff --git a/node_modules/@types/lodash/runInContext.d.ts b/node_modules/@types/lodash/runInContext.d.ts
new file mode 100644
index 000000000..9ee01f324
--- /dev/null
+++ b/node_modules/@types/lodash/runInContext.d.ts
@@ -0,0 +1,2 @@
+import { runInContext } from "./index";
+export = runInContext;
diff --git a/node_modules/@types/lodash/runInContext/index.d.ts b/node_modules/@types/lodash/runInContext/index.d.ts
deleted file mode 100644
index 8d06f03dd..000000000
--- a/node_modules/@types/lodash/runInContext/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { runInContext } from "../index";
-export = runInContext;
diff --git a/node_modules/@types/lodash/sample.d.ts b/node_modules/@types/lodash/sample.d.ts
new file mode 100644
index 000000000..c22517869
--- /dev/null
+++ b/node_modules/@types/lodash/sample.d.ts
@@ -0,0 +1,2 @@
+import { sample } from "./index";
+export = sample;
diff --git a/node_modules/@types/lodash/sample/index.d.ts b/node_modules/@types/lodash/sample/index.d.ts
deleted file mode 100644
index 1a125755a..000000000
--- a/node_modules/@types/lodash/sample/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sample } from "../index";
-export = sample;
diff --git a/node_modules/@types/lodash/sampleSize.d.ts b/node_modules/@types/lodash/sampleSize.d.ts
new file mode 100644
index 000000000..0f1ed89ee
--- /dev/null
+++ b/node_modules/@types/lodash/sampleSize.d.ts
@@ -0,0 +1,2 @@
+import { sampleSize } from "./index";
+export = sampleSize;
diff --git a/node_modules/@types/lodash/sampleSize/index.d.ts b/node_modules/@types/lodash/sampleSize/index.d.ts
deleted file mode 100644
index 26486483a..000000000
--- a/node_modules/@types/lodash/sampleSize/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sampleSize } from "../index";
-export = sampleSize;
diff --git a/node_modules/@types/lodash/set.d.ts b/node_modules/@types/lodash/set.d.ts
new file mode 100644
index 000000000..09d0c2470
--- /dev/null
+++ b/node_modules/@types/lodash/set.d.ts
@@ -0,0 +1,2 @@
+import { set } from "./index";
+export = set;
diff --git a/node_modules/@types/lodash/set/index.d.ts b/node_modules/@types/lodash/set/index.d.ts
deleted file mode 100644
index d9f281de8..000000000
--- a/node_modules/@types/lodash/set/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { set } from "../index";
-export = set;
diff --git a/node_modules/@types/lodash/setWith.d.ts b/node_modules/@types/lodash/setWith.d.ts
new file mode 100644
index 000000000..d4e319a05
--- /dev/null
+++ b/node_modules/@types/lodash/setWith.d.ts
@@ -0,0 +1,2 @@
+import { setWith } from "./index";
+export = setWith;
diff --git a/node_modules/@types/lodash/setWith/index.d.ts b/node_modules/@types/lodash/setWith/index.d.ts
deleted file mode 100644
index 0f4a80cc0..000000000
--- a/node_modules/@types/lodash/setWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { setWith } from "../index";
-export = setWith;
diff --git a/node_modules/@types/lodash/shuffle.d.ts b/node_modules/@types/lodash/shuffle.d.ts
new file mode 100644
index 000000000..ff96f884b
--- /dev/null
+++ b/node_modules/@types/lodash/shuffle.d.ts
@@ -0,0 +1,2 @@
+import { shuffle } from "./index";
+export = shuffle;
diff --git a/node_modules/@types/lodash/shuffle/index.d.ts b/node_modules/@types/lodash/shuffle/index.d.ts
deleted file mode 100644
index 579d229e8..000000000
--- a/node_modules/@types/lodash/shuffle/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { shuffle } from "../index";
-export = shuffle;
diff --git a/node_modules/@types/lodash/size.d.ts b/node_modules/@types/lodash/size.d.ts
new file mode 100644
index 000000000..13d492f39
--- /dev/null
+++ b/node_modules/@types/lodash/size.d.ts
@@ -0,0 +1,2 @@
+import { size } from "./index";
+export = size;
diff --git a/node_modules/@types/lodash/size/index.d.ts b/node_modules/@types/lodash/size/index.d.ts
deleted file mode 100644
index 57f317248..000000000
--- a/node_modules/@types/lodash/size/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { size } from "../index";
-export = size;
diff --git a/node_modules/@types/lodash/slice.d.ts b/node_modules/@types/lodash/slice.d.ts
new file mode 100644
index 000000000..311d2fa5d
--- /dev/null
+++ b/node_modules/@types/lodash/slice.d.ts
@@ -0,0 +1,2 @@
+import { slice } from "./index";
+export = slice;
diff --git a/node_modules/@types/lodash/slice/index.d.ts b/node_modules/@types/lodash/slice/index.d.ts
deleted file mode 100644
index a8be7b3fd..000000000
--- a/node_modules/@types/lodash/slice/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { slice } from "../index";
-export = slice;
diff --git a/node_modules/@types/lodash/snakeCase.d.ts b/node_modules/@types/lodash/snakeCase.d.ts
new file mode 100644
index 000000000..8245a7da1
--- /dev/null
+++ b/node_modules/@types/lodash/snakeCase.d.ts
@@ -0,0 +1,2 @@
+import { snakeCase } from "./index";
+export = snakeCase;
diff --git a/node_modules/@types/lodash/snakeCase/index.d.ts b/node_modules/@types/lodash/snakeCase/index.d.ts
deleted file mode 100644
index 073df478a..000000000
--- a/node_modules/@types/lodash/snakeCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { snakeCase } from "../index";
-export = snakeCase;
diff --git a/node_modules/@types/lodash/some.d.ts b/node_modules/@types/lodash/some.d.ts
new file mode 100644
index 000000000..90ef478bb
--- /dev/null
+++ b/node_modules/@types/lodash/some.d.ts
@@ -0,0 +1,2 @@
+import { some } from "./index";
+export = some;
diff --git a/node_modules/@types/lodash/some/index.d.ts b/node_modules/@types/lodash/some/index.d.ts
deleted file mode 100644
index f7282ed7c..000000000
--- a/node_modules/@types/lodash/some/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { some } from "../index";
-export = some;
diff --git a/node_modules/@types/lodash/sortBy.d.ts b/node_modules/@types/lodash/sortBy.d.ts
new file mode 100644
index 000000000..5f3d4f2a7
--- /dev/null
+++ b/node_modules/@types/lodash/sortBy.d.ts
@@ -0,0 +1,2 @@
+import { sortBy } from "./index";
+export = sortBy;
diff --git a/node_modules/@types/lodash/sortBy/index.d.ts b/node_modules/@types/lodash/sortBy/index.d.ts
deleted file mode 100644
index 3d449b4bc..000000000
--- a/node_modules/@types/lodash/sortBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortBy } from "../index";
-export = sortBy;
diff --git a/node_modules/@types/lodash/sortedIndex.d.ts b/node_modules/@types/lodash/sortedIndex.d.ts
new file mode 100644
index 000000000..c9c79114d
--- /dev/null
+++ b/node_modules/@types/lodash/sortedIndex.d.ts
@@ -0,0 +1,2 @@
+import { sortedIndex } from "./index";
+export = sortedIndex;
diff --git a/node_modules/@types/lodash/sortedIndex/index.d.ts b/node_modules/@types/lodash/sortedIndex/index.d.ts
deleted file mode 100644
index b5802e9aa..000000000
--- a/node_modules/@types/lodash/sortedIndex/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedIndex } from "../index";
-export = sortedIndex;
diff --git a/node_modules/@types/lodash/sortedIndexBy.d.ts b/node_modules/@types/lodash/sortedIndexBy.d.ts
new file mode 100644
index 000000000..fdbedac57
--- /dev/null
+++ b/node_modules/@types/lodash/sortedIndexBy.d.ts
@@ -0,0 +1,2 @@
+import { sortedIndexBy } from "./index";
+export = sortedIndexBy;
diff --git a/node_modules/@types/lodash/sortedIndexBy/index.d.ts b/node_modules/@types/lodash/sortedIndexBy/index.d.ts
deleted file mode 100644
index fa41e8240..000000000
--- a/node_modules/@types/lodash/sortedIndexBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedIndexBy } from "../index";
-export = sortedIndexBy;
diff --git a/node_modules/@types/lodash/sortedIndexOf.d.ts b/node_modules/@types/lodash/sortedIndexOf.d.ts
new file mode 100644
index 000000000..a076c4a40
--- /dev/null
+++ b/node_modules/@types/lodash/sortedIndexOf.d.ts
@@ -0,0 +1,2 @@
+import { sortedIndexOf } from "./index";
+export = sortedIndexOf;
diff --git a/node_modules/@types/lodash/sortedIndexOf/index.d.ts b/node_modules/@types/lodash/sortedIndexOf/index.d.ts
deleted file mode 100644
index 434a392ba..000000000
--- a/node_modules/@types/lodash/sortedIndexOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedIndexOf } from "../index";
-export = sortedIndexOf;
diff --git a/node_modules/@types/lodash/sortedLastIndex.d.ts b/node_modules/@types/lodash/sortedLastIndex.d.ts
new file mode 100644
index 000000000..808c2c0ff
--- /dev/null
+++ b/node_modules/@types/lodash/sortedLastIndex.d.ts
@@ -0,0 +1,2 @@
+import { sortedLastIndex } from "./index";
+export = sortedLastIndex;
diff --git a/node_modules/@types/lodash/sortedLastIndex/index.d.ts b/node_modules/@types/lodash/sortedLastIndex/index.d.ts
deleted file mode 100644
index b35457173..000000000
--- a/node_modules/@types/lodash/sortedLastIndex/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedLastIndex } from "../index";
-export = sortedLastIndex;
diff --git a/node_modules/@types/lodash/sortedLastIndexBy.d.ts b/node_modules/@types/lodash/sortedLastIndexBy.d.ts
new file mode 100644
index 000000000..9f23b9b83
--- /dev/null
+++ b/node_modules/@types/lodash/sortedLastIndexBy.d.ts
@@ -0,0 +1,2 @@
+import { sortedLastIndexBy } from "./index";
+export = sortedLastIndexBy;
diff --git a/node_modules/@types/lodash/sortedLastIndexBy/index.d.ts b/node_modules/@types/lodash/sortedLastIndexBy/index.d.ts
deleted file mode 100644
index 1c286c3e4..000000000
--- a/node_modules/@types/lodash/sortedLastIndexBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedLastIndexBy } from "../index";
-export = sortedLastIndexBy;
diff --git a/node_modules/@types/lodash/sortedLastIndexOf.d.ts b/node_modules/@types/lodash/sortedLastIndexOf.d.ts
new file mode 100644
index 000000000..abdeba024
--- /dev/null
+++ b/node_modules/@types/lodash/sortedLastIndexOf.d.ts
@@ -0,0 +1,2 @@
+import { sortedLastIndexOf } from "./index";
+export = sortedLastIndexOf;
diff --git a/node_modules/@types/lodash/sortedLastIndexOf/index.d.ts b/node_modules/@types/lodash/sortedLastIndexOf/index.d.ts
deleted file mode 100644
index c8c3d184c..000000000
--- a/node_modules/@types/lodash/sortedLastIndexOf/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedLastIndexOf } from "../index";
-export = sortedLastIndexOf;
diff --git a/node_modules/@types/lodash/sortedUniq.d.ts b/node_modules/@types/lodash/sortedUniq.d.ts
new file mode 100644
index 000000000..257d35aea
--- /dev/null
+++ b/node_modules/@types/lodash/sortedUniq.d.ts
@@ -0,0 +1,2 @@
+import { sortedUniq } from "./index";
+export = sortedUniq;
diff --git a/node_modules/@types/lodash/sortedUniq/index.d.ts b/node_modules/@types/lodash/sortedUniq/index.d.ts
deleted file mode 100644
index 15f5dedc6..000000000
--- a/node_modules/@types/lodash/sortedUniq/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedUniq } from "../index";
-export = sortedUniq;
diff --git a/node_modules/@types/lodash/sortedUniqBy.d.ts b/node_modules/@types/lodash/sortedUniqBy.d.ts
new file mode 100644
index 000000000..316156ec2
--- /dev/null
+++ b/node_modules/@types/lodash/sortedUniqBy.d.ts
@@ -0,0 +1,2 @@
+import { sortedUniqBy } from "./index";
+export = sortedUniqBy;
diff --git a/node_modules/@types/lodash/sortedUniqBy/index.d.ts b/node_modules/@types/lodash/sortedUniqBy/index.d.ts
deleted file mode 100644
index 813e65f96..000000000
--- a/node_modules/@types/lodash/sortedUniqBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sortedUniqBy } from "../index";
-export = sortedUniqBy;
diff --git a/node_modules/@types/lodash/split.d.ts b/node_modules/@types/lodash/split.d.ts
new file mode 100644
index 000000000..8879eb004
--- /dev/null
+++ b/node_modules/@types/lodash/split.d.ts
@@ -0,0 +1,2 @@
+import { split } from "./index";
+export = split;
diff --git a/node_modules/@types/lodash/split/index.d.ts b/node_modules/@types/lodash/split/index.d.ts
deleted file mode 100644
index b114f6cc2..000000000
--- a/node_modules/@types/lodash/split/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { split } from "../index";
-export = split;
diff --git a/node_modules/@types/lodash/spread.d.ts b/node_modules/@types/lodash/spread.d.ts
new file mode 100644
index 000000000..4f816b2ab
--- /dev/null
+++ b/node_modules/@types/lodash/spread.d.ts
@@ -0,0 +1,2 @@
+import { spread } from "./index";
+export = spread;
diff --git a/node_modules/@types/lodash/spread/index.d.ts b/node_modules/@types/lodash/spread/index.d.ts
deleted file mode 100644
index ad6f84c75..000000000
--- a/node_modules/@types/lodash/spread/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { spread } from "../index";
-export = spread;
diff --git a/node_modules/@types/lodash/startCase.d.ts b/node_modules/@types/lodash/startCase.d.ts
new file mode 100644
index 000000000..c201a11c6
--- /dev/null
+++ b/node_modules/@types/lodash/startCase.d.ts
@@ -0,0 +1,2 @@
+import { startCase } from "./index";
+export = startCase;
diff --git a/node_modules/@types/lodash/startCase/index.d.ts b/node_modules/@types/lodash/startCase/index.d.ts
deleted file mode 100644
index a7e5046d3..000000000
--- a/node_modules/@types/lodash/startCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { startCase } from "../index";
-export = startCase;
diff --git a/node_modules/@types/lodash/startsWith.d.ts b/node_modules/@types/lodash/startsWith.d.ts
new file mode 100644
index 000000000..a18b54f58
--- /dev/null
+++ b/node_modules/@types/lodash/startsWith.d.ts
@@ -0,0 +1,2 @@
+import { startsWith } from "./index";
+export = startsWith;
diff --git a/node_modules/@types/lodash/startsWith/index.d.ts b/node_modules/@types/lodash/startsWith/index.d.ts
deleted file mode 100644
index 7038876aa..000000000
--- a/node_modules/@types/lodash/startsWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { startsWith } from "../index";
-export = startsWith;
diff --git a/node_modules/@types/lodash/subtract.d.ts b/node_modules/@types/lodash/subtract.d.ts
new file mode 100644
index 000000000..6502fe2f4
--- /dev/null
+++ b/node_modules/@types/lodash/subtract.d.ts
@@ -0,0 +1,2 @@
+import { subtract } from "./index";
+export = subtract;
diff --git a/node_modules/@types/lodash/subtract/index.d.ts b/node_modules/@types/lodash/subtract/index.d.ts
deleted file mode 100644
index 3337e5578..000000000
--- a/node_modules/@types/lodash/subtract/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { subtract } from "../index";
-export = subtract;
diff --git a/node_modules/@types/lodash/sum.d.ts b/node_modules/@types/lodash/sum.d.ts
new file mode 100644
index 000000000..4e01cb4aa
--- /dev/null
+++ b/node_modules/@types/lodash/sum.d.ts
@@ -0,0 +1,2 @@
+import { sum } from "./index";
+export = sum;
diff --git a/node_modules/@types/lodash/sum/index.d.ts b/node_modules/@types/lodash/sum/index.d.ts
deleted file mode 100644
index ed570384a..000000000
--- a/node_modules/@types/lodash/sum/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sum } from "../index";
-export = sum;
diff --git a/node_modules/@types/lodash/sumBy.d.ts b/node_modules/@types/lodash/sumBy.d.ts
new file mode 100644
index 000000000..92c4342aa
--- /dev/null
+++ b/node_modules/@types/lodash/sumBy.d.ts
@@ -0,0 +1,2 @@
+import { sumBy } from "./index";
+export = sumBy;
diff --git a/node_modules/@types/lodash/sumBy/index.d.ts b/node_modules/@types/lodash/sumBy/index.d.ts
deleted file mode 100644
index b2d9b76fb..000000000
--- a/node_modules/@types/lodash/sumBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { sumBy } from "../index";
-export = sumBy;
diff --git a/node_modules/@types/lodash/tail.d.ts b/node_modules/@types/lodash/tail.d.ts
new file mode 100644
index 000000000..2d80b444b
--- /dev/null
+++ b/node_modules/@types/lodash/tail.d.ts
@@ -0,0 +1,2 @@
+import { tail } from "./index";
+export = tail;
diff --git a/node_modules/@types/lodash/tail/index.d.ts b/node_modules/@types/lodash/tail/index.d.ts
deleted file mode 100644
index e30d6311a..000000000
--- a/node_modules/@types/lodash/tail/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { tail } from "../index";
-export = tail;
diff --git a/node_modules/@types/lodash/take.d.ts b/node_modules/@types/lodash/take.d.ts
new file mode 100644
index 000000000..be9912245
--- /dev/null
+++ b/node_modules/@types/lodash/take.d.ts
@@ -0,0 +1,2 @@
+import { take } from "./index";
+export = take;
diff --git a/node_modules/@types/lodash/take/index.d.ts b/node_modules/@types/lodash/take/index.d.ts
deleted file mode 100644
index 2dcbd034c..000000000
--- a/node_modules/@types/lodash/take/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { take } from "../index";
-export = take;
diff --git a/node_modules/@types/lodash/takeRight.d.ts b/node_modules/@types/lodash/takeRight.d.ts
new file mode 100644
index 000000000..9d7886647
--- /dev/null
+++ b/node_modules/@types/lodash/takeRight.d.ts
@@ -0,0 +1,2 @@
+import { takeRight } from "./index";
+export = takeRight;
diff --git a/node_modules/@types/lodash/takeRight/index.d.ts b/node_modules/@types/lodash/takeRight/index.d.ts
deleted file mode 100644
index 0db5cee21..000000000
--- a/node_modules/@types/lodash/takeRight/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { takeRight } from "../index";
-export = takeRight;
diff --git a/node_modules/@types/lodash/takeRightWhile.d.ts b/node_modules/@types/lodash/takeRightWhile.d.ts
new file mode 100644
index 000000000..3b293de7a
--- /dev/null
+++ b/node_modules/@types/lodash/takeRightWhile.d.ts
@@ -0,0 +1,2 @@
+import { takeRightWhile } from "./index";
+export = takeRightWhile;
diff --git a/node_modules/@types/lodash/takeRightWhile/index.d.ts b/node_modules/@types/lodash/takeRightWhile/index.d.ts
deleted file mode 100644
index 3c2e6c3cd..000000000
--- a/node_modules/@types/lodash/takeRightWhile/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { takeRightWhile } from "../index";
-export = takeRightWhile;
diff --git a/node_modules/@types/lodash/takeWhile.d.ts b/node_modules/@types/lodash/takeWhile.d.ts
new file mode 100644
index 000000000..088234a8a
--- /dev/null
+++ b/node_modules/@types/lodash/takeWhile.d.ts
@@ -0,0 +1,2 @@
+import { takeWhile } from "./index";
+export = takeWhile;
diff --git a/node_modules/@types/lodash/takeWhile/index.d.ts b/node_modules/@types/lodash/takeWhile/index.d.ts
deleted file mode 100644
index 2adadfe33..000000000
--- a/node_modules/@types/lodash/takeWhile/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { takeWhile } from "../index";
-export = takeWhile;
diff --git a/node_modules/@types/lodash/tap.d.ts b/node_modules/@types/lodash/tap.d.ts
new file mode 100644
index 000000000..e15a13cf4
--- /dev/null
+++ b/node_modules/@types/lodash/tap.d.ts
@@ -0,0 +1,2 @@
+import { tap } from "./index";
+export = tap;
diff --git a/node_modules/@types/lodash/tap/index.d.ts b/node_modules/@types/lodash/tap/index.d.ts
deleted file mode 100644
index 44806b4b4..000000000
--- a/node_modules/@types/lodash/tap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { tap } from "../index";
-export = tap;
diff --git a/node_modules/@types/lodash/template.d.ts b/node_modules/@types/lodash/template.d.ts
new file mode 100644
index 000000000..854e7539b
--- /dev/null
+++ b/node_modules/@types/lodash/template.d.ts
@@ -0,0 +1,2 @@
+import { template } from "./index";
+export = template;
diff --git a/node_modules/@types/lodash/template/index.d.ts b/node_modules/@types/lodash/template/index.d.ts
deleted file mode 100644
index ddd2eae5b..000000000
--- a/node_modules/@types/lodash/template/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { template } from "../index";
-export = template;
diff --git a/node_modules/@types/lodash/throttle.d.ts b/node_modules/@types/lodash/throttle.d.ts
new file mode 100644
index 000000000..2650896a0
--- /dev/null
+++ b/node_modules/@types/lodash/throttle.d.ts
@@ -0,0 +1,2 @@
+import { throttle } from "./index";
+export = throttle;
diff --git a/node_modules/@types/lodash/throttle/index.d.ts b/node_modules/@types/lodash/throttle/index.d.ts
deleted file mode 100644
index b1037b984..000000000
--- a/node_modules/@types/lodash/throttle/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { throttle } from "../index";
-export = throttle;
diff --git a/node_modules/@types/lodash/thru.d.ts b/node_modules/@types/lodash/thru.d.ts
new file mode 100644
index 000000000..0447e1271
--- /dev/null
+++ b/node_modules/@types/lodash/thru.d.ts
@@ -0,0 +1,2 @@
+import { thru } from "./index";
+export = thru;
diff --git a/node_modules/@types/lodash/thru/index.d.ts b/node_modules/@types/lodash/thru/index.d.ts
deleted file mode 100644
index 6ce7fcee0..000000000
--- a/node_modules/@types/lodash/thru/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { thru } from "../index";
-export = thru;
diff --git a/node_modules/@types/lodash/times.d.ts b/node_modules/@types/lodash/times.d.ts
new file mode 100644
index 000000000..7fda4de03
--- /dev/null
+++ b/node_modules/@types/lodash/times.d.ts
@@ -0,0 +1,2 @@
+import { times } from "./index";
+export = times;
diff --git a/node_modules/@types/lodash/times/index.d.ts b/node_modules/@types/lodash/times/index.d.ts
deleted file mode 100644
index 0dbc4ba3d..000000000
--- a/node_modules/@types/lodash/times/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { times } from "../index";
-export = times;
diff --git a/node_modules/@types/lodash/toArray.d.ts b/node_modules/@types/lodash/toArray.d.ts
new file mode 100644
index 000000000..dd94c8a96
--- /dev/null
+++ b/node_modules/@types/lodash/toArray.d.ts
@@ -0,0 +1,2 @@
+import { toArray } from "./index";
+export = toArray;
diff --git a/node_modules/@types/lodash/toArray/index.d.ts b/node_modules/@types/lodash/toArray/index.d.ts
deleted file mode 100644
index 0692c793f..000000000
--- a/node_modules/@types/lodash/toArray/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toArray } from "../index";
-export = toArray;
diff --git a/node_modules/@types/lodash/toInteger.d.ts b/node_modules/@types/lodash/toInteger.d.ts
new file mode 100644
index 000000000..021a9c089
--- /dev/null
+++ b/node_modules/@types/lodash/toInteger.d.ts
@@ -0,0 +1,2 @@
+import { toInteger } from "./index";
+export = toInteger;
diff --git a/node_modules/@types/lodash/toInteger/index.d.ts b/node_modules/@types/lodash/toInteger/index.d.ts
deleted file mode 100644
index 2259d05e0..000000000
--- a/node_modules/@types/lodash/toInteger/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toInteger } from "../index";
-export = toInteger;
diff --git a/node_modules/@types/lodash/toLength.d.ts b/node_modules/@types/lodash/toLength.d.ts
new file mode 100644
index 000000000..41a4098c2
--- /dev/null
+++ b/node_modules/@types/lodash/toLength.d.ts
@@ -0,0 +1,2 @@
+import { toLength } from "./index";
+export = toLength;
diff --git a/node_modules/@types/lodash/toLength/index.d.ts b/node_modules/@types/lodash/toLength/index.d.ts
deleted file mode 100644
index a9cb21cae..000000000
--- a/node_modules/@types/lodash/toLength/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toLength } from "../index";
-export = toLength;
diff --git a/node_modules/@types/lodash/toLower.d.ts b/node_modules/@types/lodash/toLower.d.ts
new file mode 100644
index 000000000..766c173ee
--- /dev/null
+++ b/node_modules/@types/lodash/toLower.d.ts
@@ -0,0 +1,2 @@
+import { toLower } from "./index";
+export = toLower;
diff --git a/node_modules/@types/lodash/toLower/index.d.ts b/node_modules/@types/lodash/toLower/index.d.ts
deleted file mode 100644
index 04c92f973..000000000
--- a/node_modules/@types/lodash/toLower/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toLower } from "../index";
-export = toLower;
diff --git a/node_modules/@types/lodash/toNumber.d.ts b/node_modules/@types/lodash/toNumber.d.ts
new file mode 100644
index 000000000..a6c5e1fc0
--- /dev/null
+++ b/node_modules/@types/lodash/toNumber.d.ts
@@ -0,0 +1,2 @@
+import { toNumber } from "./index";
+export = toNumber;
diff --git a/node_modules/@types/lodash/toNumber/index.d.ts b/node_modules/@types/lodash/toNumber/index.d.ts
deleted file mode 100644
index 5d96f8936..000000000
--- a/node_modules/@types/lodash/toNumber/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toNumber } from "../index";
-export = toNumber;
diff --git a/node_modules/@types/lodash/toPairs.d.ts b/node_modules/@types/lodash/toPairs.d.ts
new file mode 100644
index 000000000..4a7846ed2
--- /dev/null
+++ b/node_modules/@types/lodash/toPairs.d.ts
@@ -0,0 +1,2 @@
+import { toPairs } from "./index";
+export = toPairs;
diff --git a/node_modules/@types/lodash/toPairs/index.d.ts b/node_modules/@types/lodash/toPairs/index.d.ts
deleted file mode 100644
index bee6a0f28..000000000
--- a/node_modules/@types/lodash/toPairs/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toPairs } from "../index";
-export = toPairs;
diff --git a/node_modules/@types/lodash/toPairsIn.d.ts b/node_modules/@types/lodash/toPairsIn.d.ts
new file mode 100644
index 000000000..82d71b3f4
--- /dev/null
+++ b/node_modules/@types/lodash/toPairsIn.d.ts
@@ -0,0 +1,2 @@
+import { toPairsIn } from "./index";
+export = toPairsIn;
diff --git a/node_modules/@types/lodash/toPairsIn/index.d.ts b/node_modules/@types/lodash/toPairsIn/index.d.ts
deleted file mode 100644
index 18c574c53..000000000
--- a/node_modules/@types/lodash/toPairsIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toPairsIn } from "../index";
-export = toPairsIn;
diff --git a/node_modules/@types/lodash/toPath.d.ts b/node_modules/@types/lodash/toPath.d.ts
new file mode 100644
index 000000000..ff354e5d3
--- /dev/null
+++ b/node_modules/@types/lodash/toPath.d.ts
@@ -0,0 +1,2 @@
+import { toPath } from "./index";
+export = toPath;
diff --git a/node_modules/@types/lodash/toPath/index.d.ts b/node_modules/@types/lodash/toPath/index.d.ts
deleted file mode 100644
index 4192b955a..000000000
--- a/node_modules/@types/lodash/toPath/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toPath } from "../index";
-export = toPath;
diff --git a/node_modules/@types/lodash/toPlainObject.d.ts b/node_modules/@types/lodash/toPlainObject.d.ts
new file mode 100644
index 000000000..0561ab6cd
--- /dev/null
+++ b/node_modules/@types/lodash/toPlainObject.d.ts
@@ -0,0 +1,2 @@
+import { toPlainObject } from "./index";
+export = toPlainObject;
diff --git a/node_modules/@types/lodash/toPlainObject/index.d.ts b/node_modules/@types/lodash/toPlainObject/index.d.ts
deleted file mode 100644
index 80a7bf3ac..000000000
--- a/node_modules/@types/lodash/toPlainObject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toPlainObject } from "../index";
-export = toPlainObject;
diff --git a/node_modules/@types/lodash/toSafeInteger.d.ts b/node_modules/@types/lodash/toSafeInteger.d.ts
new file mode 100644
index 000000000..6bb24d895
--- /dev/null
+++ b/node_modules/@types/lodash/toSafeInteger.d.ts
@@ -0,0 +1,2 @@
+import { toSafeInteger } from "./index";
+export = toSafeInteger;
diff --git a/node_modules/@types/lodash/toSafeInteger/index.d.ts b/node_modules/@types/lodash/toSafeInteger/index.d.ts
deleted file mode 100644
index 0d2c93afe..000000000
--- a/node_modules/@types/lodash/toSafeInteger/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toSafeInteger } from "../index";
-export = toSafeInteger;
diff --git a/node_modules/@types/lodash/toString.d.ts b/node_modules/@types/lodash/toString.d.ts
new file mode 100644
index 000000000..7765d108a
--- /dev/null
+++ b/node_modules/@types/lodash/toString.d.ts
@@ -0,0 +1,2 @@
+import { toString } from "./index";
+export = toString;
diff --git a/node_modules/@types/lodash/toString/index.d.ts b/node_modules/@types/lodash/toString/index.d.ts
deleted file mode 100644
index aaaeb305f..000000000
--- a/node_modules/@types/lodash/toString/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toString } from "../index";
-export = toString;
diff --git a/node_modules/@types/lodash/toUpper.d.ts b/node_modules/@types/lodash/toUpper.d.ts
new file mode 100644
index 000000000..af4304122
--- /dev/null
+++ b/node_modules/@types/lodash/toUpper.d.ts
@@ -0,0 +1,2 @@
+import { toUpper } from "./index";
+export = toUpper;
diff --git a/node_modules/@types/lodash/toUpper/index.d.ts b/node_modules/@types/lodash/toUpper/index.d.ts
deleted file mode 100644
index d275571d7..000000000
--- a/node_modules/@types/lodash/toUpper/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { toUpper } from "../index";
-export = toUpper;
diff --git a/node_modules/@types/lodash/transform.d.ts b/node_modules/@types/lodash/transform.d.ts
new file mode 100644
index 000000000..05e654341
--- /dev/null
+++ b/node_modules/@types/lodash/transform.d.ts
@@ -0,0 +1,2 @@
+import { transform } from "./index";
+export = transform;
diff --git a/node_modules/@types/lodash/transform/index.d.ts b/node_modules/@types/lodash/transform/index.d.ts
deleted file mode 100644
index 5bb74583f..000000000
--- a/node_modules/@types/lodash/transform/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { transform } from "../index";
-export = transform;
diff --git a/node_modules/@types/lodash/trim.d.ts b/node_modules/@types/lodash/trim.d.ts
new file mode 100644
index 000000000..7d0bf90b7
--- /dev/null
+++ b/node_modules/@types/lodash/trim.d.ts
@@ -0,0 +1,2 @@
+import { trim } from "./index";
+export = trim;
diff --git a/node_modules/@types/lodash/trim/index.d.ts b/node_modules/@types/lodash/trim/index.d.ts
deleted file mode 100644
index 9a9f373be..000000000
--- a/node_modules/@types/lodash/trim/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { trim } from "../index";
-export = trim;
diff --git a/node_modules/@types/lodash/trimEnd.d.ts b/node_modules/@types/lodash/trimEnd.d.ts
new file mode 100644
index 000000000..b80c84481
--- /dev/null
+++ b/node_modules/@types/lodash/trimEnd.d.ts
@@ -0,0 +1,2 @@
+import { trimEnd } from "./index";
+export = trimEnd;
diff --git a/node_modules/@types/lodash/trimEnd/index.d.ts b/node_modules/@types/lodash/trimEnd/index.d.ts
deleted file mode 100644
index 4a24d0069..000000000
--- a/node_modules/@types/lodash/trimEnd/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { trimEnd } from "../index";
-export = trimEnd;
diff --git a/node_modules/@types/lodash/trimStart.d.ts b/node_modules/@types/lodash/trimStart.d.ts
new file mode 100644
index 000000000..a040712eb
--- /dev/null
+++ b/node_modules/@types/lodash/trimStart.d.ts
@@ -0,0 +1,2 @@
+import { trimStart } from "./index";
+export = trimStart;
diff --git a/node_modules/@types/lodash/trimStart/index.d.ts b/node_modules/@types/lodash/trimStart/index.d.ts
deleted file mode 100644
index 41ece64c5..000000000
--- a/node_modules/@types/lodash/trimStart/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { trimStart } from "../index";
-export = trimStart;
diff --git a/node_modules/@types/lodash/truncate.d.ts b/node_modules/@types/lodash/truncate.d.ts
new file mode 100644
index 000000000..0ae065b30
--- /dev/null
+++ b/node_modules/@types/lodash/truncate.d.ts
@@ -0,0 +1,2 @@
+import { truncate } from "./index";
+export = truncate;
diff --git a/node_modules/@types/lodash/truncate/index.d.ts b/node_modules/@types/lodash/truncate/index.d.ts
deleted file mode 100644
index 48df0bb64..000000000
--- a/node_modules/@types/lodash/truncate/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { truncate } from "../index";
-export = truncate;
diff --git a/node_modules/@types/lodash/unary.d.ts b/node_modules/@types/lodash/unary.d.ts
new file mode 100644
index 000000000..44569978f
--- /dev/null
+++ b/node_modules/@types/lodash/unary.d.ts
@@ -0,0 +1,2 @@
+import { unary } from "./index";
+export = unary;
diff --git a/node_modules/@types/lodash/unary/index.d.ts b/node_modules/@types/lodash/unary/index.d.ts
deleted file mode 100644
index 6873fa133..000000000
--- a/node_modules/@types/lodash/unary/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unary } from "../index";
-export = unary;
diff --git a/node_modules/@types/lodash/unescape.d.ts b/node_modules/@types/lodash/unescape.d.ts
new file mode 100644
index 000000000..71ba85d89
--- /dev/null
+++ b/node_modules/@types/lodash/unescape.d.ts
@@ -0,0 +1,2 @@
+import { unescape } from "./index";
+export = unescape;
diff --git a/node_modules/@types/lodash/unescape/index.d.ts b/node_modules/@types/lodash/unescape/index.d.ts
deleted file mode 100644
index f35788408..000000000
--- a/node_modules/@types/lodash/unescape/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unescape } from "../index";
-export = unescape;
diff --git a/node_modules/@types/lodash/union.d.ts b/node_modules/@types/lodash/union.d.ts
new file mode 100644
index 000000000..7b12e92f6
--- /dev/null
+++ b/node_modules/@types/lodash/union.d.ts
@@ -0,0 +1,2 @@
+import { union } from "./index";
+export = union;
diff --git a/node_modules/@types/lodash/union/index.d.ts b/node_modules/@types/lodash/union/index.d.ts
deleted file mode 100644
index f5e064ce0..000000000
--- a/node_modules/@types/lodash/union/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { union } from "../index";
-export = union;
diff --git a/node_modules/@types/lodash/unionBy.d.ts b/node_modules/@types/lodash/unionBy.d.ts
new file mode 100644
index 000000000..0cb199245
--- /dev/null
+++ b/node_modules/@types/lodash/unionBy.d.ts
@@ -0,0 +1,2 @@
+import { unionBy } from "./index";
+export = unionBy;
diff --git a/node_modules/@types/lodash/unionBy/index.d.ts b/node_modules/@types/lodash/unionBy/index.d.ts
deleted file mode 100644
index 80b87cb05..000000000
--- a/node_modules/@types/lodash/unionBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unionBy } from "../index";
-export = unionBy;
diff --git a/node_modules/@types/lodash/unionWith.d.ts b/node_modules/@types/lodash/unionWith.d.ts
new file mode 100644
index 000000000..9888092f8
--- /dev/null
+++ b/node_modules/@types/lodash/unionWith.d.ts
@@ -0,0 +1,2 @@
+import { unionWith } from "./index";
+export = unionWith;
diff --git a/node_modules/@types/lodash/unionWith/index.d.ts b/node_modules/@types/lodash/unionWith/index.d.ts
deleted file mode 100644
index ddf5cfa77..000000000
--- a/node_modules/@types/lodash/unionWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unionWith } from "../index";
-export = unionWith;
diff --git a/node_modules/@types/lodash/uniq.d.ts b/node_modules/@types/lodash/uniq.d.ts
new file mode 100644
index 000000000..6c105ac3e
--- /dev/null
+++ b/node_modules/@types/lodash/uniq.d.ts
@@ -0,0 +1,2 @@
+import { uniq } from "./index";
+export = uniq;
diff --git a/node_modules/@types/lodash/uniq/index.d.ts b/node_modules/@types/lodash/uniq/index.d.ts
deleted file mode 100644
index 195c4708c..000000000
--- a/node_modules/@types/lodash/uniq/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { uniq } from "../index";
-export = uniq;
diff --git a/node_modules/@types/lodash/uniqBy.d.ts b/node_modules/@types/lodash/uniqBy.d.ts
new file mode 100644
index 000000000..7101b0e30
--- /dev/null
+++ b/node_modules/@types/lodash/uniqBy.d.ts
@@ -0,0 +1,2 @@
+import { uniqBy } from "./index";
+export = uniqBy;
diff --git a/node_modules/@types/lodash/uniqBy/index.d.ts b/node_modules/@types/lodash/uniqBy/index.d.ts
deleted file mode 100644
index 2206a834b..000000000
--- a/node_modules/@types/lodash/uniqBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { uniqBy } from "../index";
-export = uniqBy;
diff --git a/node_modules/@types/lodash/uniqWith.d.ts b/node_modules/@types/lodash/uniqWith.d.ts
new file mode 100644
index 000000000..72c3f8fc1
--- /dev/null
+++ b/node_modules/@types/lodash/uniqWith.d.ts
@@ -0,0 +1,2 @@
+import { uniqWith } from "./index";
+export = uniqWith;
diff --git a/node_modules/@types/lodash/uniqWith/index.d.ts b/node_modules/@types/lodash/uniqWith/index.d.ts
deleted file mode 100644
index 3e92b6fc8..000000000
--- a/node_modules/@types/lodash/uniqWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { uniqWith } from "../index";
-export = uniqWith;
diff --git a/node_modules/@types/lodash/uniqueId.d.ts b/node_modules/@types/lodash/uniqueId.d.ts
new file mode 100644
index 000000000..4ea55f92f
--- /dev/null
+++ b/node_modules/@types/lodash/uniqueId.d.ts
@@ -0,0 +1,2 @@
+import { uniqueId } from "./index";
+export = uniqueId;
diff --git a/node_modules/@types/lodash/uniqueId/index.d.ts b/node_modules/@types/lodash/uniqueId/index.d.ts
deleted file mode 100644
index e31b3bc11..000000000
--- a/node_modules/@types/lodash/uniqueId/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { uniqueId } from "../index";
-export = uniqueId;
diff --git a/node_modules/@types/lodash/unset.d.ts b/node_modules/@types/lodash/unset.d.ts
new file mode 100644
index 000000000..1eac8ddb7
--- /dev/null
+++ b/node_modules/@types/lodash/unset.d.ts
@@ -0,0 +1,2 @@
+import { unset } from "./index";
+export = unset;
diff --git a/node_modules/@types/lodash/unset/index.d.ts b/node_modules/@types/lodash/unset/index.d.ts
deleted file mode 100644
index 3f81ac74e..000000000
--- a/node_modules/@types/lodash/unset/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unset } from "../index";
-export = unset;
diff --git a/node_modules/@types/lodash/unzip.d.ts b/node_modules/@types/lodash/unzip.d.ts
new file mode 100644
index 000000000..7e320a27f
--- /dev/null
+++ b/node_modules/@types/lodash/unzip.d.ts
@@ -0,0 +1,2 @@
+import { unzip } from "./index";
+export = unzip;
diff --git a/node_modules/@types/lodash/unzip/index.d.ts b/node_modules/@types/lodash/unzip/index.d.ts
deleted file mode 100644
index 0763077e3..000000000
--- a/node_modules/@types/lodash/unzip/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unzip } from "../index";
-export = unzip;
diff --git a/node_modules/@types/lodash/unzipWith.d.ts b/node_modules/@types/lodash/unzipWith.d.ts
new file mode 100644
index 000000000..2bf5394b2
--- /dev/null
+++ b/node_modules/@types/lodash/unzipWith.d.ts
@@ -0,0 +1,2 @@
+import { unzipWith } from "./index";
+export = unzipWith;
diff --git a/node_modules/@types/lodash/unzipWith/index.d.ts b/node_modules/@types/lodash/unzipWith/index.d.ts
deleted file mode 100644
index 4e0b87902..000000000
--- a/node_modules/@types/lodash/unzipWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { unzipWith } from "../index";
-export = unzipWith;
diff --git a/node_modules/@types/lodash/update.d.ts b/node_modules/@types/lodash/update.d.ts
new file mode 100644
index 000000000..d072c0fe9
--- /dev/null
+++ b/node_modules/@types/lodash/update.d.ts
@@ -0,0 +1,2 @@
+import { update } from "./index";
+export = update;
diff --git a/node_modules/@types/lodash/update/index.d.ts b/node_modules/@types/lodash/update/index.d.ts
deleted file mode 100644
index e0b554ea9..000000000
--- a/node_modules/@types/lodash/update/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { update } from "../index";
-export = update;
diff --git a/node_modules/@types/lodash/upperCase.d.ts b/node_modules/@types/lodash/upperCase.d.ts
new file mode 100644
index 000000000..c33598a93
--- /dev/null
+++ b/node_modules/@types/lodash/upperCase.d.ts
@@ -0,0 +1,2 @@
+import { upperCase } from "./index";
+export = upperCase;
diff --git a/node_modules/@types/lodash/upperCase/index.d.ts b/node_modules/@types/lodash/upperCase/index.d.ts
deleted file mode 100644
index c1416987a..000000000
--- a/node_modules/@types/lodash/upperCase/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { upperCase } from "../index";
-export = upperCase;
diff --git a/node_modules/@types/lodash/upperFirst.d.ts b/node_modules/@types/lodash/upperFirst.d.ts
new file mode 100644
index 000000000..1f1b2a798
--- /dev/null
+++ b/node_modules/@types/lodash/upperFirst.d.ts
@@ -0,0 +1,2 @@
+import { upperFirst } from "./index";
+export = upperFirst;
diff --git a/node_modules/@types/lodash/upperFirst/index.d.ts b/node_modules/@types/lodash/upperFirst/index.d.ts
deleted file mode 100644
index d58b37eef..000000000
--- a/node_modules/@types/lodash/upperFirst/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { upperFirst } from "../index";
-export = upperFirst;
diff --git a/node_modules/@types/lodash/values.d.ts b/node_modules/@types/lodash/values.d.ts
new file mode 100644
index 000000000..2015ebf8a
--- /dev/null
+++ b/node_modules/@types/lodash/values.d.ts
@@ -0,0 +1,2 @@
+import { values } from "./index";
+export = values;
diff --git a/node_modules/@types/lodash/values/index.d.ts b/node_modules/@types/lodash/values/index.d.ts
deleted file mode 100644
index 176efae2d..000000000
--- a/node_modules/@types/lodash/values/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { values } from "../index";
-export = values;
diff --git a/node_modules/@types/lodash/valuesIn.d.ts b/node_modules/@types/lodash/valuesIn.d.ts
new file mode 100644
index 000000000..6f8d6a3ef
--- /dev/null
+++ b/node_modules/@types/lodash/valuesIn.d.ts
@@ -0,0 +1,2 @@
+import { valuesIn } from "./index";
+export = valuesIn;
diff --git a/node_modules/@types/lodash/valuesIn/index.d.ts b/node_modules/@types/lodash/valuesIn/index.d.ts
deleted file mode 100644
index b1f8abbe7..000000000
--- a/node_modules/@types/lodash/valuesIn/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { valuesIn } from "../index";
-export = valuesIn;
diff --git a/node_modules/@types/lodash/without.d.ts b/node_modules/@types/lodash/without.d.ts
new file mode 100644
index 000000000..bbdfe163e
--- /dev/null
+++ b/node_modules/@types/lodash/without.d.ts
@@ -0,0 +1,2 @@
+import { without } from "./index";
+export = without;
diff --git a/node_modules/@types/lodash/without/index.d.ts b/node_modules/@types/lodash/without/index.d.ts
deleted file mode 100644
index bc6734c9e..000000000
--- a/node_modules/@types/lodash/without/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { without } from "../index";
-export = without;
diff --git a/node_modules/@types/lodash/words.d.ts b/node_modules/@types/lodash/words.d.ts
new file mode 100644
index 000000000..22da6cb94
--- /dev/null
+++ b/node_modules/@types/lodash/words.d.ts
@@ -0,0 +1,2 @@
+import { words } from "./index";
+export = words;
diff --git a/node_modules/@types/lodash/words/index.d.ts b/node_modules/@types/lodash/words/index.d.ts
deleted file mode 100644
index 170f27a69..000000000
--- a/node_modules/@types/lodash/words/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { words } from "../index";
-export = words;
diff --git a/node_modules/@types/lodash/wrap.d.ts b/node_modules/@types/lodash/wrap.d.ts
new file mode 100644
index 000000000..3c20f28ed
--- /dev/null
+++ b/node_modules/@types/lodash/wrap.d.ts
@@ -0,0 +1,2 @@
+import { wrap } from "./index";
+export = wrap;
diff --git a/node_modules/@types/lodash/wrap/index.d.ts b/node_modules/@types/lodash/wrap/index.d.ts
deleted file mode 100644
index 39bc5da38..000000000
--- a/node_modules/@types/lodash/wrap/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { wrap } from "../index";
-export = wrap;
diff --git a/node_modules/@types/lodash/xor.d.ts b/node_modules/@types/lodash/xor.d.ts
new file mode 100644
index 000000000..894735c45
--- /dev/null
+++ b/node_modules/@types/lodash/xor.d.ts
@@ -0,0 +1,2 @@
+import { xor } from "./index";
+export = xor;
diff --git a/node_modules/@types/lodash/xor/index.d.ts b/node_modules/@types/lodash/xor/index.d.ts
deleted file mode 100644
index 2122c3577..000000000
--- a/node_modules/@types/lodash/xor/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { xor } from "../index";
-export = xor;
diff --git a/node_modules/@types/lodash/xorBy.d.ts b/node_modules/@types/lodash/xorBy.d.ts
new file mode 100644
index 000000000..6a08c6a87
--- /dev/null
+++ b/node_modules/@types/lodash/xorBy.d.ts
@@ -0,0 +1,2 @@
+import { xorBy } from "./index";
+export = xorBy;
diff --git a/node_modules/@types/lodash/xorBy/index.d.ts b/node_modules/@types/lodash/xorBy/index.d.ts
deleted file mode 100644
index f74a1b0ce..000000000
--- a/node_modules/@types/lodash/xorBy/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { xorBy } from "../index";
-export = xorBy;
diff --git a/node_modules/@types/lodash/xorWith.d.ts b/node_modules/@types/lodash/xorWith.d.ts
new file mode 100644
index 000000000..7cdcaf339
--- /dev/null
+++ b/node_modules/@types/lodash/xorWith.d.ts
@@ -0,0 +1,2 @@
+import { xorWith } from "./index";
+export = xorWith;
diff --git a/node_modules/@types/lodash/xorWith/index.d.ts b/node_modules/@types/lodash/xorWith/index.d.ts
deleted file mode 100644
index 649304398..000000000
--- a/node_modules/@types/lodash/xorWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { xorWith } from "../index";
-export = xorWith;
diff --git a/node_modules/@types/lodash/zip.d.ts b/node_modules/@types/lodash/zip.d.ts
new file mode 100644
index 000000000..e7467cdf9
--- /dev/null
+++ b/node_modules/@types/lodash/zip.d.ts
@@ -0,0 +1,2 @@
+import { zip } from "./index";
+export = zip;
diff --git a/node_modules/@types/lodash/zip/index.d.ts b/node_modules/@types/lodash/zip/index.d.ts
deleted file mode 100644
index a930895d1..000000000
--- a/node_modules/@types/lodash/zip/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { zip } from "../index";
-export = zip;
diff --git a/node_modules/@types/lodash/zipObject.d.ts b/node_modules/@types/lodash/zipObject.d.ts
new file mode 100644
index 000000000..ad049fd15
--- /dev/null
+++ b/node_modules/@types/lodash/zipObject.d.ts
@@ -0,0 +1,2 @@
+import { zipObject } from "./index";
+export = zipObject;
diff --git a/node_modules/@types/lodash/zipObject/index.d.ts b/node_modules/@types/lodash/zipObject/index.d.ts
deleted file mode 100644
index 59d98e2fe..000000000
--- a/node_modules/@types/lodash/zipObject/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { zipObject } from "../index";
-export = zipObject;
diff --git a/node_modules/@types/lodash/zipObjectDeep/index.d.ts b/node_modules/@types/lodash/zipObjectDeep/index.d.ts
deleted file mode 100644
index 7c2f110e3..000000000
--- a/node_modules/@types/lodash/zipObjectDeep/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { zipObjectDeep } from "../index";
-export = zipObjectDeep; \ No newline at end of file
diff --git a/node_modules/@types/lodash/zipWith.d.ts b/node_modules/@types/lodash/zipWith.d.ts
new file mode 100644
index 000000000..48693742f
--- /dev/null
+++ b/node_modules/@types/lodash/zipWith.d.ts
@@ -0,0 +1,2 @@
+import { zipWith } from "./index";
+export = zipWith;
diff --git a/node_modules/@types/lodash/zipWith/index.d.ts b/node_modules/@types/lodash/zipWith/index.d.ts
deleted file mode 100644
index 8d6cc30f3..000000000
--- a/node_modules/@types/lodash/zipWith/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { zipWith } from "../index";
-export = zipWith;
diff --git a/node_modules/@types/node/LICENSE b/node_modules/@types/node/LICENSE
index 4b1ad51b2..21071075c 100644
--- a/node_modules/@types/node/LICENSE
+++ b/node_modules/@types/node/LICENSE
@@ -1,21 +1,21 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md
index 12cdcd6a3..205d04912 100644
--- a/node_modules/@types/node/README.md
+++ b/node_modules/@types/node/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
Additional Details
- * Last updated: Mon, 22 May 2017 20:30:42 GMT
- * Dependencies: events, net, stream, child_process, tls, http, readline, crypto
+ * Last updated: Tue, 08 Aug 2017 21:39:34 GMT
+ * Dependencies: events, net, stream, url, child_process, tls, http, readline, crypto
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, ___dirname, ___filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
# Credits
-These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>.
+These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Roberto Desideri <https://github.com/RobDesideri>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Daniel Imms <https://github.com/Tyriar>, Deividas Bakanas <https://github.com/DeividasBakanas>.
diff --git a/node_modules/@types/node/index.d.ts b/node_modules/@types/node/index.d.ts
index 3e207e7ae..f73e0ff2f 100644
--- a/node_modules/@types/node/index.d.ts
+++ b/node_modules/@types/node/index.d.ts
@@ -1,4303 +1,5810 @@
-// Type definitions for Node.js v7.x
-// Project: http://nodejs.org/
-// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/************************************************
-* *
-* Node.js v7.x API *
-* *
-************************************************/
-
-// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
-interface Console {
- Console: NodeJS.ConsoleConstructor;
- assert(value: any, message?: string, ...optionalParams: any[]): void;
- dir(obj: any, options?: {showHidden?: boolean, depth?: number, colors?: boolean}): void;
- error(message?: any, ...optionalParams: any[]): void;
- info(message?: any, ...optionalParams: any[]): void;
- log(message?: any, ...optionalParams: any[]): void;
- time(label: string): void;
- timeEnd(label: string): void;
- trace(message?: any, ...optionalParams: any[]): void;
- warn(message?: any, ...optionalParams: any[]): void;
-}
-
-interface Error {
- stack?: string;
-}
-
-interface ErrorConstructor {
- captureStackTrace(targetObject: Object, constructorOpt?: Function): void;
- stackTraceLimit: number;
-}
-
-// compat for TypeScript 1.8
-// if you use with --target es3 or --target es5 and use below definitions,
-// use the lib.es6.d.ts that is bundled with TypeScript 1.8.
-interface MapConstructor { }
-interface WeakMapConstructor { }
-interface SetConstructor { }
-interface WeakSetConstructor { }
-
-// Forward-declare needed types from lib.es2015.d.ts (in case users are using `--lib es5`)
-interface Iterable<T> {}
-interface Iterator<T> {
- next(value?: any): IteratorResult<T>;
-}
-interface IteratorResult<T> {}
-interface SymbolConstructor {
- readonly iterator: symbol;
-}
-declare var Symbol: SymbolConstructor;
-
-/************************************************
-* *
-* GLOBAL *
-* *
-************************************************/
-declare var process: NodeJS.Process;
-declare var global: NodeJS.Global;
-declare var console: Console;
-
-declare var __filename: string;
-declare var __dirname: string;
-
-declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
-declare function clearTimeout(timeoutId: NodeJS.Timer): void;
-declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
-declare function clearInterval(intervalId: NodeJS.Timer): void;
-declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
-declare function clearImmediate(immediateId: any): void;
-
-interface NodeRequireFunction {
- (id: string): any;
-}
-
-interface NodeRequire extends NodeRequireFunction {
- resolve(id: string): string;
- cache: any;
- extensions: any;
- main: NodeModule | undefined;
-}
-
-declare var require: NodeRequire;
-
-interface NodeModule {
- exports: any;
- require: NodeRequireFunction;
- id: string;
- filename: string;
- loaded: boolean;
- parent: NodeModule | null;
- children: NodeModule[];
-}
-
-declare var module: NodeModule;
-
-// Same as module.exports
-declare var exports: any;
-declare var SlowBuffer: {
- new (str: string, encoding?: string): Buffer;
- new (size: number): Buffer;
- new (size: Uint8Array): Buffer;
- new (array: any[]): Buffer;
- prototype: Buffer;
- isBuffer(obj: any): boolean;
- byteLength(string: string, encoding?: string): number;
- concat(list: Buffer[], totalLength?: number): Buffer;
-};
-
-
-// Buffer class
-type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "binary" | "hex";
-interface Buffer extends NodeBuffer { }
-
-/**
- * Raw data is stored in instances of the Buffer class.
- * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
- */
-declare var Buffer: {
- /**
- * Allocates a new buffer containing the given {str}.
- *
- * @param str String to store in buffer.
- * @param encoding encoding to use, optional. Default is 'utf8'
- */
- new (str: string, encoding?: string): Buffer;
- /**
- * Allocates a new buffer of {size} octets.
- *
- * @param size count of octets to allocate.
- */
- new (size: number): Buffer;
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- new (array: Uint8Array): Buffer;
- /**
- * Produces a Buffer backed by the same allocated memory as
- * the given {ArrayBuffer}.
- *
- *
- * @param arrayBuffer The ArrayBuffer with which to share memory.
- */
- new (arrayBuffer: ArrayBuffer): Buffer;
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- new (array: any[]): Buffer;
- /**
- * Copies the passed {buffer} data onto a new {Buffer} instance.
- *
- * @param buffer The buffer to copy.
- */
- new (buffer: Buffer): Buffer;
- prototype: Buffer;
- /**
- * Allocates a new Buffer using an {array} of octets.
- *
- * @param array
- */
- from(array: any[]): Buffer;
- /**
- * When passed a reference to the .buffer property of a TypedArray instance,
- * the newly created Buffer will share the same allocated memory as the TypedArray.
- * The optional {byteOffset} and {length} arguments specify a memory range
- * within the {arrayBuffer} that will be shared by the Buffer.
- *
- * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer()
- * @param byteOffset
- * @param length
- */
- from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
- /**
- * Copies the passed {buffer} data onto a new Buffer instance.
- *
- * @param buffer
- */
- from(buffer: Buffer): Buffer;
- /**
- * Creates a new Buffer containing the given JavaScript string {str}.
- * If provided, the {encoding} parameter identifies the character encoding.
- * If not provided, {encoding} defaults to 'utf8'.
- *
- * @param str
- */
- from(str: string, encoding?: string): Buffer;
- /**
- * Returns true if {obj} is a Buffer
- *
- * @param obj object to test.
- */
- isBuffer(obj: any): obj is Buffer;
- /**
- * Returns true if {encoding} is a valid encoding argument.
- * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
- *
- * @param encoding string to test.
- */
- isEncoding(encoding: string): boolean;
- /**
- * Gives the actual byte length of a string. encoding defaults to 'utf8'.
- * This is not the same as String.prototype.length since that returns the number of characters in a string.
- *
- * @param string string to test.
- * @param encoding encoding used to evaluate (defaults to 'utf8')
- */
- byteLength(string: string, encoding?: string): number;
- /**
- * Returns a buffer which is the result of concatenating all the buffers in the list together.
- *
- * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
- * If the list has exactly one item, then the first item of the list is returned.
- * If the list has more than one item, then a new Buffer is created.
- *
- * @param list An array of Buffer objects to concatenate
- * @param totalLength Total length of the buffers when concatenated.
- * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
- */
- concat(list: Buffer[], totalLength?: number): Buffer;
- /**
- * The same as buf1.compare(buf2).
- */
- compare(buf1: Buffer, buf2: Buffer): number;
- /**
- * Allocates a new buffer of {size} octets.
- *
- * @param size count of octets to allocate.
- * @param fill if specified, buffer will be initialized by calling buf.fill(fill).
- * If parameter is omitted, buffer will be filled with zeros.
- * @param encoding encoding used for call to buf.fill while initalizing
- */
- alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
- /**
- * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
- * of the newly created Buffer are unknown and may contain sensitive data.
- *
- * @param size count of octets to allocate
- */
- allocUnsafe(size: number): Buffer;
- /**
- * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
- * of the newly created Buffer are unknown and may contain sensitive data.
- *
- * @param size count of octets to allocate
- */
- allocUnsafeSlow(size: number): Buffer;
-};
-
-/************************************************
-* *
-* GLOBAL INTERFACES *
-* *
-************************************************/
-declare namespace NodeJS {
- export interface ConsoleConstructor {
- prototype: Console;
- new(stdout: WritableStream, stderr?: WritableStream): Console;
- }
-
- export interface ErrnoException extends Error {
- errno?: number;
- code?: string;
- path?: string;
- syscall?: string;
- stack?: string;
- }
-
- export class EventEmitter {
- addListener(event: string | symbol, listener: Function): this;
- on(event: string | symbol, listener: Function): this;
- once(event: string | symbol, listener: Function): this;
- removeListener(event: string | symbol, listener: Function): this;
- removeAllListeners(event?: string | symbol): this;
- setMaxListeners(n: number): this;
- getMaxListeners(): number;
- listeners(event: string | symbol): Function[];
- emit(event: string | symbol, ...args: any[]): boolean;
- listenerCount(type: string | symbol): number;
- // Added in Node 6...
- prependListener(event: string | symbol, listener: Function): this;
- prependOnceListener(event: string | symbol, listener: Function): this;
- eventNames(): (string | symbol)[];
- }
-
- export interface ReadableStream extends EventEmitter {
- readable: boolean;
- read(size?: number): string | Buffer;
- setEncoding(encoding: string | null): this;
- pause(): this;
- resume(): this;
- isPaused(): boolean;
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
- unpipe<T extends WritableStream>(destination?: T): this;
- unshift(chunk: string): void;
- unshift(chunk: Buffer): void;
- wrap(oldStream: ReadableStream): ReadableStream;
- }
-
- export interface WritableStream extends EventEmitter {
- writable: boolean;
- write(buffer: Buffer | string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- }
-
- export interface ReadWriteStream extends ReadableStream, WritableStream { }
-
- export interface Events extends EventEmitter { }
-
- export interface Domain extends Events {
- run(fn: Function): void;
- add(emitter: Events): void;
- remove(emitter: Events): void;
- bind(cb: (err: Error, data: any) => any): any;
- intercept(cb: (data: any) => any): any;
- dispose(): void;
-
- addListener(event: string, listener: Function): this;
- on(event: string, listener: Function): this;
- once(event: string, listener: Function): this;
- removeListener(event: string, listener: Function): this;
- removeAllListeners(event?: string): this;
- }
-
- export interface MemoryUsage {
- rss: number;
- heapTotal: number;
- heapUsed: number;
- }
-
- export interface CpuUsage {
- user: number;
- system: number;
- }
-
- export interface ProcessVersions {
- http_parser: string;
- node: string;
- v8: string;
- ares: string;
- uv: string;
- zlib: string;
- modules: string;
- openssl: string;
- }
-
- type Platform = 'aix'
- | 'android'
- | 'darwin'
- | 'freebsd'
- | 'linux'
- | 'openbsd'
- | 'sunos'
- | 'win32';
-
- export interface Socket extends ReadWriteStream {
- isTTY?: true;
- }
-
- export interface Process extends EventEmitter {
- stdout: Socket;
- stderr: Socket;
- stdin: Socket;
- argv: string[];
- argv0: string;
- execArgv: string[];
- execPath: string;
- abort(): void;
- chdir(directory: string): void;
- cwd(): string;
- env: any;
- exit(code?: number): never;
- exitCode: number;
- getgid(): number;
- setgid(id: number): void;
- setgid(id: string): void;
- getuid(): number;
- setuid(id: number): void;
- setuid(id: string): void;
- version: string;
- versions: ProcessVersions;
- config: {
- target_defaults: {
- cflags: any[];
- default_configuration: string;
- defines: string[];
- include_dirs: string[];
- libraries: string[];
- };
- variables: {
- clang: number;
- host_arch: string;
- node_install_npm: boolean;
- node_install_waf: boolean;
- node_prefix: string;
- node_shared_openssl: boolean;
- node_shared_v8: boolean;
- node_shared_zlib: boolean;
- node_use_dtrace: boolean;
- node_use_etw: boolean;
- node_use_openssl: boolean;
- target_arch: string;
- v8_no_strict_aliasing: number;
- v8_use_snapshot: boolean;
- visibility: string;
- };
- };
- kill(pid: number, signal?: string | number): void;
- pid: number;
- title: string;
- arch: string;
- platform: Platform;
- mainModule?: NodeModule;
- memoryUsage(): MemoryUsage;
- cpuUsage(previousValue?: CpuUsage): CpuUsage;
- nextTick(callback: Function, ...args: any[]): void;
- umask(mask?: number): number;
- uptime(): number;
- hrtime(time?: [number, number]): [number, number];
- domain: Domain;
-
- // Worker
- send?(message: any, sendHandle?: any): void;
- disconnect(): void;
- connected: boolean;
- }
-
- export interface Global {
- Array: typeof Array;
- ArrayBuffer: typeof ArrayBuffer;
- Boolean: typeof Boolean;
- Buffer: typeof Buffer;
- DataView: typeof DataView;
- Date: typeof Date;
- Error: typeof Error;
- EvalError: typeof EvalError;
- Float32Array: typeof Float32Array;
- Float64Array: typeof Float64Array;
- Function: typeof Function;
- GLOBAL: Global;
- Infinity: typeof Infinity;
- Int16Array: typeof Int16Array;
- Int32Array: typeof Int32Array;
- Int8Array: typeof Int8Array;
- Intl: typeof Intl;
- JSON: typeof JSON;
- Map: MapConstructor;
- Math: typeof Math;
- NaN: typeof NaN;
- Number: typeof Number;
- Object: typeof Object;
- Promise: Function;
- RangeError: typeof RangeError;
- ReferenceError: typeof ReferenceError;
- RegExp: typeof RegExp;
- Set: SetConstructor;
- String: typeof String;
- Symbol: Function;
- SyntaxError: typeof SyntaxError;
- TypeError: typeof TypeError;
- URIError: typeof URIError;
- Uint16Array: typeof Uint16Array;
- Uint32Array: typeof Uint32Array;
- Uint8Array: typeof Uint8Array;
- Uint8ClampedArray: Function;
- WeakMap: WeakMapConstructor;
- WeakSet: WeakSetConstructor;
- clearImmediate: (immediateId: any) => void;
- clearInterval: (intervalId: NodeJS.Timer) => void;
- clearTimeout: (timeoutId: NodeJS.Timer) => void;
- console: typeof console;
- decodeURI: typeof decodeURI;
- decodeURIComponent: typeof decodeURIComponent;
- encodeURI: typeof encodeURI;
- encodeURIComponent: typeof encodeURIComponent;
- escape: (str: string) => string;
- eval: typeof eval;
- global: Global;
- isFinite: typeof isFinite;
- isNaN: typeof isNaN;
- parseFloat: typeof parseFloat;
- parseInt: typeof parseInt;
- process: Process;
- root: Global;
- setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => any;
- setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
- setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
- undefined: typeof undefined;
- unescape: (str: string) => string;
- gc: () => void;
- v8debug?: any;
- }
-
- export interface Timer {
- ref(): void;
- unref(): void;
- }
-}
-
-interface IterableIterator<T> { }
-
-/**
- * @deprecated
- */
-interface NodeBuffer extends Uint8Array {
- write(string: string, offset?: number, length?: number, encoding?: string): number;
- toString(encoding?: string, start?: number, end?: number): string;
- toJSON(): { type: 'Buffer', data: any[] };
- equals(otherBuffer: Buffer): boolean;
- compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
- copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
- slice(start?: number, end?: number): Buffer;
- writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUInt8(offset: number, noAssert?: boolean): number;
- readUInt16LE(offset: number, noAssert?: boolean): number;
- readUInt16BE(offset: number, noAssert?: boolean): number;
- readUInt32LE(offset: number, noAssert?: boolean): number;
- readUInt32BE(offset: number, noAssert?: boolean): number;
- readInt8(offset: number, noAssert?: boolean): number;
- readInt16LE(offset: number, noAssert?: boolean): number;
- readInt16BE(offset: number, noAssert?: boolean): number;
- readInt32LE(offset: number, noAssert?: boolean): number;
- readInt32BE(offset: number, noAssert?: boolean): number;
- readFloatLE(offset: number, noAssert?: boolean): number;
- readFloatBE(offset: number, noAssert?: boolean): number;
- readDoubleLE(offset: number, noAssert?: boolean): number;
- readDoubleBE(offset: number, noAssert?: boolean): number;
- swap16(): Buffer;
- swap32(): Buffer;
- swap64(): Buffer;
- writeUInt8(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt8(value: number, offset: number, noAssert?: boolean): number;
- writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
- fill(value: any, offset?: number, end?: number): this;
- indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
- lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
- entries(): IterableIterator<[number, number]>;
- includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
- keys(): IterableIterator<number>;
- values(): IterableIterator<number>;
-}
-
-/************************************************
-* *
-* MODULES *
-* *
-************************************************/
-declare module "buffer" {
- export var INSPECT_MAX_BYTES: number;
- var BuffType: typeof Buffer;
- var SlowBuffType: typeof SlowBuffer;
- export { BuffType as Buffer, SlowBuffType as SlowBuffer };
-}
-
-declare module "querystring" {
- export interface StringifyOptions {
- encodeURIComponent?: Function;
- }
-
- export interface ParseOptions {
- maxKeys?: number;
- decodeURIComponent?: Function;
- }
-
- export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string;
- export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any;
- export function parse<T extends {}>(str: string, sep?: string, eq?: string, options?: ParseOptions): T;
- export function escape(str: string): string;
- export function unescape(str: string): string;
-}
-
-declare module "events" {
- class internal extends NodeJS.EventEmitter { }
-
- namespace internal {
- export class EventEmitter extends internal {
- static listenerCount(emitter: EventEmitter, event: string | symbol): number; // deprecated
- static defaultMaxListeners: number;
-
- addListener(event: string | symbol, listener: Function): this;
- on(event: string | symbol, listener: Function): this;
- once(event: string | symbol, listener: Function): this;
- prependListener(event: string | symbol, listener: Function): this;
- prependOnceListener(event: string | symbol, listener: Function): this;
- removeListener(event: string | symbol, listener: Function): this;
- removeAllListeners(event?: string | symbol): this;
- setMaxListeners(n: number): this;
- getMaxListeners(): number;
- listeners(event: string | symbol): Function[];
- emit(event: string | symbol, ...args: any[]): boolean;
- eventNames(): (string | symbol)[];
- listenerCount(type: string | symbol): number;
- }
- }
-
- export = internal;
-}
-
-declare module "http" {
- import * as events from "events";
- import * as net from "net";
- import * as stream from "stream";
-
- export interface RequestOptions {
- protocol?: string;
- host?: string;
- hostname?: string;
- family?: number;
- port?: number;
- localAddress?: string;
- socketPath?: string;
- method?: string;
- path?: string;
- headers?: { [key: string]: any };
- auth?: string;
- agent?: Agent | boolean;
- timeout?: number;
- }
-
- export interface Server extends net.Server {
- setTimeout(msecs: number, callback: Function): void;
- maxHeadersCount: number;
- timeout: number;
- listening: boolean;
- }
- /**
- * @deprecated Use IncomingMessage
- */
- export interface ServerRequest extends IncomingMessage {
- connection: net.Socket;
- }
- export interface ServerResponse extends stream.Writable {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- writeContinue(): void;
- writeHead(statusCode: number, reasonPhrase?: string, headers?: any): void;
- writeHead(statusCode: number, headers?: any): void;
- statusCode: number;
- statusMessage: string;
- headersSent: boolean;
- setHeader(name: string, value: string | string[]): void;
- setTimeout(msecs: number, callback: Function): ServerResponse;
- sendDate: boolean;
- getHeader(name: string): string;
- removeHeader(name: string): void;
- write(chunk: any, encoding?: string): any;
- addTrailers(headers: any): void;
- finished: boolean;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
- }
- export interface ClientRequest extends stream.Writable {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- write(chunk: any, encoding?: string): void;
- abort(): void;
- setTimeout(timeout: number, callback?: Function): void;
- setNoDelay(noDelay?: boolean): void;
- setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
-
- setHeader(name: string, value: string | string[]): void;
- getHeader(name: string): string;
- removeHeader(name: string): void;
- addTrailers(headers: any): void;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
- }
- export interface IncomingMessage extends stream.Readable {
- httpVersion: string;
- httpVersionMajor: number;
- httpVersionMinor: number;
- connection: net.Socket;
- headers: any;
- rawHeaders: string[];
- trailers: any;
- rawTrailers: any;
- setTimeout(msecs: number, callback: Function): NodeJS.Timer;
- /**
- * Only valid for request obtained from http.Server.
- */
- method?: string;
- /**
- * Only valid for request obtained from http.Server.
- */
- url?: string;
- /**
- * Only valid for response obtained from http.ClientRequest.
- */
- statusCode?: number;
- /**
- * Only valid for response obtained from http.ClientRequest.
- */
- statusMessage?: string;
- socket: net.Socket;
- destroy(error?: Error): void;
- }
- /**
- * @deprecated Use IncomingMessage
- */
- export interface ClientResponse extends IncomingMessage { }
-
- export interface AgentOptions {
- /**
- * Keep sockets around in a pool to be used by other requests in the future. Default = false
- */
- keepAlive?: boolean;
- /**
- * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
- * Only relevant if keepAlive is set to true.
- */
- keepAliveMsecs?: number;
- /**
- * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
- */
- maxSockets?: number;
- /**
- * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
- */
- maxFreeSockets?: number;
- }
-
- export class Agent {
- maxSockets: number;
- sockets: any;
- requests: any;
-
- constructor(opts?: AgentOptions);
-
- /**
- * Destroy any sockets that are currently in use by the agent.
- * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
- * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
- * sockets may hang open for quite a long time before the server terminates them.
- */
- destroy(): void;
- }
-
- export var METHODS: string[];
-
- export var STATUS_CODES: {
- [errorCode: number]: string;
- [errorCode: string]: string;
- };
- export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void): Server;
- export function createClient(port?: number, host?: string): any;
- export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
- export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
- export var globalAgent: Agent;
-}
-
-declare module "cluster" {
- import * as child from "child_process";
- import * as events from "events";
- import * as net from "net";
-
- // interfaces
- export interface ClusterSettings {
- execArgv?: string[]; // default: process.execArgv
- exec?: string;
- args?: string[];
- silent?: boolean;
- stdio?: any[];
- uid?: number;
- gid?: number;
- }
-
- export interface ClusterSetupMasterSettings {
- exec?: string; // default: process.argv[1]
- args?: string[]; // default: process.argv.slice(2)
- silent?: boolean; // default: false
- stdio?: any[];
- }
-
- export interface Address {
- address: string;
- port: number;
- addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
- }
-
- export class Worker extends events.EventEmitter {
- id: string;
- process: child.ChildProcess;
- suicide: boolean;
- send(message: any, sendHandle?: any): boolean;
- kill(signal?: string): void;
- destroy(signal?: string): void;
- disconnect(): void;
- isConnected(): boolean;
- isDead(): boolean;
- exitedAfterDisconnect: boolean;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. error
- * 3. exit
- * 4. listening
- * 5. message
- * 6. online
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
- addListener(event: "exit", listener: (code: number, signal: string) => void): this;
- addListener(event: "listening", listener: (address: Address) => void): this;
- addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: () => void): this;
-
- emit(event: string, listener: Function): boolean
- emit(event: "disconnect", listener: () => void): boolean
- emit(event: "error", listener: (code: number, signal: string) => void): boolean
- emit(event: "exit", listener: (code: number, signal: string) => void): boolean
- emit(event: "listening", listener: (address: Address) => void): boolean
- emit(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): boolean
- emit(event: "online", listener: () => void): boolean
-
- on(event: string, listener: Function): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (code: number, signal: string) => void): this;
- on(event: "exit", listener: (code: number, signal: string) => void): this;
- on(event: "listening", listener: (address: Address) => void): this;
- on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (code: number, signal: string) => void): this;
- once(event: "exit", listener: (code: number, signal: string) => void): this;
- once(event: "listening", listener: (address: Address) => void): this;
- once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
- prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependListener(event: "listening", listener: (address: Address) => void): this;
- prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "listening", listener: (address: Address) => void): this;
- prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(event: "online", listener: () => void): this;
- }
-
- export interface Cluster extends events.EventEmitter {
- Worker: Worker;
- disconnect(callback?: Function): void;
- fork(env?: any): Worker;
- isMaster: boolean;
- isWorker: boolean;
- // TODO: cluster.schedulingPolicy
- settings: ClusterSettings;
- setupMaster(settings?: ClusterSetupMasterSettings): void;
- worker: Worker;
- workers: {
- [index: string]: Worker
- };
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "disconnect", listener: (worker: Worker) => void): this;
- addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- addListener(event: "fork", listener: (worker: Worker) => void): this;
- addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: (worker: Worker) => void): this;
- addListener(event: "setup", listener: (settings: any) => void): this;
-
- emit(event: string, listener: Function): boolean;
- emit(event: "disconnect", listener: (worker: Worker) => void): boolean;
- emit(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): boolean;
- emit(event: "fork", listener: (worker: Worker) => void): boolean;
- emit(event: "listening", listener: (worker: Worker, address: Address) => void): boolean;
- emit(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): boolean;
- emit(event: "online", listener: (worker: Worker) => void): boolean;
- emit(event: "setup", listener: (settings: any) => void): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "disconnect", listener: (worker: Worker) => void): this;
- on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- on(event: "fork", listener: (worker: Worker) => void): this;
- on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: (worker: Worker) => void): this;
- on(event: "setup", listener: (settings: any) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "disconnect", listener: (worker: Worker) => void): this;
- once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- once(event: "fork", listener: (worker: Worker) => void): this;
- once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: (worker: Worker) => void): this;
- once(event: "setup", listener: (settings: any) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependListener(event: "fork", listener: (worker: Worker) => void): this;
- prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: (worker: Worker) => void): this;
- prependListener(event: "setup", listener: (settings: any) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependOnceListener(event: "fork", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "setup", listener: (settings: any) => void): this;
-
- }
-
- export function disconnect(callback?: Function): void;
- export function fork(env?: any): Worker;
- export var isMaster: boolean;
- export var isWorker: boolean;
- // TODO: cluster.schedulingPolicy
- export var settings: ClusterSettings;
- export function setupMaster(settings?: ClusterSetupMasterSettings): void;
- export var worker: Worker;
- export var workers: {
- [index: string]: Worker
- };
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- export function addListener(event: string, listener: Function): Cluster;
- export function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- export function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- export function addListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- export function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- export function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- export function addListener(event: "online", listener: (worker: Worker) => void): Cluster;
- export function addListener(event: "setup", listener: (settings: any) => void): Cluster;
-
- export function emit(event: string, listener: Function): boolean;
- export function emit(event: "disconnect", listener: (worker: Worker) => void): boolean;
- export function emit(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): boolean;
- export function emit(event: "fork", listener: (worker: Worker) => void): boolean;
- export function emit(event: "listening", listener: (worker: Worker, address: Address) => void): boolean;
- export function emit(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): boolean;
- export function emit(event: "online", listener: (worker: Worker) => void): boolean;
- export function emit(event: "setup", listener: (settings: any) => void): boolean;
-
- export function on(event: string, listener: Function): Cluster;
- export function on(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- export function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- export function on(event: "fork", listener: (worker: Worker) => void): Cluster;
- export function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- export function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- export function on(event: "online", listener: (worker: Worker) => void): Cluster;
- export function on(event: "setup", listener: (settings: any) => void): Cluster;
-
- export function once(event: string, listener: Function): Cluster;
- export function once(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- export function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- export function once(event: "fork", listener: (worker: Worker) => void): Cluster;
- export function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- export function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- export function once(event: "online", listener: (worker: Worker) => void): Cluster;
- export function once(event: "setup", listener: (settings: any) => void): Cluster;
-
- export function removeListener(event: string, listener: Function): Cluster;
- export function removeAllListeners(event?: string): Cluster;
- export function setMaxListeners(n: number): Cluster;
- export function getMaxListeners(): number;
- export function listeners(event: string): Function[];
- export function listenerCount(type: string): number;
-
- export function prependListener(event: string, listener: Function): Cluster;
- export function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- export function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- export function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- export function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- export function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- export function prependListener(event: "online", listener: (worker: Worker) => void): Cluster;
- export function prependListener(event: "setup", listener: (settings: any) => void): Cluster;
-
- export function prependOnceListener(event: string, listener: Function): Cluster;
- export function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- export function prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- export function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- export function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- export function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- export function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster;
- export function prependOnceListener(event: "setup", listener: (settings: any) => void): Cluster;
-
- export function eventNames(): string[];
-}
-
-declare module "zlib" {
- import * as stream from "stream";
-
- export interface ZlibOptions {
- flush?: number; // default: zlib.constants.Z_NO_FLUSH
- finishFlush?: number; // default: zlib.constants.Z_FINISH
- chunkSize?: number; // default: 16*1024
- windowBits?: number;
- level?: number; // compression only
- memLevel?: number; // compression only
- strategy?: number; // compression only
- dictionary?: any; // deflate/inflate only, empty dictionary by default
- }
-
- export interface Gzip extends stream.Transform { }
- export interface Gunzip extends stream.Transform { }
- export interface Deflate extends stream.Transform { }
- export interface Inflate extends stream.Transform { }
- export interface DeflateRaw extends stream.Transform { }
- export interface InflateRaw extends stream.Transform { }
- export interface Unzip extends stream.Transform { }
-
- export function createGzip(options?: ZlibOptions): Gzip;
- export function createGunzip(options?: ZlibOptions): Gunzip;
- export function createDeflate(options?: ZlibOptions): Deflate;
- export function createInflate(options?: ZlibOptions): Inflate;
- export function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
- export function createInflateRaw(options?: ZlibOptions): InflateRaw;
- export function createUnzip(options?: ZlibOptions): Unzip;
-
- export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
- export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
- export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
- export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
- export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
- export function gzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
- export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
- export function gunzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
- export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
- export function inflate(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer;
- export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
- export function inflateRaw(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer;
- export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
- export function unzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
- export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
-
- export namespace constants {
- // Allowed flush values.
-
- export const Z_NO_FLUSH: number;
- export const Z_PARTIAL_FLUSH: number;
- export const Z_SYNC_FLUSH: number;
- export const Z_FULL_FLUSH: number;
- export const Z_FINISH: number;
- export const Z_BLOCK: number;
- export const Z_TREES: number;
-
- // Return codes for the compression/decompression functions. Negative values are errors, positive values are used for special but normal events.
-
- export const Z_OK: number;
- export const Z_STREAM_END: number;
- export const Z_NEED_DICT: number;
- export const Z_ERRNO: number;
- export const Z_STREAM_ERROR: number;
- export const Z_DATA_ERROR: number;
- export const Z_MEM_ERROR: number;
- export const Z_BUF_ERROR: number;
- export const Z_VERSION_ERROR: number;
-
- // Compression levels.
-
- export const Z_NO_COMPRESSION: number;
- export const Z_BEST_SPEED: number;
- export const Z_BEST_COMPRESSION: number;
- export const Z_DEFAULT_COMPRESSION: number;
-
- // Compression strategy.
-
- export const Z_FILTERED: number;
- export const Z_HUFFMAN_ONLY: number;
- export const Z_RLE: number;
- export const Z_FIXED: number;
- export const Z_DEFAULT_STRATEGY: number;
- }
-
- // Constants
- export var Z_NO_FLUSH: number;
- export var Z_PARTIAL_FLUSH: number;
- export var Z_SYNC_FLUSH: number;
- export var Z_FULL_FLUSH: number;
- export var Z_FINISH: number;
- export var Z_BLOCK: number;
- export var Z_TREES: number;
- export var Z_OK: number;
- export var Z_STREAM_END: number;
- export var Z_NEED_DICT: number;
- export var Z_ERRNO: number;
- export var Z_STREAM_ERROR: number;
- export var Z_DATA_ERROR: number;
- export var Z_MEM_ERROR: number;
- export var Z_BUF_ERROR: number;
- export var Z_VERSION_ERROR: number;
- export var Z_NO_COMPRESSION: number;
- export var Z_BEST_SPEED: number;
- export var Z_BEST_COMPRESSION: number;
- export var Z_DEFAULT_COMPRESSION: number;
- export var Z_FILTERED: number;
- export var Z_HUFFMAN_ONLY: number;
- export var Z_RLE: number;
- export var Z_FIXED: number;
- export var Z_DEFAULT_STRATEGY: number;
- export var Z_BINARY: number;
- export var Z_TEXT: number;
- export var Z_ASCII: number;
- export var Z_UNKNOWN: number;
- export var Z_DEFLATED: number;
-}
-
-declare module "os" {
- export interface CpuInfo {
- model: string;
- speed: number;
- times: {
- user: number;
- nice: number;
- sys: number;
- idle: number;
- irq: number;
- };
- }
-
- export interface NetworkInterfaceInfo {
- address: string;
- netmask: string;
- family: string;
- mac: string;
- internal: boolean;
- }
-
- export function hostname(): string;
- export function loadavg(): number[];
- export function uptime(): number;
- export function freemem(): number;
- export function totalmem(): number;
- export function cpus(): CpuInfo[];
- export function type(): string;
- export function release(): string;
- export function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] };
- export function homedir(): string;
- export function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string }
- export var constants: {
- UV_UDP_REUSEADDR: number,
- signals: {
- SIGHUP: number;
- SIGINT: number;
- SIGQUIT: number;
- SIGILL: number;
- SIGTRAP: number;
- SIGABRT: number;
- SIGIOT: number;
- SIGBUS: number;
- SIGFPE: number;
- SIGKILL: number;
- SIGUSR1: number;
- SIGSEGV: number;
- SIGUSR2: number;
- SIGPIPE: number;
- SIGALRM: number;
- SIGTERM: number;
- SIGCHLD: number;
- SIGSTKFLT: number;
- SIGCONT: number;
- SIGSTOP: number;
- SIGTSTP: number;
- SIGTTIN: number;
- SIGTTOU: number;
- SIGURG: number;
- SIGXCPU: number;
- SIGXFSZ: number;
- SIGVTALRM: number;
- SIGPROF: number;
- SIGWINCH: number;
- SIGIO: number;
- SIGPOLL: number;
- SIGPWR: number;
- SIGSYS: number;
- SIGUNUSED: number;
- },
- errno: {
- E2BIG: number;
- EACCES: number;
- EADDRINUSE: number;
- EADDRNOTAVAIL: number;
- EAFNOSUPPORT: number;
- EAGAIN: number;
- EALREADY: number;
- EBADF: number;
- EBADMSG: number;
- EBUSY: number;
- ECANCELED: number;
- ECHILD: number;
- ECONNABORTED: number;
- ECONNREFUSED: number;
- ECONNRESET: number;
- EDEADLK: number;
- EDESTADDRREQ: number;
- EDOM: number;
- EDQUOT: number;
- EEXIST: number;
- EFAULT: number;
- EFBIG: number;
- EHOSTUNREACH: number;
- EIDRM: number;
- EILSEQ: number;
- EINPROGRESS: number;
- EINTR: number;
- EINVAL: number;
- EIO: number;
- EISCONN: number;
- EISDIR: number;
- ELOOP: number;
- EMFILE: number;
- EMLINK: number;
- EMSGSIZE: number;
- EMULTIHOP: number;
- ENAMETOOLONG: number;
- ENETDOWN: number;
- ENETRESET: number;
- ENETUNREACH: number;
- ENFILE: number;
- ENOBUFS: number;
- ENODATA: number;
- ENODEV: number;
- ENOENT: number;
- ENOEXEC: number;
- ENOLCK: number;
- ENOLINK: number;
- ENOMEM: number;
- ENOMSG: number;
- ENOPROTOOPT: number;
- ENOSPC: number;
- ENOSR: number;
- ENOSTR: number;
- ENOSYS: number;
- ENOTCONN: number;
- ENOTDIR: number;
- ENOTEMPTY: number;
- ENOTSOCK: number;
- ENOTSUP: number;
- ENOTTY: number;
- ENXIO: number;
- EOPNOTSUPP: number;
- EOVERFLOW: number;
- EPERM: number;
- EPIPE: number;
- EPROTO: number;
- EPROTONOSUPPORT: number;
- EPROTOTYPE: number;
- ERANGE: number;
- EROFS: number;
- ESPIPE: number;
- ESRCH: number;
- ESTALE: number;
- ETIME: number;
- ETIMEDOUT: number;
- ETXTBSY: number;
- EWOULDBLOCK: number;
- EXDEV: number;
- },
- };
- export function arch(): string;
- export function platform(): NodeJS.Platform;
- export function tmpdir(): string;
- export var EOL: string;
- export function endianness(): "BE" | "LE";
-}
-
-declare module "https" {
- import * as tls from "tls";
- import * as events from "events";
- import * as http from "http";
-
- export interface ServerOptions {
- pfx?: any;
- key?: any;
- passphrase?: string;
- cert?: any;
- ca?: any;
- crl?: any;
- ciphers?: string;
- honorCipherOrder?: boolean;
- requestCert?: boolean;
- rejectUnauthorized?: boolean;
- NPNProtocols?: any;
- SNICallback?: (servername: string, cb: (err: Error, ctx: tls.SecureContext) => any) => any;
- }
-
- export interface RequestOptions extends http.RequestOptions {
- pfx?: any;
- key?: any;
- passphrase?: string;
- cert?: any;
- ca?: any;
- ciphers?: string;
- rejectUnauthorized?: boolean;
- secureProtocol?: string;
- }
-
- export interface Agent extends http.Agent { }
-
- export interface AgentOptions extends http.AgentOptions {
- pfx?: any;
- key?: any;
- passphrase?: string;
- cert?: any;
- ca?: any;
- ciphers?: string;
- rejectUnauthorized?: boolean;
- secureProtocol?: string;
- maxCachedSessions?: number;
- }
-
- export var Agent: {
- new (options?: AgentOptions): Agent;
- };
- export interface Server extends tls.Server { }
- export function createServer(options: ServerOptions, requestListener?: Function): Server;
- export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
- export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
- export var globalAgent: Agent;
-}
-
-declare module "punycode" {
- export function decode(string: string): string;
- export function encode(string: string): string;
- export function toUnicode(domain: string): string;
- export function toASCII(domain: string): string;
- export var ucs2: ucs2;
- interface ucs2 {
- decode(string: string): number[];
- encode(codePoints: number[]): string;
- }
- export var version: any;
-}
-
-declare module "repl" {
- import * as stream from "stream";
- import * as readline from "readline";
-
- export interface ReplOptions {
- prompt?: string;
- input?: NodeJS.ReadableStream;
- output?: NodeJS.WritableStream;
- terminal?: boolean;
- eval?: Function;
- useColors?: boolean;
- useGlobal?: boolean;
- ignoreUndefined?: boolean;
- writer?: Function;
- completer?: Function;
- replMode?: any;
- breakEvalOnSigint?: any;
- }
-
- export interface REPLServer extends readline.ReadLine {
- defineCommand(keyword: string, cmd: Function | { help: string, action: Function }): void;
- displayPrompt(preserveCursor?: boolean): void;
-
- /**
- * events.EventEmitter
- * 1. exit
- * 2. reset
- **/
-
- addListener(event: string, listener: Function): this;
- addListener(event: "exit", listener: () => void): this;
- addListener(event: "reset", listener: Function): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "exit"): boolean;
- emit(event: "reset", context: any): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "exit", listener: () => void): this;
- on(event: "reset", listener: Function): this;
-
- once(event: string, listener: Function): this;
- once(event: "exit", listener: () => void): this;
- once(event: "reset", listener: Function): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "exit", listener: () => void): this;
- prependListener(event: "reset", listener: Function): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "exit", listener: () => void): this;
- prependOnceListener(event: "reset", listener: Function): this;
- }
-
- export function start(options: ReplOptions): REPLServer;
-}
-
-declare module "readline" {
- import * as events from "events";
- import * as stream from "stream";
-
- export interface Key {
- sequence?: string;
- name?: string;
- ctrl?: boolean;
- meta?: boolean;
- shift?: boolean;
- }
-
- export interface ReadLine extends events.EventEmitter {
- setPrompt(prompt: string): void;
- prompt(preserveCursor?: boolean): void;
- question(query: string, callback: (answer: string) => void): void;
- pause(): ReadLine;
- resume(): ReadLine;
- close(): void;
- write(data: string | Buffer, key?: Key): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. line
- * 3. pause
- * 4. resume
- * 5. SIGCONT
- * 6. SIGINT
- * 7. SIGTSTP
- **/
-
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "line", listener: (input: any) => void): this;
- addListener(event: "pause", listener: () => void): this;
- addListener(event: "resume", listener: () => void): this;
- addListener(event: "SIGCONT", listener: () => void): this;
- addListener(event: "SIGINT", listener: () => void): this;
- addListener(event: "SIGTSTP", listener: () => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "line", input: any): boolean;
- emit(event: "pause"): boolean;
- emit(event: "resume"): boolean;
- emit(event: "SIGCONT"): boolean;
- emit(event: "SIGINT"): boolean;
- emit(event: "SIGTSTP"): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: () => void): this;
- on(event: "line", listener: (input: any) => void): this;
- on(event: "pause", listener: () => void): this;
- on(event: "resume", listener: () => void): this;
- on(event: "SIGCONT", listener: () => void): this;
- on(event: "SIGINT", listener: () => void): this;
- on(event: "SIGTSTP", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: () => void): this;
- once(event: "line", listener: (input: any) => void): this;
- once(event: "pause", listener: () => void): this;
- once(event: "resume", listener: () => void): this;
- once(event: "SIGCONT", listener: () => void): this;
- once(event: "SIGINT", listener: () => void): this;
- once(event: "SIGTSTP", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "line", listener: (input: any) => void): this;
- prependListener(event: "pause", listener: () => void): this;
- prependListener(event: "resume", listener: () => void): this;
- prependListener(event: "SIGCONT", listener: () => void): this;
- prependListener(event: "SIGINT", listener: () => void): this;
- prependListener(event: "SIGTSTP", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "line", listener: (input: any) => void): this;
- prependOnceListener(event: "pause", listener: () => void): this;
- prependOnceListener(event: "resume", listener: () => void): this;
- prependOnceListener(event: "SIGCONT", listener: () => void): this;
- prependOnceListener(event: "SIGINT", listener: () => void): this;
- prependOnceListener(event: "SIGTSTP", listener: () => void): this;
- }
-
- type Completer = (line: string) => CompleterResult;
- type AsyncCompleter = (line: string, callback: (err: any, result: CompleterResult) => void) => any;
-
- export type CompleterResult = [string[], string];
-
- export interface ReadLineOptions {
- input: NodeJS.ReadableStream;
- output?: NodeJS.WritableStream;
- completer?: Completer | AsyncCompleter;
- terminal?: boolean;
- historySize?: number;
- }
-
- export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine;
- export function createInterface(options: ReadLineOptions): ReadLine;
-
- export function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void;
- export function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void;
- export function clearLine(stream: NodeJS.WritableStream, dir: number): void;
- export function clearScreenDown(stream: NodeJS.WritableStream): void;
-}
-
-declare module "vm" {
- export interface Context { }
- export interface ScriptOptions {
- filename?: string;
- lineOffset?: number;
- columnOffset?: number;
- displayErrors?: boolean;
- timeout?: number;
- cachedData?: Buffer;
- produceCachedData?: boolean;
- }
- export interface RunningScriptOptions {
- filename?: string;
- lineOffset?: number;
- columnOffset?: number;
- displayErrors?: boolean;
- timeout?: number;
- }
- export class Script {
- constructor(code: string, options?: ScriptOptions);
- runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any;
- runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
- runInThisContext(options?: RunningScriptOptions): any;
- }
- export function createContext(sandbox?: Context): Context;
- export function isContext(sandbox: Context): boolean;
- export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions): any;
- export function runInDebugContext(code: string): any;
- export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions): any;
- export function runInThisContext(code: string, options?: RunningScriptOptions): any;
-}
-
-declare module "child_process" {
- import * as events from "events";
- import * as stream from "stream";
- import * as net from "net";
-
- export interface ChildProcess extends events.EventEmitter {
- stdin: stream.Writable;
- stdout: stream.Readable;
- stderr: stream.Readable;
- stdio: [stream.Writable, stream.Readable, stream.Readable];
- pid: number;
- kill(signal?: string): void;
- send(message: any, sendHandle?: any): boolean;
- connected: boolean;
- disconnect(): void;
- unref(): void;
- ref(): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. disconnect
- * 3. error
- * 4. exit
- * 5. message
- **/
-
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: (code: number, signal: string) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "exit", listener: (code: number, signal: string) => void): this;
- addListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close", code: number, signal: string): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "exit", code: number, signal: string): boolean;
- emit(event: "message", message: any, sendHandle: net.Socket | net.Server): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: (code: number, signal: string) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "exit", listener: (code: number, signal: string) => void): this;
- on(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: (code: number, signal: string) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "exit", listener: (code: number, signal: string) => void): this;
- once(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: (code: number, signal: string) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
- }
-
- export interface SpawnOptions {
- cwd?: string;
- env?: any;
- stdio?: any;
- detached?: boolean;
- uid?: number;
- gid?: number;
- shell?: boolean | string;
- }
- export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
-
- export interface ExecOptions {
- cwd?: string;
- env?: any;
- shell?: string;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- uid?: number;
- gid?: number;
- }
- export interface ExecOptionsWithStringEncoding extends ExecOptions {
- encoding: BufferEncoding;
- }
- export interface ExecOptionsWithBufferEncoding extends ExecOptions {
- encoding: string; // specify `null`.
- }
- export function exec(command: string, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- export function exec(command: string, options: ExecOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- // usage. child_process.exec("tsc", {encoding: null as string}, (err, stdout, stderr) => {});
- export function exec(command: string, options: ExecOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
- export function exec(command: string, options: ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
-
- export interface ExecFileOptions {
- cwd?: string;
- env?: any;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- uid?: number;
- gid?: number;
- }
- export interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
- encoding: BufferEncoding;
- }
- export interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
- encoding: string; // specify `null`.
- }
- export function execFile(file: string, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- export function execFile(file: string, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- // usage. child_process.execFile("file.sh", {encoding: null as string}, (err, stdout, stderr) => {});
- export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
- export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- export function execFile(file: string, args?: string[], callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
- // usage. child_process.execFile("file.sh", ["foo"], {encoding: null as string}, (err, stdout, stderr) => {});
- export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
- export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
-
- export interface ForkOptions {
- cwd?: string;
- env?: any;
- execPath?: string;
- execArgv?: string[];
- silent?: boolean;
- stdio?: any[];
- uid?: number;
- gid?: number;
- }
- export function fork(modulePath: string, args?: string[], options?: ForkOptions): ChildProcess;
-
- export interface SpawnSyncOptions {
- cwd?: string;
- input?: string | Buffer;
- stdio?: any;
- env?: any;
- uid?: number;
- gid?: number;
- timeout?: number;
- killSignal?: string;
- maxBuffer?: number;
- encoding?: string;
- shell?: boolean | string;
- }
- export interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
- encoding: BufferEncoding;
- }
- export interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
- encoding: string; // specify `null`.
- }
- export interface SpawnSyncReturns<T> {
- pid: number;
- output: string[];
- stdout: T;
- stderr: T;
- status: number;
- signal: string;
- error: Error;
- }
- export function spawnSync(command: string): SpawnSyncReturns<Buffer>;
- export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
- export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
- export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
- export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
-
- export interface ExecSyncOptions {
- cwd?: string;
- input?: string | Buffer;
- stdio?: any;
- env?: any;
- shell?: string;
- uid?: number;
- gid?: number;
- timeout?: number;
- killSignal?: string;
- maxBuffer?: number;
- encoding?: string;
- }
- export interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
- encoding: BufferEncoding;
- }
- export interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
- encoding: string; // specify `null`.
- }
- export function execSync(command: string): Buffer;
- export function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
- export function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
- export function execSync(command: string, options?: ExecSyncOptions): Buffer;
-
- export interface ExecFileSyncOptions {
- cwd?: string;
- input?: string | Buffer;
- stdio?: any;
- env?: any;
- uid?: number;
- gid?: number;
- timeout?: number;
- killSignal?: string;
- maxBuffer?: number;
- encoding?: string;
- }
- export interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
- encoding: BufferEncoding;
- }
- export interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
- encoding: string; // specify `null`.
- }
- export function execFileSync(command: string): Buffer;
- export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
- export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
- export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithStringEncoding): string;
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
- export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptions): Buffer;
-}
-
-declare module "url" {
- export interface Url {
- href?: string;
- protocol?: string;
- auth?: string;
- hostname?: string;
- port?: string;
- host?: string;
- pathname?: string;
- search?: string;
- query?: string | any;
- slashes?: boolean;
- hash?: string;
- path?: string;
- }
-
- export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
- export function format(url: Url): string;
- export function resolve(from: string, to: string): string;
-
- export class URLSearchParams implements Iterable<string[]> {
- constructor(init?: URLSearchParams | string | { [key: string]: string | string[] } | Iterable<string[]> );
- append(name: string, value: string): void;
- delete(name: string): void;
- entries(): Iterator<string[]>;
- forEach(callback: (value: string, name: string) => void): void;
- get(name: string): string | null;
- getAll(name: string): string[];
- has(name: string): boolean;
- keys(): Iterator<string>;
- set(name: string, value: string): void;
- sort(): void;
- toString(): string;
- values(): Iterator<string>;
- [Symbol.iterator](): Iterator<string[]>;
- }
-
- export class URL {
- constructor(input: string, base?: string | URL);
- hash: string;
- host: string;
- hostname: string;
- href: string;
- readonly origin: string;
- password: string;
- pathname: string;
- port: string;
- protocol: string;
- search: string;
- readonly searchParams: URLSearchParams;
- username: string;
- toString(): string;
- toJSON(): string;
- }
-}
-
-declare module "dns" {
- // Supported getaddrinfo flags.
- export const ADDRCONFIG: number;
- export const V4MAPPED: number;
-
- export interface LookupOptions {
- family?: number;
- hints?: number;
- all?: boolean;
- }
-
- export interface LookupOneOptions extends LookupOptions {
- all?: false;
- }
-
- export interface LookupAllOptions extends LookupOptions {
- all: true;
- }
-
- export interface LookupAddress {
- address: string;
- family: number;
- }
-
- export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
- export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
- export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException, addresses: LookupAddress[]) => void): void;
- export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException, address: string | LookupAddress[], family: number) => void): void;
- export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
-
- export interface ResolveOptions {
- ttl: boolean;
- }
-
- export interface ResolveWithTtlOptions extends ResolveOptions {
- ttl: true;
- }
-
- export interface RecordWithTtl {
- address: string;
- ttl: number;
- }
-
- export interface MxRecord {
- priority: number;
- exchange: string;
- }
-
- export interface NaptrRecord {
- flags: string;
- service: string;
- regexp: string;
- replacement: string;
- order: number;
- preference: number;
- }
-
- export interface SoaRecord {
- nsname: string;
- hostmaster: string;
- serial: number;
- refresh: number;
- retry: number;
- expire: number;
- minttl: number;
- }
-
- export interface SrvRecord {
- priority: number;
- weight: number;
- port: number;
- name: string;
- }
-
- export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
- export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
- export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException, addresses: SoaRecord) => void): void;
- export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
- export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
- export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]) => void): void;
-
- export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
- export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
-
- export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
- export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
-
- export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
- export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
- export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
- export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException, address: SoaRecord) => void): void;
- export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
- export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
-
- export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
- export function setServers(servers: string[]): void;
-
- //Error codes
- export var NODATA: string;
- export var FORMERR: string;
- export var SERVFAIL: string;
- export var NOTFOUND: string;
- export var NOTIMP: string;
- export var REFUSED: string;
- export var BADQUERY: string;
- export var BADNAME: string;
- export var BADFAMILY: string;
- export var BADRESP: string;
- export var CONNREFUSED: string;
- export var TIMEOUT: string;
- export var EOF: string;
- export var FILE: string;
- export var NOMEM: string;
- export var DESTRUCTION: string;
- export var BADSTR: string;
- export var BADFLAGS: string;
- export var NONAME: string;
- export var BADHINTS: string;
- export var NOTINITIALIZED: string;
- export var LOADIPHLPAPI: string;
- export var ADDRGETNETWORKPARAMS: string;
- export var CANCELLED: string;
-}
-
-declare module "net" {
- import * as stream from "stream";
- import * as events from "events";
-
- export interface Socket extends stream.Duplex {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- connect(port: number, host?: string, connectionListener?: Function): void;
- connect(path: string, connectionListener?: Function): void;
- bufferSize: number;
- setEncoding(encoding?: string): this;
- write(data: any, encoding?: string, callback?: Function): void;
- destroy(err?: any): void;
- pause(): this;
- resume(): this;
- setTimeout(timeout: number, callback?: Function): void;
- setNoDelay(noDelay?: boolean): void;
- setKeepAlive(enable?: boolean, initialDelay?: number): void;
- address(): { port: number; family: string; address: string; };
- unref(): void;
- ref(): void;
-
- remoteAddress: string;
- remoteFamily: string;
- remotePort: number;
- localAddress: string;
- localPort: number;
- bytesRead: number;
- bytesWritten: number;
- destroyed: boolean;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. connect
- * 3. data
- * 4. drain
- * 5. end
- * 6. error
- * 7. lookup
- * 8. timeout
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: (had_error: boolean) => void): this;
- addListener(event: "connect", listener: () => void): this;
- addListener(event: "data", listener: (data: Buffer) => void): this;
- addListener(event: "drain", listener: () => void): this;
- addListener(event: "end", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
- addListener(event: "timeout", listener: () => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close", had_error: boolean): boolean;
- emit(event: "connect"): boolean;
- emit(event: "data", data: Buffer): boolean;
- emit(event: "drain"): boolean;
- emit(event: "end"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
- emit(event: "timeout"): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: (had_error: boolean) => void): this;
- on(event: "connect", listener: () => void): this;
- on(event: "data", listener: (data: Buffer) => void): this;
- on(event: "drain", listener: () => void): this;
- on(event: "end", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
- on(event: "timeout", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: (had_error: boolean) => void): this;
- once(event: "connect", listener: () => void): this;
- once(event: "data", listener: (data: Buffer) => void): this;
- once(event: "drain", listener: () => void): this;
- once(event: "end", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
- once(event: "timeout", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: (had_error: boolean) => void): this;
- prependListener(event: "connect", listener: () => void): this;
- prependListener(event: "data", listener: (data: Buffer) => void): this;
- prependListener(event: "drain", listener: () => void): this;
- prependListener(event: "end", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
- prependListener(event: "timeout", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: (had_error: boolean) => void): this;
- prependOnceListener(event: "connect", listener: () => void): this;
- prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
- prependOnceListener(event: "drain", listener: () => void): this;
- prependOnceListener(event: "end", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
- prependOnceListener(event: "timeout", listener: () => void): this;
- }
-
- export var Socket: {
- new (options?: { fd?: string; type?: string; allowHalfOpen?: boolean; }): Socket;
- };
-
- export interface ListenOptions {
- port?: number;
- host?: string;
- backlog?: number;
- path?: string;
- exclusive?: boolean;
- }
-
- export interface Server extends events.EventEmitter {
- listen(port: number, hostname?: string, backlog?: number, listeningListener?: Function): Server;
- listen(port: number, hostname?: string, listeningListener?: Function): Server;
- listen(port: number, backlog?: number, listeningListener?: Function): Server;
- listen(port: number, listeningListener?: Function): Server;
- listen(path: string, backlog?: number, listeningListener?: Function): Server;
- listen(path: string, listeningListener?: Function): Server;
- listen(options: ListenOptions, listeningListener?: Function): Server;
- listen(handle: any, backlog?: number, listeningListener?: Function): Server;
- listen(handle: any, listeningListener?: Function): Server;
- close(callback?: Function): Server;
- address(): { port: number; family: string; address: string; };
- getConnections(cb: (error: Error, count: number) => void): void;
- ref(): Server;
- unref(): Server;
- maxConnections: number;
- connections: number;
- listening: boolean;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. connection
- * 3. error
- * 4. listening
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "connection", listener: (socket: Socket) => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "listening", listener: () => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "connection", socket: Socket): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "listening"): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: () => void): this;
- on(event: "connection", listener: (socket: Socket) => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "listening", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: () => void): this;
- once(event: "connection", listener: (socket: Socket) => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "listening", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "connection", listener: (socket: Socket) => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "listening", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "listening", listener: () => void): this;
- }
- export function createServer(connectionListener?: (socket: Socket) => void): Server;
- export function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server;
- export function connect(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
- export function connect(port: number, host?: string, connectionListener?: Function): Socket;
- export function connect(path: string, connectionListener?: Function): Socket;
- export function createConnection(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
- export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
- export function createConnection(path: string, connectionListener?: Function): Socket;
- export function isIP(input: string): number;
- export function isIPv4(input: string): boolean;
- export function isIPv6(input: string): boolean;
-}
-
-declare module "dgram" {
- import * as events from "events";
-
- interface RemoteInfo {
- address: string;
- family: string;
- port: number;
- }
-
- interface AddressInfo {
- address: string;
- family: string;
- port: number;
- }
-
- interface BindOptions {
- port: number;
- address?: string;
- exclusive?: boolean;
- }
-
- interface SocketOptions {
- type: "udp4" | "udp6";
- reuseAddr?: boolean;
- }
-
- export function createSocket(type: string, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
- export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
-
- export interface Socket extends events.EventEmitter {
- send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
- send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
- bind(port?: number, address?: string, callback?: () => void): void;
- bind(options: BindOptions, callback?: Function): void;
- close(callback?: () => void): void;
- address(): AddressInfo;
- setBroadcast(flag: boolean): void;
- setTTL(ttl: number): void;
- setMulticastTTL(ttl: number): void;
- setMulticastLoopback(flag: boolean): void;
- addMembership(multicastAddress: string, multicastInterface?: string): void;
- dropMembership(multicastAddress: string, multicastInterface?: string): void;
- ref(): this;
- unref(): this;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. error
- * 3. listening
- * 4. message
- **/
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "listening", listener: () => void): this;
- addListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "listening"): boolean;
- emit(event: "message", msg: Buffer, rinfo: AddressInfo): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "listening", listener: () => void): this;
- on(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "listening", listener: () => void): this;
- once(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "listening", listener: () => void): this;
- prependListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "listening", listener: () => void): this;
- prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
- }
-}
-
-declare module "fs" {
- import * as stream from "stream";
- import * as events from "events";
-
- interface Stats {
- isFile(): boolean;
- isDirectory(): boolean;
- isBlockDevice(): boolean;
- isCharacterDevice(): boolean;
- isSymbolicLink(): boolean;
- isFIFO(): boolean;
- isSocket(): boolean;
- dev: number;
- ino: number;
- mode: number;
- nlink: number;
- uid: number;
- gid: number;
- rdev: number;
- size: number;
- blksize: number;
- blocks: number;
- atime: Date;
- mtime: Date;
- ctime: Date;
- birthtime: Date;
- }
-
- interface FSWatcher extends events.EventEmitter {
- close(): void;
-
- /**
- * events.EventEmitter
- * 1. change
- * 2. error
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
-
- on(event: string, listener: Function): this;
- on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- on(event: "error", listener: (code: number, signal: string) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- once(event: "error", listener: (code: number, signal: string) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
- }
-
- export interface ReadStream extends stream.Readable {
- close(): void;
- destroy(): void;
- bytesRead: number;
- path: string | Buffer;
-
- /**
- * events.EventEmitter
- * 1. open
- * 2. close
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "open", listener: (fd: number) => void): this;
- addListener(event: "close", listener: () => void): this;
-
- on(event: string, listener: Function): this;
- on(event: "open", listener: (fd: number) => void): this;
- on(event: "close", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "open", listener: (fd: number) => void): this;
- once(event: "close", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "open", listener: (fd: number) => void): this;
- prependListener(event: "close", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "open", listener: (fd: number) => void): this;
- prependOnceListener(event: "close", listener: () => void): this;
- }
-
- export interface WriteStream extends stream.Writable {
- close(): void;
- bytesWritten: number;
- path: string | Buffer;
-
- /**
- * events.EventEmitter
- * 1. open
- * 2. close
- */
- addListener(event: string, listener: Function): this;
- addListener(event: "open", listener: (fd: number) => void): this;
- addListener(event: "close", listener: () => void): this;
-
- on(event: string, listener: Function): this;
- on(event: "open", listener: (fd: number) => void): this;
- on(event: "close", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "open", listener: (fd: number) => void): this;
- once(event: "close", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "open", listener: (fd: number) => void): this;
- prependListener(event: "close", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "open", listener: (fd: number) => void): this;
- prependOnceListener(event: "close", listener: () => void): this;
- }
-
- /**
- * Asynchronous rename.
- * @param oldPath
- * @param newPath
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function rename(oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Synchronous rename
- * @param oldPath
- * @param newPath
- */
- export function renameSync(oldPath: string, newPath: string): void;
- export function truncate(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function truncate(path: string | Buffer, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function truncateSync(path: string | Buffer, len?: number): void;
- export function ftruncate(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function ftruncate(fd: number, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function ftruncateSync(fd: number, len?: number): void;
- export function chown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chownSync(path: string | Buffer, uid: number, gid: number): void;
- export function fchown(fd: number, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchownSync(fd: number, uid: number, gid: number): void;
- export function lchown(path: string | Buffer, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchownSync(path: string | Buffer, uid: number, gid: number): void;
- export function chmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chmodSync(path: string | Buffer, mode: number): void;
- export function chmodSync(path: string | Buffer, mode: string): void;
- export function fchmod(fd: number, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchmod(fd: number, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchmodSync(fd: number, mode: number): void;
- export function fchmodSync(fd: number, mode: string): void;
- export function lchmod(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchmod(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchmodSync(path: string | Buffer, mode: number): void;
- export function lchmodSync(path: string | Buffer, mode: string): void;
- export function stat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function lstat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function fstat(fd: number, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function statSync(path: string | Buffer): Stats;
- export function lstatSync(path: string | Buffer): Stats;
- export function fstatSync(fd: number): Stats;
- export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function linkSync(srcpath: string | Buffer, dstpath: string | Buffer): void;
- export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function symlinkSync(srcpath: string | Buffer, dstpath: string | Buffer, type?: string): void;
- export function readlink(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
- export function readlinkSync(path: string | Buffer): string;
- export function realpath(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
- export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
- export function realpathSync(path: string | Buffer, cache?: { [path: string]: string }): string;
- /**
- * Asynchronous unlink - deletes the file specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function unlink(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Synchronous unlink - deletes the file specified in {path}
- *
- * @param path
- */
- export function unlinkSync(path: string | Buffer): void;
- /**
- * Asynchronous rmdir - removes the directory specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function rmdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Synchronous rmdir - removes the directory specified in {path}
- *
- * @param path
- */
- export function rmdirSync(path: string | Buffer): void;
- /**
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string | Buffer, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string | Buffer, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string | Buffer, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Synchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdirSync(path: string | Buffer, mode?: number): void;
- /**
- * Synchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdirSync(path: string | Buffer, mode?: string): void;
- /**
- * Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
- *
- * @param prefix
- * @param callback The created folder path is passed as a string to the callback's second parameter.
- */
- export function mkdtemp(prefix: string, callback?: (err: NodeJS.ErrnoException, folder: string) => void): void;
- /**
- * Synchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
- *
- * @param prefix
- * @returns Returns the created folder path.
- */
- export function mkdtempSync(prefix: string): string;
- export function readdir(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, files: string[]) => void): void;
- export function readdirSync(path: string | Buffer): string[];
- export function close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function closeSync(fd: number): void;
- export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
- export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
- export function openSync(path: string | Buffer, flags: string | number, mode?: number): number;
- export function utimes(path: string | Buffer, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function utimesSync(path: string | Buffer, atime: number, mtime: number): void;
- export function utimesSync(path: string | Buffer, atime: Date, mtime: Date): void;
- export function futimes(fd: number, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function futimes(fd: number, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function futimesSync(fd: number, atime: number, mtime: number): void;
- export function futimesSync(fd: number, atime: Date, mtime: Date): void;
- export function fsync(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fsyncSync(fd: number): void;
- export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
- export function write(fd: number, buffer: Buffer, offset: number, length: number, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
- export function write(fd: number, data: any, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function write(fd: number, data: any, offset: number, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function write(fd: number, data: any, offset: number, encoding: string, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function writeSync(fd: number, buffer: Buffer, offset: number, length: number, position?: number | null): number;
- export function writeSync(fd: number, data: any, position?: number | null, enconding?: string): number;
- export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void;
- export function readSync(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): number;
- /**
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param encoding
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
- /**
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFile returns a string; otherwise it returns a Buffer.
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, options: { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
- /**
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFile returns a string; otherwise it returns a Buffer.
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, options: { flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
- /**
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
- /**
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param encoding
- */
- export function readFileSync(filename: string, encoding: string): string;
- /**
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFileSync returns a string; otherwise it returns a Buffer.
- */
- export function readFileSync(filename: string, options: { encoding: string; flag?: string; }): string;
- /**
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFileSync returns a string; otherwise it returns a Buffer.
- */
- export function readFileSync(filename: string, options?: { flag?: string; }): Buffer;
- export function writeFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void;
- export function writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void;
- export function appendFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void;
- export function appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void;
- export function watchFile(filename: string, listener: (curr: Stats, prev: Stats) => void): void;
- export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: (curr: Stats, prev: Stats) => void): void;
- export function unwatchFile(filename: string, listener?: (curr: Stats, prev: Stats) => void): void;
- export function watch(filename: string, listener?: (event: string, filename: string) => any): FSWatcher;
- export function watch(filename: string, encoding: string, listener?: (event: string, filename: string | Buffer) => any): FSWatcher;
- export function watch(filename: string, options: { persistent?: boolean; recursive?: boolean; encoding?: string }, listener?: (event: string, filename: string | Buffer) => any): FSWatcher;
- export function exists(path: string | Buffer, callback?: (exists: boolean) => void): void;
- export function existsSync(path: string | Buffer): boolean;
-
- export namespace constants {
- // File Access Constants
-
- /** Constant for fs.access(). File is visible to the calling process. */
- export const F_OK: number;
-
- /** Constant for fs.access(). File can be read by the calling process. */
- export const R_OK: number;
-
- /** Constant for fs.access(). File can be written by the calling process. */
- export const W_OK: number;
-
- /** Constant for fs.access(). File can be executed by the calling process. */
- export const X_OK: number;
-
- // File Open Constants
-
- /** Constant for fs.open(). Flag indicating to open a file for read-only access. */
- export const O_RDONLY: number;
-
- /** Constant for fs.open(). Flag indicating to open a file for write-only access. */
- export const O_WRONLY: number;
-
- /** Constant for fs.open(). Flag indicating to open a file for read-write access. */
- export const O_RDWR: number;
-
- /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */
- export const O_CREAT: number;
-
- /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */
- export const O_EXCL: number;
-
- /** Constant for fs.open(). Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one). */
- export const O_NOCTTY: number;
-
- /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */
- export const O_TRUNC: number;
-
- /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */
- export const O_APPEND: number;
-
- /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */
- export const O_DIRECTORY: number;
-
- /** Constant for fs.open(). Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only. */
- export const O_NOATIME: number;
-
- /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */
- export const O_NOFOLLOW: number;
-
- /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */
- export const O_SYNC: number;
-
- /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */
- export const O_SYMLINK: number;
-
- /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */
- export const O_DIRECT: number;
-
- /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */
- export const O_NONBLOCK: number;
-
- // File Type Constants
-
- /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */
- export const S_IFMT: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */
- export const S_IFREG: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */
- export const S_IFDIR: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */
- export const S_IFCHR: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */
- export const S_IFBLK: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */
- export const S_IFIFO: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */
- export const S_IFLNK: number;
-
- /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */
- export const S_IFSOCK: number;
-
- // File Mode Constants
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */
- export const S_IRWXU: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */
- export const S_IRUSR: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */
- export const S_IWUSR: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */
- export const S_IXUSR: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */
- export const S_IRWXG: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */
- export const S_IRGRP: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */
- export const S_IWGRP: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */
- export const S_IXGRP: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */
- export const S_IRWXO: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */
- export const S_IROTH: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */
- export const S_IWOTH: number;
-
- /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */
- export const S_IXOTH: number;
- }
-
- /** Tests a user's permissions for the file specified by path. */
- export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
- export function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException) => void): void;
- /** Synchronous version of fs.access. This throws if any accessibility checks fail, and does nothing otherwise. */
- export function accessSync(path: string | Buffer, mode?: number): void;
- export function createReadStream(path: string | Buffer, options?: {
- flags?: string;
- encoding?: string;
- fd?: number;
- mode?: number;
- autoClose?: boolean;
- start?: number;
- end?: number;
- }): ReadStream;
- export function createWriteStream(path: string | Buffer, options?: {
- flags?: string;
- encoding?: string;
- fd?: number;
- mode?: number;
- autoClose?: boolean;
- start?: number;
- }): WriteStream;
- export function fdatasync(fd: number, callback: Function): void;
- export function fdatasyncSync(fd: number): void;
-}
-
-declare module "path" {
-
- /**
- * A parsed path object generated by path.parse() or consumed by path.format().
- */
- export interface ParsedPath {
- /**
- * The root of the path such as '/' or 'c:\'
- */
- root: string;
- /**
- * The full directory path such as '/home/user/dir' or 'c:\path\dir'
- */
- dir: string;
- /**
- * The file name including extension (if any) such as 'index.html'
- */
- base: string;
- /**
- * The file extension (if any) such as '.html'
- */
- ext: string;
- /**
- * The file name without extension (if any) such as 'index'
- */
- name: string;
- }
-
- /**
- * Normalize a string path, reducing '..' and '.' parts.
- * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
- *
- * @param p string path to normalize.
- */
- export function normalize(p: string): string;
- /**
- * Join all arguments together and normalize the resulting path.
- * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
- *
- * @param paths paths to join.
- */
- export function join(...paths: string[]): string;
- /**
- * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
- *
- * Starting from leftmost {from} paramter, resolves {to} to an absolute path.
- *
- * If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
- *
- * @param pathSegments string paths to join. Non-string arguments are ignored.
- */
- export function resolve(...pathSegments: any[]): string;
- /**
- * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
- *
- * @param path path to test.
- */
- export function isAbsolute(path: string): boolean;
- /**
- * Solve the relative path from {from} to {to}.
- * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
- *
- * @param from
- * @param to
- */
- export function relative(from: string, to: string): string;
- /**
- * Return the directory name of a path. Similar to the Unix dirname command.
- *
- * @param p the path to evaluate.
- */
- export function dirname(p: string): string;
- /**
- * Return the last portion of a path. Similar to the Unix basename command.
- * Often used to extract the file name from a fully qualified path.
- *
- * @param p the path to evaluate.
- * @param ext optionally, an extension to remove from the result.
- */
- export function basename(p: string, ext?: string): string;
- /**
- * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
- * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
- *
- * @param p the path to evaluate.
- */
- export function extname(p: string): string;
- /**
- * The platform-specific file separator. '\\' or '/'.
- */
- export var sep: string;
- /**
- * The platform-specific file delimiter. ';' or ':'.
- */
- export var delimiter: string;
- /**
- * Returns an object from a path string - the opposite of format().
- *
- * @param pathString path to evaluate.
- */
- export function parse(pathString: string): ParsedPath;
- /**
- * Returns a path string from an object - the opposite of parse().
- *
- * @param pathString path to evaluate.
- */
- export function format(pathObject: ParsedPath): string;
-
- export module posix {
- export function normalize(p: string): string;
- export function join(...paths: any[]): string;
- export function resolve(...pathSegments: any[]): string;
- export function isAbsolute(p: string): boolean;
- export function relative(from: string, to: string): string;
- export function dirname(p: string): string;
- export function basename(p: string, ext?: string): string;
- export function extname(p: string): string;
- export var sep: string;
- export var delimiter: string;
- export function parse(p: string): ParsedPath;
- export function format(pP: ParsedPath): string;
- }
-
- export module win32 {
- export function normalize(p: string): string;
- export function join(...paths: any[]): string;
- export function resolve(...pathSegments: any[]): string;
- export function isAbsolute(p: string): boolean;
- export function relative(from: string, to: string): string;
- export function dirname(p: string): string;
- export function basename(p: string, ext?: string): string;
- export function extname(p: string): string;
- export var sep: string;
- export var delimiter: string;
- export function parse(p: string): ParsedPath;
- export function format(pP: ParsedPath): string;
- }
-}
-
-declare module "string_decoder" {
- export interface NodeStringDecoder {
- write(buffer: Buffer): string;
- end(buffer?: Buffer): string;
- }
- export var StringDecoder: {
- new (encoding?: string): NodeStringDecoder;
- };
-}
-
-declare module "tls" {
- import * as crypto from "crypto";
- import * as net from "net";
- import * as stream from "stream";
-
- var CLIENT_RENEG_LIMIT: number;
- var CLIENT_RENEG_WINDOW: number;
-
- export interface Certificate {
- /**
- * Country code.
- */
- C: string;
- /**
- * Street.
- */
- ST: string;
- /**
- * Locality.
- */
- L: string;
- /**
- * Organization.
- */
- O: string;
- /**
- * Organizational unit.
- */
- OU: string;
- /**
- * Common name.
- */
- CN: string;
- }
-
- export interface CipherNameAndProtocol {
- /**
- * The cipher name.
- */
- name: string;
- /**
- * SSL/TLS protocol version.
- */
- version: string;
- }
-
- export class TLSSocket extends net.Socket {
- /**
- * Construct a new tls.TLSSocket object from an existing TCP socket.
- */
- constructor(socket:net.Socket, options?: {
- /**
- * An optional TLS context object from tls.createSecureContext()
- */
- secureContext?: SecureContext,
- /**
- * If true the TLS socket will be instantiated in server-mode.
- * Defaults to false.
- */
- isServer?: boolean,
- /**
- * An optional net.Server instance.
- */
- server?: net.Server,
- /**
- * If true the server will request a certificate from clients that
- * connect and attempt to verify that certificate. Defaults to
- * false.
- */
- requestCert?: boolean,
- /**
- * If true the server will reject any connection which is not
- * authorized with the list of supplied CAs. This option only has an
- * effect if requestCert is true. Defaults to false.
- */
- rejectUnauthorized?: boolean,
- /**
- * An array of strings or a Buffer naming possible NPN protocols.
- * (Protocols should be ordered by their priority.)
- */
- NPNProtocols?: string[] | Buffer,
- /**
- * An array of strings or a Buffer naming possible ALPN protocols.
- * (Protocols should be ordered by their priority.) When the server
- * receives both NPN and ALPN extensions from the client, ALPN takes
- * precedence over NPN and the server does not send an NPN extension
- * to the client.
- */
- ALPNProtocols?: string[] | Buffer,
- /**
- * SNICallback(servername, cb) <Function> A function that will be
- * called if the client supports SNI TLS extension. Two arguments
- * will be passed when called: servername and cb. SNICallback should
- * invoke cb(null, ctx), where ctx is a SecureContext instance.
- * (tls.createSecureContext(...) can be used to get a proper
- * SecureContext.) If SNICallback wasn't provided the default callback
- * with high-level API will be used (see below).
- */
- SNICallback?: Function,
- /**
- * An optional Buffer instance containing a TLS session.
- */
- session?: Buffer,
- /**
- * If true, specifies that the OCSP status request extension will be
- * added to the client hello and an 'OCSPResponse' event will be
- * emitted on the socket before establishing a secure communication
- */
- requestOCSP?: boolean
- });
- /**
- * Returns the bound address, the address family name and port of the underlying socket as reported by
- * the operating system.
- * @returns {any} - An object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }.
- */
- address(): { port: number; family: string; address: string };
- /**
- * A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false.
- */
- authorized: boolean;
- /**
- * The reason why the peer's certificate has not been verified.
- * This property becomes available only when tlsSocket.authorized === false.
- */
- authorizationError: Error;
- /**
- * Static boolean value, always true.
- * May be used to distinguish TLS sockets from regular ones.
- */
- encrypted: boolean;
- /**
- * Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection.
- * @returns {CipherNameAndProtocol} - Returns an object representing the cipher name
- * and the SSL/TLS protocol version of the current connection.
- */
- getCipher(): CipherNameAndProtocol;
- /**
- * Returns an object representing the peer's certificate.
- * The returned object has some properties corresponding to the field of the certificate.
- * If detailed argument is true the full chain with issuer property will be returned,
- * if false only the top certificate without issuer property.
- * If the peer does not provide a certificate, it returns null or an empty object.
- * @param {boolean} detailed - If true; the full chain with issuer property will be returned.
- * @returns {any} - An object representing the peer's certificate.
- */
- getPeerCertificate(detailed?: boolean): {
- subject: Certificate;
- issuerInfo: Certificate;
- issuer: Certificate;
- raw: any;
- valid_from: string;
- valid_to: string;
- fingerprint: string;
- serialNumber: string;
- };
- /**
- * Could be used to speed up handshake establishment when reconnecting to the server.
- * @returns {any} - ASN.1 encoded TLS session or undefined if none was negotiated.
- */
- getSession(): any;
- /**
- * NOTE: Works only with client TLS sockets.
- * Useful only for debugging, for session reuse provide session option to tls.connect().
- * @returns {any} - TLS session ticket or undefined if none was negotiated.
- */
- getTLSTicket(): any;
- /**
- * The string representation of the local IP address.
- */
- localAddress: string;
- /**
- * The numeric representation of the local port.
- */
- localPort: number;
- /**
- * The string representation of the remote IP address.
- * For example, '74.125.127.100' or '2001:4860:a005::68'.
- */
- remoteAddress: string;
- /**
- * The string representation of the remote IP family. 'IPv4' or 'IPv6'.
- */
- remoteFamily: string;
- /**
- * The numeric representation of the remote port. For example, 443.
- */
- remotePort: number;
- /**
- * Initiate TLS renegotiation process.
- *
- * NOTE: Can be used to request peer's certificate after the secure connection has been established.
- * ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handshakeTimeout timeout.
- * @param {TlsOptions} options - The options may contain the following fields: rejectUnauthorized,
- * requestCert (See tls.createServer() for details).
- * @param {Function} callback - callback(err) will be executed with null as err, once the renegotiation
- * is successfully completed.
- */
- renegotiate(options: TlsOptions, callback: (err: Error) => any): any;
- /**
- * Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
- * Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
- * the TLS layer until the entire fragment is received and its integrity is verified;
- * large fragments can span multiple roundtrips, and their processing can be delayed due to packet
- * loss or reordering. However, smaller fragments add extra TLS framing bytes and CPU overhead,
- * which may decrease overall server throughput.
- * @param {number} size - TLS fragment size (default and maximum value is: 16384, minimum is: 512).
- * @returns {boolean} - Returns true on success, false otherwise.
- */
- setMaxSendFragment(size: number): boolean;
-
- /**
- * events.EventEmitter
- * 1. OCSPResponse
- * 2. secureConnect
- **/
- addListener(event: string, listener: Function): this;
- addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
- addListener(event: "secureConnect", listener: () => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "OCSPResponse", response: Buffer): boolean;
- emit(event: "secureConnect"): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
- on(event: "secureConnect", listener: () => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
- once(event: "secureConnect", listener: () => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
- prependListener(event: "secureConnect", listener: () => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
- prependOnceListener(event: "secureConnect", listener: () => void): this;
- }
-
- export interface TlsOptions {
- host?: string;
- port?: number;
- pfx?: string | Buffer[];
- key?: string | string[] | Buffer | any[];
- passphrase?: string;
- cert?: string | string[] | Buffer | Buffer[];
- ca?: string | string[] | Buffer | Buffer[];
- crl?: string | string[];
- ciphers?: string;
- honorCipherOrder?: boolean;
- requestCert?: boolean;
- rejectUnauthorized?: boolean;
- NPNProtocols?: string[] | Buffer;
- SNICallback?: (servername: string, cb: (err: Error, ctx: SecureContext) => any) => any;
- ecdhCurve?: string;
- dhparam?: string | Buffer;
- handshakeTimeout?: number;
- ALPNProtocols?: string[] | Buffer;
- sessionTimeout?: number;
- ticketKeys?: any;
- sessionIdContext?: string;
- secureProtocol?: string;
- }
-
- export interface ConnectionOptions {
- host?: string;
- port?: number;
- socket?: net.Socket;
- pfx?: string | Buffer
- key?: string | string[] | Buffer | Buffer[];
- passphrase?: string;
- cert?: string | string[] | Buffer | Buffer[];
- ca?: string | Buffer | (string | Buffer)[];
- rejectUnauthorized?: boolean;
- NPNProtocols?: (string | Buffer)[];
- servername?: string;
- path?: string;
- ALPNProtocols?: (string | Buffer)[];
- checkServerIdentity?: (servername: string, cert: string | Buffer | (string | Buffer)[]) => any;
- secureProtocol?: string;
- secureContext?: Object;
- session?: Buffer;
- minDHSize?: number;
- }
-
- export interface Server extends net.Server {
- close(callback?: Function): Server;
- address(): { port: number; family: string; address: string; };
- addContext(hostName: string, credentials: {
- key: string;
- cert: string;
- ca: string;
- }): void;
- maxConnections: number;
- connections: number;
-
- /**
- * events.EventEmitter
- * 1. tlsClientError
- * 2. newSession
- * 3. OCSPRequest
- * 4. resumeSession
- * 5. secureConnection
- **/
- addListener(event: string, listener: Function): this;
- addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
- addListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
- addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
- addListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
- addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
- emit(event: "newSession", sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void): boolean;
- emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: Function): boolean;
- emit(event: "resumeSession", sessionId: any, callback: (err: Error, sessionData: any) => void): boolean;
- emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
- on(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
- on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
- on(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
- on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
- once(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
- once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
- once(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
- once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
- prependListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
- prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
- prependListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
- prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
- prependOnceListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
- prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
- prependOnceListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
- prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
- }
-
- export interface ClearTextStream extends stream.Duplex {
- authorized: boolean;
- authorizationError: Error;
- getPeerCertificate(): any;
- getCipher: {
- name: string;
- version: string;
- };
- address: {
- port: number;
- family: string;
- address: string;
- };
- remoteAddress: string;
- remotePort: number;
- }
-
- export interface SecurePair {
- encrypted: any;
- cleartext: any;
- }
-
- export interface SecureContextOptions {
- pfx?: string | Buffer;
- key?: string | Buffer;
- passphrase?: string;
- cert?: string | Buffer;
- ca?: string | Buffer;
- crl?: string | string[]
- ciphers?: string;
- honorCipherOrder?: boolean;
- }
-
- export interface SecureContext {
- context: any;
- }
-
- export function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
- export function connect(options: ConnectionOptions, secureConnectionListener?: () => void): TLSSocket;
- export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
- export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
- export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
- export function createSecureContext(details: SecureContextOptions): SecureContext;
-}
-
-declare module "crypto" {
- export interface Certificate {
- exportChallenge(spkac: string | Buffer): Buffer;
- exportPublicKey(spkac: string | Buffer): Buffer;
- verifySpkac(spkac: Buffer): boolean;
- }
- export var Certificate: {
- new (): Certificate;
- (): Certificate;
- }
-
- export var fips: boolean;
-
- export interface CredentialDetails {
- pfx: string;
- key: string;
- passphrase: string;
- cert: string;
- ca: string | string[];
- crl: string | string[];
- ciphers: string;
- }
- export interface Credentials { context?: any; }
- export function createCredentials(details: CredentialDetails): Credentials;
- export function createHash(algorithm: string): Hash;
- export function createHmac(algorithm: string, key: string | Buffer): Hmac;
-
- type Utf8AsciiLatin1Encoding = "utf8" | "ascii" | "latin1";
- type HexBase64Latin1Encoding = "latin1" | "hex" | "base64";
- type Utf8AsciiBinaryEncoding = "utf8" | "ascii" | "binary";
- type HexBase64BinaryEncoding = "binary" | "base64" | "hex";
- type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
-
- export interface Hash extends NodeJS.ReadWriteStream {
- update(data: string | Buffer): Hash;
- update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Hash;
- digest(): Buffer;
- digest(encoding: HexBase64Latin1Encoding): string;
- }
- export interface Hmac extends NodeJS.ReadWriteStream {
- update(data: string | Buffer): Hmac;
- update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Hmac;
- digest(): Buffer;
- digest(encoding: HexBase64Latin1Encoding): string;
- }
- export function createCipher(algorithm: string, password: any): Cipher;
- export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
- export interface Cipher extends NodeJS.ReadWriteStream {
- update(data: Buffer): Buffer;
- update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer;
- update(data: Buffer, input_encoding: any, output_encoding: HexBase64BinaryEncoding): string;
- update(data: string, input_encoding: Utf8AsciiBinaryEncoding, output_encoding: HexBase64BinaryEncoding): string;
- final(): Buffer;
- final(output_encoding: string): string;
- setAutoPadding(auto_padding?: boolean): void;
- getAuthTag(): Buffer;
- setAAD(buffer: Buffer): void;
- }
- export function createDecipher(algorithm: string, password: any): Decipher;
- export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
- export interface Decipher extends NodeJS.ReadWriteStream {
- update(data: Buffer): Buffer;
- update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer;
- update(data: Buffer, input_encoding: any, output_encoding: Utf8AsciiBinaryEncoding): string;
- update(data: string, input_encoding: HexBase64BinaryEncoding, output_encoding: Utf8AsciiBinaryEncoding): string;
- final(): Buffer;
- final(output_encoding: string): string;
- setAutoPadding(auto_padding?: boolean): void;
- setAuthTag(tag: Buffer): void;
- setAAD(buffer: Buffer): void;
- }
- export function createSign(algorithm: string): Signer;
- export interface Signer extends NodeJS.WritableStream {
- update(data: string | Buffer): Signer;
- update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Signer;
- sign(private_key: string | { key: string; passphrase: string }): Buffer;
- sign(private_key: string | { key: string; passphrase: string }, output_format: HexBase64Latin1Encoding): string;
- }
- export function createVerify(algorith: string): Verify;
- export interface Verify extends NodeJS.WritableStream {
- update(data: string | Buffer): Verify;
- update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Verify;
- verify(object: string, signature: Buffer): boolean;
- verify(object: string, signature: string, signature_format: HexBase64Latin1Encoding): boolean;
- }
- export function createDiffieHellman(prime_length: number, generator?: number): DiffieHellman;
- export function createDiffieHellman(prime: Buffer): DiffieHellman;
- export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding): DiffieHellman;
- export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: number | Buffer): DiffieHellman;
- export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: string, generator_encoding: HexBase64Latin1Encoding): DiffieHellman;
- export interface DiffieHellman {
- generateKeys(): Buffer;
- generateKeys(encoding: HexBase64Latin1Encoding): string;
- computeSecret(other_public_key: Buffer): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
- getPrime(): Buffer;
- getPrime(encoding: HexBase64Latin1Encoding): string;
- getGenerator(): Buffer;
- getGenerator(encoding: HexBase64Latin1Encoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: HexBase64Latin1Encoding): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: HexBase64Latin1Encoding): string;
- setPublicKey(public_key: Buffer): void;
- setPublicKey(public_key: string, encoding: string): void;
- setPrivateKey(private_key: Buffer): void;
- setPrivateKey(private_key: string, encoding: string): void;
- verifyError: number;
- }
- export function getDiffieHellman(group_name: string): DiffieHellman;
- export function pbkdf2(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
- export function pbkdf2Sync(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string): Buffer;
- export function randomBytes(size: number): Buffer;
- export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
- export function pseudoRandomBytes(size: number): Buffer;
- export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
- export function randomFillSync(buffer: Buffer | Uint8Array, offset?: number, size?: number): Buffer;
- export function randomFill(buffer: Buffer, callback: (err: Error, buf: Buffer) => void): void;
- export function randomFill(buffer: Uint8Array, callback: (err: Error, buf: Uint8Array) => void): void;
- export function randomFill(buffer: Buffer, offset: number, callback: (err: Error, buf: Buffer) => void): void;
- export function randomFill(buffer: Uint8Array, offset: number, callback: (err: Error, buf: Uint8Array) => void): void;
- export function randomFill(buffer: Buffer, offset: number, size: number, callback: (err: Error, buf: Buffer) => void): void;
- export function randomFill(buffer: Uint8Array, offset: number, size: number, callback: (err: Error, buf: Uint8Array) => void): void;
- export interface RsaPublicKey {
- key: string;
- padding?: number;
- }
- export interface RsaPrivateKey {
- key: string;
- passphrase?: string,
- padding?: number;
- }
- export function publicEncrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer
- export function privateDecrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer
- export function privateEncrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer
- export function publicDecrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer
- export function getCiphers(): string[];
- export function getCurves(): string[];
- export function getHashes(): string[];
- export interface ECDH {
- generateKeys(): Buffer;
- generateKeys(encoding: HexBase64Latin1Encoding): string;
- generateKeys(encoding: HexBase64Latin1Encoding, format: ECDHKeyFormat): string;
- computeSecret(other_public_key: Buffer): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: HexBase64Latin1Encoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: HexBase64Latin1Encoding): string;
- getPublicKey(encoding: HexBase64Latin1Encoding, format: ECDHKeyFormat): string;
- setPrivateKey(private_key: Buffer): void;
- setPrivateKey(private_key: string, encoding: HexBase64Latin1Encoding): void;
- }
- export function createECDH(curve_name: string): ECDH;
- export function timingSafeEqual(a: Buffer, b: Buffer): boolean;
- export var DEFAULT_ENCODING: string;
-}
-
-declare module "stream" {
- import * as events from "events";
-
- class internal extends events.EventEmitter {
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
- }
-
- namespace internal {
-
- export class Stream extends internal { }
-
- export interface ReadableOptions {
- highWaterMark?: number;
- encoding?: string;
- objectMode?: boolean;
- read?: (this: Readable, size?: number) => any;
- }
-
- export class Readable extends Stream implements NodeJS.ReadableStream {
- readable: boolean;
- constructor(opts?: ReadableOptions);
- _read(size: number): void;
- read(size?: number): any;
- setEncoding(encoding: string): this;
- pause(): this;
- resume(): this;
- isPaused(): boolean;
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
- unpipe<T extends NodeJS.WritableStream>(destination?: T): this;
- unshift(chunk: any): void;
- wrap(oldStream: NodeJS.ReadableStream): Readable;
- push(chunk: any, encoding?: string): boolean;
-
- /**
- * Event emitter
- * The defined events on documents including:
- * 1. close
- * 2. data
- * 3. end
- * 4. readable
- * 5. error
- **/
- addListener(event: string, listener: Function): this;
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- addListener(event: "end", listener: () => void): this;
- addListener(event: "readable", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "data", chunk: Buffer | string): boolean;
- emit(event: "end"): boolean;
- emit(event: "readable"): boolean;
- emit(event: "error", err: Error): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: () => void): this;
- on(event: "data", listener: (chunk: Buffer | string) => void): this;
- on(event: "end", listener: () => void): this;
- on(event: "readable", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: () => void): this;
- once(event: "data", listener: (chunk: Buffer | string) => void): this;
- once(event: "end", listener: () => void): this;
- once(event: "readable", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- prependListener(event: "end", listener: () => void): this;
- prependListener(event: "readable", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- prependOnceListener(event: "end", listener: () => void): this;
- prependOnceListener(event: "readable", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
-
- removeListener(event: string, listener: Function): this;
- removeListener(event: "close", listener: () => void): this;
- removeListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- removeListener(event: "end", listener: () => void): this;
- removeListener(event: "readable", listener: () => void): this;
- removeListener(event: "error", listener: (err: Error) => void): this;
- }
-
- export interface WritableOptions {
- highWaterMark?: number;
- decodeStrings?: boolean;
- objectMode?: boolean;
- write?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
- writev?: (chunks: { chunk: string | Buffer, encoding: string }[], callback: Function) => any;
- }
-
- export class Writable extends Stream implements NodeJS.WritableStream {
- writable: boolean;
- constructor(opts?: WritableOptions);
- _write(chunk: any, encoding: string, callback: Function): void;
- write(chunk: any, cb?: Function): boolean;
- write(chunk: any, encoding?: string, cb?: Function): boolean;
- setDefaultEncoding(encoding: string): this;
- end(): void;
- end(chunk: any, cb?: Function): void;
- end(chunk: any, encoding?: string, cb?: Function): void;
-
- /**
- * Event emitter
- * The defined events on documents including:
- * 1. close
- * 2. drain
- * 3. error
- * 4. finish
- * 5. pipe
- * 6. unpipe
- **/
- addListener(event: string, listener: Function): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "drain", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "finish", listener: () => void): this;
- addListener(event: "pipe", listener: (src: Readable) => void): this;
- addListener(event: "unpipe", listener: (src: Readable) => void): this;
-
- emit(event: string, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "drain", chunk: Buffer | string): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "finish"): boolean;
- emit(event: "pipe", src: Readable): boolean;
- emit(event: "unpipe", src: Readable): boolean;
-
- on(event: string, listener: Function): this;
- on(event: "close", listener: () => void): this;
- on(event: "drain", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "finish", listener: () => void): this;
- on(event: "pipe", listener: (src: Readable) => void): this;
- on(event: "unpipe", listener: (src: Readable) => void): this;
-
- once(event: string, listener: Function): this;
- once(event: "close", listener: () => void): this;
- once(event: "drain", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "finish", listener: () => void): this;
- once(event: "pipe", listener: (src: Readable) => void): this;
- once(event: "unpipe", listener: (src: Readable) => void): this;
-
- prependListener(event: string, listener: Function): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "drain", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "finish", listener: () => void): this;
- prependListener(event: "pipe", listener: (src: Readable) => void): this;
- prependListener(event: "unpipe", listener: (src: Readable) => void): this;
-
- prependOnceListener(event: string, listener: Function): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "drain", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "finish", listener: () => void): this;
- prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
- prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
-
- removeListener(event: string, listener: Function): this;
- removeListener(event: "close", listener: () => void): this;
- removeListener(event: "drain", listener: () => void): this;
- removeListener(event: "error", listener: (err: Error) => void): this;
- removeListener(event: "finish", listener: () => void): this;
- removeListener(event: "pipe", listener: (src: Readable) => void): this;
- removeListener(event: "unpipe", listener: (src: Readable) => void): this;
- }
-
- export interface DuplexOptions extends ReadableOptions, WritableOptions {
- allowHalfOpen?: boolean;
- readableObjectMode?: boolean;
- writableObjectMode?: boolean;
- }
-
- // Note: Duplex extends both Readable and Writable.
- export class Duplex extends Readable implements Writable {
- writable: boolean;
- constructor(opts?: DuplexOptions);
- _write(chunk: any, encoding: string, callback: Function): void;
- write(chunk: any, cb?: Function): boolean;
- write(chunk: any, encoding?: string, cb?: Function): boolean;
- setDefaultEncoding(encoding: string): this;
- end(): void;
- end(chunk: any, cb?: Function): void;
- end(chunk: any, encoding?: string, cb?: Function): void;
- }
-
- export interface TransformOptions extends DuplexOptions {
- transform?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
- flush?: (callback: Function) => any;
- }
-
- export class Transform extends Duplex {
- constructor(opts?: TransformOptions);
- _transform(chunk: any, encoding: string, callback: Function): void;
- }
-
- export class PassThrough extends Transform { }
- }
-
- export = internal;
-}
-
-declare module "util" {
- export interface InspectOptions {
- showHidden?: boolean;
- depth?: number;
- colors?: boolean;
- customInspect?: boolean;
- }
-
- export function format(format: any, ...param: any[]): string;
- export function debug(string: string): void;
- export function error(...param: any[]): void;
- export function puts(...param: any[]): void;
- export function print(...param: any[]): void;
- export function log(string: string): void;
- export function inspect(object: any, showHidden?: boolean, depth?: number, color?: boolean): string;
- export function inspect(object: any, options: InspectOptions): string;
- export function isArray(object: any): object is any[];
- export function isRegExp(object: any): object is RegExp;
- export function isDate(object: any): object is Date;
- export function isError(object: any): object is Error;
- export function inherits(constructor: any, superConstructor: any): void;
- export function debuglog(key: string): (msg: string, ...param: any[]) => void;
- export function isBoolean(object: any): object is boolean;
- export function isBuffer(object: any): object is Buffer;
- export function isFunction(object: any): boolean;
- export function isNull(object: any): object is null;
- export function isNullOrUndefined(object: any): object is null | undefined;
- export function isNumber(object: any): object is number;
- export function isObject(object: any): boolean;
- export function isPrimitive(object: any): boolean;
- export function isString(object: any): object is string;
- export function isSymbol(object: any): object is symbol;
- export function isUndefined(object: any): object is undefined;
- export function deprecate(fn: Function, message: string): Function;
-}
-
-declare module "assert" {
- function internal(value: any, message?: string): void;
- namespace internal {
- export class AssertionError implements Error {
- name: string;
- message: string;
- actual: any;
- expected: any;
- operator: string;
- generatedMessage: boolean;
-
- constructor(options?: {
- message?: string; actual?: any; expected?: any;
- operator?: string; stackStartFunction?: Function
- });
- }
-
- export function fail(actual: any, expected: any, message: string, operator: string): void;
- export function ok(value: any, message?: string): void;
- export function equal(actual: any, expected: any, message?: string): void;
- export function notEqual(actual: any, expected: any, message?: string): void;
- export function deepEqual(actual: any, expected: any, message?: string): void;
- export function notDeepEqual(acutal: any, expected: any, message?: string): void;
- export function strictEqual(actual: any, expected: any, message?: string): void;
- export function notStrictEqual(actual: any, expected: any, message?: string): void;
- export function deepStrictEqual(actual: any, expected: any, message?: string): void;
- export function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
- export var throws: {
- (block: Function, message?: string): void;
- (block: Function, error: Function, message?: string): void;
- (block: Function, error: RegExp, message?: string): void;
- (block: Function, error: (err: any) => boolean, message?: string): void;
- };
-
- export var doesNotThrow: {
- (block: Function, message?: string): void;
- (block: Function, error: Function, message?: string): void;
- (block: Function, error: RegExp, message?: string): void;
- (block: Function, error: (err: any) => boolean, message?: string): void;
- };
-
- export function ifError(value: any): void;
- }
-
- export = internal;
-}
-
-declare module "tty" {
- import * as net from "net";
-
- export function isatty(fd: number): boolean;
- export interface ReadStream extends net.Socket {
- isRaw: boolean;
- setRawMode(mode: boolean): void;
- isTTY: boolean;
- }
- export interface WriteStream extends net.Socket {
- columns: number;
- rows: number;
- isTTY: boolean;
- }
-}
-
-declare module "domain" {
- import * as events from "events";
-
- export class Domain extends events.EventEmitter implements NodeJS.Domain {
- run(fn: Function): void;
- add(emitter: events.EventEmitter): void;
- remove(emitter: events.EventEmitter): void;
- bind(cb: (err: Error, data: any) => any): any;
- intercept(cb: (data: any) => any): any;
- dispose(): void;
- members: any[];
- enter(): void;
- exit(): void;
- }
-
- export function create(): Domain;
-}
-
-declare module "constants" {
- export var E2BIG: number;
- export var EACCES: number;
- export var EADDRINUSE: number;
- export var EADDRNOTAVAIL: number;
- export var EAFNOSUPPORT: number;
- export var EAGAIN: number;
- export var EALREADY: number;
- export var EBADF: number;
- export var EBADMSG: number;
- export var EBUSY: number;
- export var ECANCELED: number;
- export var ECHILD: number;
- export var ECONNABORTED: number;
- export var ECONNREFUSED: number;
- export var ECONNRESET: number;
- export var EDEADLK: number;
- export var EDESTADDRREQ: number;
- export var EDOM: number;
- export var EEXIST: number;
- export var EFAULT: number;
- export var EFBIG: number;
- export var EHOSTUNREACH: number;
- export var EIDRM: number;
- export var EILSEQ: number;
- export var EINPROGRESS: number;
- export var EINTR: number;
- export var EINVAL: number;
- export var EIO: number;
- export var EISCONN: number;
- export var EISDIR: number;
- export var ELOOP: number;
- export var EMFILE: number;
- export var EMLINK: number;
- export var EMSGSIZE: number;
- export var ENAMETOOLONG: number;
- export var ENETDOWN: number;
- export var ENETRESET: number;
- export var ENETUNREACH: number;
- export var ENFILE: number;
- export var ENOBUFS: number;
- export var ENODATA: number;
- export var ENODEV: number;
- export var ENOENT: number;
- export var ENOEXEC: number;
- export var ENOLCK: number;
- export var ENOLINK: number;
- export var ENOMEM: number;
- export var ENOMSG: number;
- export var ENOPROTOOPT: number;
- export var ENOSPC: number;
- export var ENOSR: number;
- export var ENOSTR: number;
- export var ENOSYS: number;
- export var ENOTCONN: number;
- export var ENOTDIR: number;
- export var ENOTEMPTY: number;
- export var ENOTSOCK: number;
- export var ENOTSUP: number;
- export var ENOTTY: number;
- export var ENXIO: number;
- export var EOPNOTSUPP: number;
- export var EOVERFLOW: number;
- export var EPERM: number;
- export var EPIPE: number;
- export var EPROTO: number;
- export var EPROTONOSUPPORT: number;
- export var EPROTOTYPE: number;
- export var ERANGE: number;
- export var EROFS: number;
- export var ESPIPE: number;
- export var ESRCH: number;
- export var ETIME: number;
- export var ETIMEDOUT: number;
- export var ETXTBSY: number;
- export var EWOULDBLOCK: number;
- export var EXDEV: number;
- export var WSAEINTR: number;
- export var WSAEBADF: number;
- export var WSAEACCES: number;
- export var WSAEFAULT: number;
- export var WSAEINVAL: number;
- export var WSAEMFILE: number;
- export var WSAEWOULDBLOCK: number;
- export var WSAEINPROGRESS: number;
- export var WSAEALREADY: number;
- export var WSAENOTSOCK: number;
- export var WSAEDESTADDRREQ: number;
- export var WSAEMSGSIZE: number;
- export var WSAEPROTOTYPE: number;
- export var WSAENOPROTOOPT: number;
- export var WSAEPROTONOSUPPORT: number;
- export var WSAESOCKTNOSUPPORT: number;
- export var WSAEOPNOTSUPP: number;
- export var WSAEPFNOSUPPORT: number;
- export var WSAEAFNOSUPPORT: number;
- export var WSAEADDRINUSE: number;
- export var WSAEADDRNOTAVAIL: number;
- export var WSAENETDOWN: number;
- export var WSAENETUNREACH: number;
- export var WSAENETRESET: number;
- export var WSAECONNABORTED: number;
- export var WSAECONNRESET: number;
- export var WSAENOBUFS: number;
- export var WSAEISCONN: number;
- export var WSAENOTCONN: number;
- export var WSAESHUTDOWN: number;
- export var WSAETOOMANYREFS: number;
- export var WSAETIMEDOUT: number;
- export var WSAECONNREFUSED: number;
- export var WSAELOOP: number;
- export var WSAENAMETOOLONG: number;
- export var WSAEHOSTDOWN: number;
- export var WSAEHOSTUNREACH: number;
- export var WSAENOTEMPTY: number;
- export var WSAEPROCLIM: number;
- export var WSAEUSERS: number;
- export var WSAEDQUOT: number;
- export var WSAESTALE: number;
- export var WSAEREMOTE: number;
- export var WSASYSNOTREADY: number;
- export var WSAVERNOTSUPPORTED: number;
- export var WSANOTINITIALISED: number;
- export var WSAEDISCON: number;
- export var WSAENOMORE: number;
- export var WSAECANCELLED: number;
- export var WSAEINVALIDPROCTABLE: number;
- export var WSAEINVALIDPROVIDER: number;
- export var WSAEPROVIDERFAILEDINIT: number;
- export var WSASYSCALLFAILURE: number;
- export var WSASERVICE_NOT_FOUND: number;
- export var WSATYPE_NOT_FOUND: number;
- export var WSA_E_NO_MORE: number;
- export var WSA_E_CANCELLED: number;
- export var WSAEREFUSED: number;
- export var SIGHUP: number;
- export var SIGINT: number;
- export var SIGILL: number;
- export var SIGABRT: number;
- export var SIGFPE: number;
- export var SIGKILL: number;
- export var SIGSEGV: number;
- export var SIGTERM: number;
- export var SIGBREAK: number;
- export var SIGWINCH: number;
- export var SSL_OP_ALL: number;
- export var SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
- export var SSL_OP_CIPHER_SERVER_PREFERENCE: number;
- export var SSL_OP_CISCO_ANYCONNECT: number;
- export var SSL_OP_COOKIE_EXCHANGE: number;
- export var SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
- export var SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
- export var SSL_OP_EPHEMERAL_RSA: number;
- export var SSL_OP_LEGACY_SERVER_CONNECT: number;
- export var SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
- export var SSL_OP_MICROSOFT_SESS_ID_BUG: number;
- export var SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
- export var SSL_OP_NETSCAPE_CA_DN_BUG: number;
- export var SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
- export var SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
- export var SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
- export var SSL_OP_NO_COMPRESSION: number;
- export var SSL_OP_NO_QUERY_MTU: number;
- export var SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
- export var SSL_OP_NO_SSLv2: number;
- export var SSL_OP_NO_SSLv3: number;
- export var SSL_OP_NO_TICKET: number;
- export var SSL_OP_NO_TLSv1: number;
- export var SSL_OP_NO_TLSv1_1: number;
- export var SSL_OP_NO_TLSv1_2: number;
- export var SSL_OP_PKCS1_CHECK_1: number;
- export var SSL_OP_PKCS1_CHECK_2: number;
- export var SSL_OP_SINGLE_DH_USE: number;
- export var SSL_OP_SINGLE_ECDH_USE: number;
- export var SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
- export var SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
- export var SSL_OP_TLS_BLOCK_PADDING_BUG: number;
- export var SSL_OP_TLS_D5_BUG: number;
- export var SSL_OP_TLS_ROLLBACK_BUG: number;
- export var ENGINE_METHOD_DSA: number;
- export var ENGINE_METHOD_DH: number;
- export var ENGINE_METHOD_RAND: number;
- export var ENGINE_METHOD_ECDH: number;
- export var ENGINE_METHOD_ECDSA: number;
- export var ENGINE_METHOD_CIPHERS: number;
- export var ENGINE_METHOD_DIGESTS: number;
- export var ENGINE_METHOD_STORE: number;
- export var ENGINE_METHOD_PKEY_METHS: number;
- export var ENGINE_METHOD_PKEY_ASN1_METHS: number;
- export var ENGINE_METHOD_ALL: number;
- export var ENGINE_METHOD_NONE: number;
- export var DH_CHECK_P_NOT_SAFE_PRIME: number;
- export var DH_CHECK_P_NOT_PRIME: number;
- export var DH_UNABLE_TO_CHECK_GENERATOR: number;
- export var DH_NOT_SUITABLE_GENERATOR: number;
- export var NPN_ENABLED: number;
- export var RSA_PKCS1_PADDING: number;
- export var RSA_SSLV23_PADDING: number;
- export var RSA_NO_PADDING: number;
- export var RSA_PKCS1_OAEP_PADDING: number;
- export var RSA_X931_PADDING: number;
- export var RSA_PKCS1_PSS_PADDING: number;
- export var POINT_CONVERSION_COMPRESSED: number;
- export var POINT_CONVERSION_UNCOMPRESSED: number;
- export var POINT_CONVERSION_HYBRID: number;
- export var O_RDONLY: number;
- export var O_WRONLY: number;
- export var O_RDWR: number;
- export var S_IFMT: number;
- export var S_IFREG: number;
- export var S_IFDIR: number;
- export var S_IFCHR: number;
- export var S_IFBLK: number;
- export var S_IFIFO: number;
- export var S_IFSOCK: number;
- export var S_IRWXU: number;
- export var S_IRUSR: number;
- export var S_IWUSR: number;
- export var S_IXUSR: number;
- export var S_IRWXG: number;
- export var S_IRGRP: number;
- export var S_IWGRP: number;
- export var S_IXGRP: number;
- export var S_IRWXO: number;
- export var S_IROTH: number;
- export var S_IWOTH: number;
- export var S_IXOTH: number;
- export var S_IFLNK: number;
- export var O_CREAT: number;
- export var O_EXCL: number;
- export var O_NOCTTY: number;
- export var O_DIRECTORY: number;
- export var O_NOATIME: number;
- export var O_NOFOLLOW: number;
- export var O_SYNC: number;
- export var O_SYMLINK: number;
- export var O_DIRECT: number;
- export var O_NONBLOCK: number;
- export var O_TRUNC: number;
- export var O_APPEND: number;
- export var F_OK: number;
- export var R_OK: number;
- export var W_OK: number;
- export var X_OK: number;
- export var UV_UDP_REUSEADDR: number;
- export var SIGQUIT: number;
- export var SIGTRAP: number;
- export var SIGIOT: number;
- export var SIGBUS: number;
- export var SIGUSR1: number;
- export var SIGUSR2: number;
- export var SIGPIPE: number;
- export var SIGALRM: number;
- export var SIGCHLD: number;
- export var SIGSTKFLT: number;
- export var SIGCONT: number;
- export var SIGSTOP: number;
- export var SIGTSTP: number;
- export var SIGTTIN: number;
- export var SIGTTOU: number;
- export var SIGURG: number;
- export var SIGXCPU: number;
- export var SIGXFSZ: number;
- export var SIGVTALRM: number;
- export var SIGPROF: number;
- export var SIGIO: number;
- export var SIGPOLL: number;
- export var SIGPWR: number;
- export var SIGSYS: number;
- export var SIGUNUSED: number;
- export var defaultCoreCipherList: string;
- export var defaultCipherList: string;
- export var ENGINE_METHOD_RSA: number;
- export var ALPN_ENABLED: number;
-}
-
-declare module "process" {
- export = process;
-}
-
-declare module "v8" {
- interface HeapSpaceInfo {
- space_name: string;
- space_size: number;
- space_used_size: number;
- space_available_size: number;
- physical_space_size: number;
- }
-
- //** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */
- type DoesZapCodeSpaceFlag = 0 | 1;
-
- interface HeapInfo {
- total_heap_size: number;
- total_heap_size_executable: number;
- total_physical_size: number;
- total_available_size: number;
- used_heap_size: number;
- heap_size_limit: number;
- malloced_memory: number;
- peak_malloced_memory: number;
- does_zap_garbage: DoesZapCodeSpaceFlag;
- }
-
- export function getHeapStatistics(): HeapInfo;
- export function getHeapSpaceStatistics(): HeapSpaceInfo[];
- export function setFlagsFromString(flags: string): void;
-}
-
-declare module "timers" {
- export function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
- export function clearTimeout(timeoutId: NodeJS.Timer): void;
- export function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
- export function clearInterval(intervalId: NodeJS.Timer): void;
- export function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
- export function clearImmediate(immediateId: any): void;
-}
-
-declare module "console" {
- export = console;
-}
-
-/**
- * _debugger module is not documented.
- * Source code is at https://github.com/nodejs/node/blob/master/lib/_debugger.js
- */
-declare module "_debugger" {
- export interface Packet {
- raw: string;
- headers: string[];
- body: Message;
- }
-
- export interface Message {
- seq: number;
- type: string;
- }
-
- export interface RequestInfo {
- command: string;
- arguments: any;
- }
-
- export interface Request extends Message, RequestInfo {
- }
-
- export interface Event extends Message {
- event: string;
- body?: any;
- }
-
- export interface Response extends Message {
- request_seq: number;
- success: boolean;
- /** Contains error message if success === false. */
- message?: string;
- /** Contains message body if success === true. */
- body?: any;
- }
-
- export interface BreakpointMessageBody {
- type: string;
- target: number;
- line: number;
- }
-
- export class Protocol {
- res: Packet;
- state: string;
- execute(data: string): void;
- serialize(rq: Request): string;
- onResponse: (pkt: Packet) => void;
- }
-
- export var NO_FRAME: number;
- export var port: number;
-
- export interface ScriptDesc {
- name: string;
- id: number;
- isNative?: boolean;
- handle?: number;
- type: string;
- lineOffset?: number;
- columnOffset?: number;
- lineCount?: number;
- }
-
- export interface Breakpoint {
- id: number;
- scriptId: number;
- script: ScriptDesc;
- line: number;
- condition?: string;
- scriptReq?: string;
- }
-
- export interface RequestHandler {
- (err: boolean, body: Message, res: Packet): void;
- request_seq?: number;
- }
-
- export interface ResponseBodyHandler {
- (err: boolean, body?: any): void;
- request_seq?: number;
- }
-
- export interface ExceptionInfo {
- text: string;
- }
-
- export interface BreakResponse {
- script?: ScriptDesc;
- exception?: ExceptionInfo;
- sourceLine: number;
- sourceLineText: string;
- sourceColumn: number;
- }
-
- export function SourceInfo(body: BreakResponse): string;
-
- export interface ClientInstance extends NodeJS.EventEmitter {
- protocol: Protocol;
- scripts: ScriptDesc[];
- handles: ScriptDesc[];
- breakpoints: Breakpoint[];
- currentSourceLine: number;
- currentSourceColumn: number;
- currentSourceLineText: string;
- currentFrame: number;
- currentScript: string;
-
- connect(port: number, host: string): void;
- req(req: any, cb: RequestHandler): void;
- reqFrameEval(code: string, frame: number, cb: RequestHandler): void;
- mirrorObject(obj: any, depth: number, cb: ResponseBodyHandler): void;
- setBreakpoint(rq: BreakpointMessageBody, cb: RequestHandler): void;
- clearBreakpoint(rq: Request, cb: RequestHandler): void;
- listbreakpoints(cb: RequestHandler): void;
- reqSource(from: number, to: number, cb: RequestHandler): void;
- reqScripts(cb: any): void;
- reqContinue(cb: RequestHandler): void;
- }
-
- export var Client : {
- new (): ClientInstance
- }
-}
+// Type definitions for Node.js 8.x
+// Project: http://nodejs.org/
+// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
+// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
+// Parambir Singh <https://github.com/parambirs>
+// Roberto Desideri <https://github.com/RobDesideri>
+// Christian Vaagland Tellnes <https://github.com/tellnes>
+// Wilco Bakker <https://github.com/WilcoBakker>
+// Nicolas Voigt <https://github.com/octo-sniffle>
+// Chigozirim C. <https://github.com/smac89>
+// Flarna <https://github.com/Flarna>
+// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
+// wwwy3y3 <https://github.com/wwwy3y3>
+// Daniel Imms <https://github.com/Tyriar>
+// Deividas Bakanas <https://github.com/DeividasBakanas>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+/************************************************
+* *
+* Node.js v8.x API *
+* *
+************************************************/
+
+// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
+interface Console {
+ Console: NodeJS.ConsoleConstructor;
+ assert(value: any, message?: string, ...optionalParams: any[]): void;
+ dir(obj: any, options?: NodeJS.InspectOptions): void;
+ error(message?: any, ...optionalParams: any[]): void;
+ info(message?: any, ...optionalParams: any[]): void;
+ log(message?: any, ...optionalParams: any[]): void;
+ time(label: string): void;
+ timeEnd(label: string): void;
+ trace(message?: any, ...optionalParams: any[]): void;
+ warn(message?: any, ...optionalParams: any[]): void;
+}
+
+interface Error {
+ stack?: string;
+}
+
+interface ErrorConstructor {
+ captureStackTrace(targetObject: Object, constructorOpt?: Function): void;
+ stackTraceLimit: number;
+}
+
+// compat for TypeScript 1.8
+// if you use with --target es3 or --target es5 and use below definitions,
+// use the lib.es6.d.ts that is bundled with TypeScript 1.8.
+interface MapConstructor { }
+interface WeakMapConstructor { }
+interface SetConstructor { }
+interface WeakSetConstructor { }
+
+// Forward-declare needed types from lib.es2015.d.ts (in case users are using `--lib es5`)
+interface Iterable<T> { }
+interface Iterator<T> {
+ next(value?: any): IteratorResult<T>;
+}
+interface IteratorResult<T> { }
+interface SymbolConstructor {
+ readonly iterator: symbol;
+}
+declare var Symbol: SymbolConstructor;
+
+/************************************************
+* *
+* GLOBAL *
+* *
+************************************************/
+declare var process: NodeJS.Process;
+declare var global: NodeJS.Global;
+declare var console: Console;
+
+declare var __filename: string;
+declare var __dirname: string;
+
+declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
+declare function clearTimeout(timeoutId: NodeJS.Timer): void;
+declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
+declare function clearInterval(intervalId: NodeJS.Timer): void;
+declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
+declare function clearImmediate(immediateId: any): void;
+
+// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
+/* tslint:disable:callable-types */
+interface NodeRequireFunction {
+ (id: string): any;
+}
+
+interface NodeRequire extends NodeRequireFunction {
+ resolve(id: string): string;
+ cache: any;
+ extensions: any;
+ main: NodeModule | undefined;
+}
+
+declare var require: NodeRequire;
+
+interface NodeModule {
+ exports: any;
+ require: NodeRequireFunction;
+ id: string;
+ filename: string;
+ loaded: boolean;
+ parent: NodeModule | null;
+ children: NodeModule[];
+}
+
+declare var module: NodeModule;
+
+// Same as module.exports
+declare var exports: any;
+declare var SlowBuffer: {
+ new(str: string, encoding?: string): Buffer;
+ new(size: number): Buffer;
+ new(size: Uint8Array): Buffer;
+ new(array: any[]): Buffer;
+ prototype: Buffer;
+ isBuffer(obj: any): boolean;
+ byteLength(string: string, encoding?: string): number;
+ concat(list: Buffer[], totalLength?: number): Buffer;
+};
+
+// Buffer class
+type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex";
+interface Buffer extends NodeBuffer { }
+
+/**
+ * Raw data is stored in instances of the Buffer class.
+ * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
+ */
+declare var Buffer: {
+ /**
+ * Allocates a new buffer containing the given {str}.
+ *
+ * @param str String to store in buffer.
+ * @param encoding encoding to use, optional. Default is 'utf8'
+ */
+ new(str: string, encoding?: string): Buffer;
+ /**
+ * Allocates a new buffer of {size} octets.
+ *
+ * @param size count of octets to allocate.
+ */
+ new(size: number): Buffer;
+ /**
+ * Allocates a new buffer containing the given {array} of octets.
+ *
+ * @param array The octets to store.
+ */
+ new(array: Uint8Array): Buffer;
+ /**
+ * Produces a Buffer backed by the same allocated memory as
+ * the given {ArrayBuffer}.
+ *
+ *
+ * @param arrayBuffer The ArrayBuffer with which to share memory.
+ */
+ new(arrayBuffer: ArrayBuffer): Buffer;
+ /**
+ * Allocates a new buffer containing the given {array} of octets.
+ *
+ * @param array The octets to store.
+ */
+ new(array: any[]): Buffer;
+ /**
+ * Copies the passed {buffer} data onto a new {Buffer} instance.
+ *
+ * @param buffer The buffer to copy.
+ */
+ new(buffer: Buffer): Buffer;
+ prototype: Buffer;
+ /**
+ * Allocates a new Buffer using an {array} of octets.
+ *
+ * @param array
+ */
+ from(array: any[]): Buffer;
+ /**
+ * When passed a reference to the .buffer property of a TypedArray instance,
+ * the newly created Buffer will share the same allocated memory as the TypedArray.
+ * The optional {byteOffset} and {length} arguments specify a memory range
+ * within the {arrayBuffer} that will be shared by the Buffer.
+ *
+ * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer()
+ * @param byteOffset
+ * @param length
+ */
+ from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
+ /**
+ * Copies the passed {buffer} data onto a new Buffer instance.
+ *
+ * @param buffer
+ */
+ from(buffer: Buffer): Buffer;
+ /**
+ * Creates a new Buffer containing the given JavaScript string {str}.
+ * If provided, the {encoding} parameter identifies the character encoding.
+ * If not provided, {encoding} defaults to 'utf8'.
+ *
+ * @param str
+ */
+ from(str: string, encoding?: string): Buffer;
+ /**
+ * Returns true if {obj} is a Buffer
+ *
+ * @param obj object to test.
+ */
+ isBuffer(obj: any): obj is Buffer;
+ /**
+ * Returns true if {encoding} is a valid encoding argument.
+ * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
+ *
+ * @param encoding string to test.
+ */
+ isEncoding(encoding: string): boolean;
+ /**
+ * Gives the actual byte length of a string. encoding defaults to 'utf8'.
+ * This is not the same as String.prototype.length since that returns the number of characters in a string.
+ *
+ * @param string string to test.
+ * @param encoding encoding used to evaluate (defaults to 'utf8')
+ */
+ byteLength(string: string, encoding?: string): number;
+ /**
+ * Returns a buffer which is the result of concatenating all the buffers in the list together.
+ *
+ * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
+ * If the list has exactly one item, then the first item of the list is returned.
+ * If the list has more than one item, then a new Buffer is created.
+ *
+ * @param list An array of Buffer objects to concatenate
+ * @param totalLength Total length of the buffers when concatenated.
+ * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
+ */
+ concat(list: Buffer[], totalLength?: number): Buffer;
+ /**
+ * The same as buf1.compare(buf2).
+ */
+ compare(buf1: Buffer, buf2: Buffer): number;
+ /**
+ * Allocates a new buffer of {size} octets.
+ *
+ * @param size count of octets to allocate.
+ * @param fill if specified, buffer will be initialized by calling buf.fill(fill).
+ * If parameter is omitted, buffer will be filled with zeros.
+ * @param encoding encoding used for call to buf.fill while initalizing
+ */
+ alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
+ /**
+ * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
+ * of the newly created Buffer are unknown and may contain sensitive data.
+ *
+ * @param size count of octets to allocate
+ */
+ allocUnsafe(size: number): Buffer;
+ /**
+ * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
+ * of the newly created Buffer are unknown and may contain sensitive data.
+ *
+ * @param size count of octets to allocate
+ */
+ allocUnsafeSlow(size: number): Buffer;
+};
+
+/************************************************
+* *
+* GLOBAL INTERFACES *
+* *
+************************************************/
+declare namespace NodeJS {
+ export interface InspectOptions {
+ showHidden?: boolean;
+ depth?: number | null;
+ colors?: boolean;
+ customInspect?: boolean;
+ showProxy?: boolean;
+ maxArrayLength?: number | null;
+ breakLength?: number;
+ }
+
+ export interface ConsoleConstructor {
+ prototype: Console;
+ new(stdout: WritableStream, stderr?: WritableStream): Console;
+ }
+
+ export interface ErrnoException extends Error {
+ errno?: number;
+ code?: string;
+ path?: string;
+ syscall?: string;
+ stack?: string;
+ }
+
+ export class EventEmitter {
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ removeAllListeners(event?: string | symbol): this;
+ setMaxListeners(n: number): this;
+ getMaxListeners(): number;
+ listeners(event: string | symbol): Function[];
+ emit(event: string | symbol, ...args: any[]): boolean;
+ listenerCount(type: string | symbol): number;
+ // Added in Node 6...
+ prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ eventNames(): Array<string | symbol>;
+ }
+
+ export interface ReadableStream extends EventEmitter {
+ readable: boolean;
+ read(size?: number): string | Buffer;
+ setEncoding(encoding: string): this;
+ pause(): this;
+ resume(): this;
+ isPaused(): boolean;
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
+ unpipe<T extends WritableStream>(destination?: T): this;
+ unshift(chunk: string): void;
+ unshift(chunk: Buffer): void;
+ wrap(oldStream: ReadableStream): ReadableStream;
+ }
+
+ export interface WritableStream extends EventEmitter {
+ writable: boolean;
+ write(buffer: Buffer | string, cb?: Function): boolean;
+ write(str: string, encoding?: string, cb?: Function): boolean;
+ end(): void;
+ end(buffer: Buffer, cb?: Function): void;
+ end(str: string, cb?: Function): void;
+ end(str: string, encoding?: string, cb?: Function): void;
+ }
+
+ export interface ReadWriteStream extends ReadableStream, WritableStream { }
+
+ export interface Events extends EventEmitter { }
+
+ export interface Domain extends Events {
+ run(fn: Function): void;
+ add(emitter: Events): void;
+ remove(emitter: Events): void;
+ bind(cb: (err: Error, data: any) => any): any;
+ intercept(cb: (data: any) => any): any;
+ dispose(): void;
+
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ on(event: string, listener: (...args: any[]) => void): this;
+ once(event: string, listener: (...args: any[]) => void): this;
+ removeListener(event: string, listener: (...args: any[]) => void): this;
+ removeAllListeners(event?: string): this;
+ }
+
+ export interface MemoryUsage {
+ rss: number;
+ heapTotal: number;
+ heapUsed: number;
+ }
+
+ export interface CpuUsage {
+ user: number;
+ system: number;
+ }
+
+ export interface ProcessVersions {
+ http_parser: string;
+ node: string;
+ v8: string;
+ ares: string;
+ uv: string;
+ zlib: string;
+ modules: string;
+ openssl: string;
+ }
+
+ type Platform = 'aix'
+ | 'android'
+ | 'darwin'
+ | 'freebsd'
+ | 'linux'
+ | 'openbsd'
+ | 'sunos'
+ | 'win32'
+ | 'cygwin';
+
+ type Signals =
+ "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
+ "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" |
+ "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" |
+ "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
+
+ type BeforeExitListener = (code: number) => void;
+ type DisconnectListener = () => void;
+ type ExitListener = (code: number) => void;
+ type RejectionHandledListener = (promise: Promise<any>) => void;
+ type UncaughtExceptionListener = (error: Error) => void;
+ type UnhandledRejectionListener = (reason: any, promise: Promise<any>) => void;
+ type WarningListener = (warning: Error) => void;
+ type MessageListener = (message: any, sendHandle: any) => void;
+ type SignalsListener = () => void;
+ type NewListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
+ type RemoveListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
+
+ export interface Socket extends ReadWriteStream {
+ isTTY?: true;
+ }
+
+ export interface ProcessEnv {
+ [key: string]: string | undefined;
+ }
+
+ export interface Process extends EventEmitter {
+ stdout: Socket;
+ stderr: Socket;
+ stdin: Socket;
+ openStdin(): Socket;
+ argv: string[];
+ argv0: string;
+ execArgv: string[];
+ execPath: string;
+ abort(): void;
+ chdir(directory: string): void;
+ cwd(): string;
+ emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
+ env: ProcessEnv;
+ exit(code?: number): never;
+ exitCode: number;
+ getgid(): number;
+ setgid(id: number): void;
+ setgid(id: string): void;
+ getuid(): number;
+ setuid(id: number): void;
+ setuid(id: string): void;
+ version: string;
+ versions: ProcessVersions;
+ config: {
+ target_defaults: {
+ cflags: any[];
+ default_configuration: string;
+ defines: string[];
+ include_dirs: string[];
+ libraries: string[];
+ };
+ variables: {
+ clang: number;
+ host_arch: string;
+ node_install_npm: boolean;
+ node_install_waf: boolean;
+ node_prefix: string;
+ node_shared_openssl: boolean;
+ node_shared_v8: boolean;
+ node_shared_zlib: boolean;
+ node_use_dtrace: boolean;
+ node_use_etw: boolean;
+ node_use_openssl: boolean;
+ target_arch: string;
+ v8_no_strict_aliasing: number;
+ v8_use_snapshot: boolean;
+ visibility: string;
+ };
+ };
+ kill(pid: number, signal?: string | number): void;
+ pid: number;
+ title: string;
+ arch: string;
+ platform: Platform;
+ mainModule?: NodeModule;
+ memoryUsage(): MemoryUsage;
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
+ nextTick(callback: Function, ...args: any[]): void;
+ umask(mask?: number): number;
+ uptime(): number;
+ hrtime(time?: [number, number]): [number, number];
+ domain: Domain;
+
+ // Worker
+ send?(message: any, sendHandle?: any): void;
+ disconnect(): void;
+ connected: boolean;
+
+ /**
+ * EventEmitter
+ * 1. beforeExit
+ * 2. disconnect
+ * 3. exit
+ * 4. message
+ * 5. rejectionHandled
+ * 6. uncaughtException
+ * 7. unhandledRejection
+ * 8. warning
+ * 9. message
+ * 10. <All OS Signals>
+ * 11. newListener/removeListener inherited from EventEmitter
+ */
+ addListener(event: "beforeExit", listener: BeforeExitListener): this;
+ addListener(event: "disconnect", listener: DisconnectListener): this;
+ addListener(event: "exit", listener: ExitListener): this;
+ addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
+ addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
+ addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
+ addListener(event: "warning", listener: WarningListener): this;
+ addListener(event: "message", listener: MessageListener): this;
+ addListener(event: Signals, listener: SignalsListener): this;
+ addListener(event: "newListener", listener: NewListenerListener): this;
+ addListener(event: "removeListener", listener: RemoveListenerListener): this;
+
+ emit(event: "beforeExit", code: number): boolean;
+ emit(event: "disconnect"): boolean;
+ emit(event: "exit", code: number): boolean;
+ emit(event: "rejectionHandled", promise: Promise<any>): boolean;
+ emit(event: "uncaughtException", error: Error): boolean;
+ emit(event: "unhandledRejection", reason: any, promise: Promise<any>): boolean;
+ emit(event: "warning", warning: Error): boolean;
+ emit(event: "message", message: any, sendHandle: any): this;
+ emit(event: Signals): boolean;
+ emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this;
+ emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this;
+
+ on(event: "beforeExit", listener: BeforeExitListener): this;
+ on(event: "disconnect", listener: DisconnectListener): this;
+ on(event: "exit", listener: ExitListener): this;
+ on(event: "rejectionHandled", listener: RejectionHandledListener): this;
+ on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
+ on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
+ on(event: "warning", listener: WarningListener): this;
+ on(event: "message", listener: MessageListener): this;
+ on(event: Signals, listener: SignalsListener): this;
+ on(event: "newListener", listener: NewListenerListener): this;
+ on(event: "removeListener", listener: RemoveListenerListener): this;
+
+ once(event: "beforeExit", listener: BeforeExitListener): this;
+ once(event: "disconnect", listener: DisconnectListener): this;
+ once(event: "exit", listener: ExitListener): this;
+ once(event: "rejectionHandled", listener: RejectionHandledListener): this;
+ once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
+ once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
+ once(event: "warning", listener: WarningListener): this;
+ once(event: "message", listener: MessageListener): this;
+ once(event: Signals, listener: SignalsListener): this;
+ once(event: "newListener", listener: NewListenerListener): this;
+ once(event: "removeListener", listener: RemoveListenerListener): this;
+
+ prependListener(event: "beforeExit", listener: BeforeExitListener): this;
+ prependListener(event: "disconnect", listener: DisconnectListener): this;
+ prependListener(event: "exit", listener: ExitListener): this;
+ prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
+ prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
+ prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
+ prependListener(event: "warning", listener: WarningListener): this;
+ prependListener(event: "message", listener: MessageListener): this;
+ prependListener(event: Signals, listener: SignalsListener): this;
+ prependListener(event: "newListener", listener: NewListenerListener): this;
+ prependListener(event: "removeListener", listener: RemoveListenerListener): this;
+
+ prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
+ prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
+ prependOnceListener(event: "exit", listener: ExitListener): this;
+ prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
+ prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
+ prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
+ prependOnceListener(event: "warning", listener: WarningListener): this;
+ prependOnceListener(event: "message", listener: MessageListener): this;
+ prependOnceListener(event: Signals, listener: SignalsListener): this;
+ prependOnceListener(event: "newListener", listener: NewListenerListener): this;
+ prependOnceListener(event: "removeListener", listener: RemoveListenerListener): this;
+
+ listeners(event: "beforeExit"): BeforeExitListener[];
+ listeners(event: "disconnect"): DisconnectListener[];
+ listeners(event: "exit"): ExitListener[];
+ listeners(event: "rejectionHandled"): RejectionHandledListener[];
+ listeners(event: "uncaughtException"): UncaughtExceptionListener[];
+ listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
+ listeners(event: "warning"): WarningListener[];
+ listeners(event: "message"): MessageListener[];
+ listeners(event: Signals): SignalsListener[];
+ listeners(event: "newListener"): NewListenerListener[];
+ listeners(event: "removeListener"): RemoveListenerListener[];
+ }
+
+ export interface Global {
+ Array: typeof Array;
+ ArrayBuffer: typeof ArrayBuffer;
+ Boolean: typeof Boolean;
+ Buffer: typeof Buffer;
+ DataView: typeof DataView;
+ Date: typeof Date;
+ Error: typeof Error;
+ EvalError: typeof EvalError;
+ Float32Array: typeof Float32Array;
+ Float64Array: typeof Float64Array;
+ Function: typeof Function;
+ GLOBAL: Global;
+ Infinity: typeof Infinity;
+ Int16Array: typeof Int16Array;
+ Int32Array: typeof Int32Array;
+ Int8Array: typeof Int8Array;
+ Intl: typeof Intl;
+ JSON: typeof JSON;
+ Map: MapConstructor;
+ Math: typeof Math;
+ NaN: typeof NaN;
+ Number: typeof Number;
+ Object: typeof Object;
+ Promise: Function;
+ RangeError: typeof RangeError;
+ ReferenceError: typeof ReferenceError;
+ RegExp: typeof RegExp;
+ Set: SetConstructor;
+ String: typeof String;
+ Symbol: Function;
+ SyntaxError: typeof SyntaxError;
+ TypeError: typeof TypeError;
+ URIError: typeof URIError;
+ Uint16Array: typeof Uint16Array;
+ Uint32Array: typeof Uint32Array;
+ Uint8Array: typeof Uint8Array;
+ Uint8ClampedArray: Function;
+ WeakMap: WeakMapConstructor;
+ WeakSet: WeakSetConstructor;
+ clearImmediate: (immediateId: any) => void;
+ clearInterval: (intervalId: NodeJS.Timer) => void;
+ clearTimeout: (timeoutId: NodeJS.Timer) => void;
+ console: typeof console;
+ decodeURI: typeof decodeURI;
+ decodeURIComponent: typeof decodeURIComponent;
+ encodeURI: typeof encodeURI;
+ encodeURIComponent: typeof encodeURIComponent;
+ escape: (str: string) => string;
+ eval: typeof eval;
+ global: Global;
+ isFinite: typeof isFinite;
+ isNaN: typeof isNaN;
+ parseFloat: typeof parseFloat;
+ parseInt: typeof parseInt;
+ process: Process;
+ root: Global;
+ setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => any;
+ setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
+ setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
+ undefined: typeof undefined;
+ unescape: (str: string) => string;
+ gc: () => void;
+ v8debug?: any;
+ }
+
+ export interface Timer {
+ ref(): void;
+ unref(): void;
+ }
+}
+
+interface IterableIterator<T> { }
+
+/**
+ * @deprecated
+ */
+interface NodeBuffer extends Uint8Array {
+ write(string: string, offset?: number, length?: number, encoding?: string): number;
+ toString(encoding?: string, start?: number, end?: number): string;
+ toJSON(): { type: 'Buffer', data: any[] };
+ equals(otherBuffer: Buffer): boolean;
+ compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
+ copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
+ slice(start?: number, end?: number): Buffer;
+ writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
+ writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
+ writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
+ writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
+ readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
+ readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
+ readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
+ readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
+ readUInt8(offset: number, noAssert?: boolean): number;
+ readUInt16LE(offset: number, noAssert?: boolean): number;
+ readUInt16BE(offset: number, noAssert?: boolean): number;
+ readUInt32LE(offset: number, noAssert?: boolean): number;
+ readUInt32BE(offset: number, noAssert?: boolean): number;
+ readInt8(offset: number, noAssert?: boolean): number;
+ readInt16LE(offset: number, noAssert?: boolean): number;
+ readInt16BE(offset: number, noAssert?: boolean): number;
+ readInt32LE(offset: number, noAssert?: boolean): number;
+ readInt32BE(offset: number, noAssert?: boolean): number;
+ readFloatLE(offset: number, noAssert?: boolean): number;
+ readFloatBE(offset: number, noAssert?: boolean): number;
+ readDoubleLE(offset: number, noAssert?: boolean): number;
+ readDoubleBE(offset: number, noAssert?: boolean): number;
+ swap16(): Buffer;
+ swap32(): Buffer;
+ swap64(): Buffer;
+ writeUInt8(value: number, offset: number, noAssert?: boolean): number;
+ writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
+ writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
+ writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
+ writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
+ writeInt8(value: number, offset: number, noAssert?: boolean): number;
+ writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
+ writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
+ writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
+ writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
+ writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
+ writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
+ writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
+ writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
+ fill(value: any, offset?: number, end?: number): this;
+ indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
+ lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
+ entries(): IterableIterator<[number, number]>;
+ includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
+ keys(): IterableIterator<number>;
+ values(): IterableIterator<number>;
+}
+
+/************************************************
+* *
+* MODULES *
+* *
+************************************************/
+declare module "buffer" {
+ export var INSPECT_MAX_BYTES: number;
+ var BuffType: typeof Buffer;
+ var SlowBuffType: typeof SlowBuffer;
+ export { BuffType as Buffer, SlowBuffType as SlowBuffer };
+}
+
+declare module "querystring" {
+ export interface StringifyOptions {
+ encodeURIComponent?: Function;
+ }
+
+ export interface ParseOptions {
+ maxKeys?: number;
+ decodeURIComponent?: Function;
+ }
+
+ export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string;
+ export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any;
+ export function parse<T extends {}>(str: string, sep?: string, eq?: string, options?: ParseOptions): T;
+ export function escape(str: string): string;
+ export function unescape(str: string): string;
+}
+
+declare module "events" {
+ class internal extends NodeJS.EventEmitter { }
+
+ namespace internal {
+ export class EventEmitter extends internal {
+ static listenerCount(emitter: EventEmitter, event: string | symbol): number; // deprecated
+ static defaultMaxListeners: number;
+
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
+ prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
+ removeAllListeners(event?: string | symbol): this;
+ setMaxListeners(n: number): this;
+ getMaxListeners(): number;
+ listeners(event: string | symbol): Function[];
+ emit(event: string | symbol, ...args: any[]): boolean;
+ eventNames(): Array<string | symbol>;
+ listenerCount(type: string | symbol): number;
+ }
+ }
+
+ export = internal;
+}
+
+declare module "http" {
+ import * as events from "events";
+ import * as net from "net";
+ import * as stream from "stream";
+ import { URL } from "url";
+
+ // incoming headers will never contain number
+ export interface IncomingHttpHeaders {
+ [header: string]: string | string[];
+ }
+
+ // outgoing headers allows numbers (as they are converted internally to strings)
+ export interface OutgoingHttpHeaders {
+ [header: string]: number | string | string[] | undefined;
+ }
+
+ export interface ClientRequestArgs {
+ protocol?: string;
+ host?: string;
+ hostname?: string;
+ family?: number;
+ port?: number | string;
+ defaultPort?: number | string;
+ localAddress?: string;
+ socketPath?: string;
+ method?: string;
+ path?: string;
+ headers?: OutgoingHttpHeaders;
+ auth?: string;
+ agent?: Agent | boolean;
+ _defaultAgent?: Agent;
+ timeout?: number;
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
+ createConnection?: (options: ClientRequestArgs, oncreate: (err: Error, socket: net.Socket) => void) => net.Socket;
+ }
+
+ export class Server extends net.Server {
+ constructor(requestListener?: (req: IncomingMessage, res: ServerResponse) => void);
+
+ setTimeout(msecs: number, callback: () => void): this;
+ maxHeadersCount: number;
+ timeout: number;
+ listening: boolean;
+ keepAliveTimeout: number;
+ }
+ /**
+ * @deprecated Use IncomingMessage
+ */
+ export class ServerRequest extends IncomingMessage {
+ connection: net.Socket;
+ }
+
+ // https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js
+ export class OutgoingMessage extends stream.Writable {
+ upgrading: boolean;
+ chunkedEncoding: boolean;
+ shouldKeepAlive: boolean;
+ useChunkedEncodingByDefault: boolean;
+ sendDate: boolean;
+ finished: boolean;
+ headersSent: boolean;
+ connection: net.Socket;
+
+ constructor();
+
+ setTimeout(msecs: number, callback?: () => void): this;
+ destroy(error: Error): void;
+ setHeader(name: string, value: number | string | string[]): void;
+ getHeader(name: string): number | string | string[] | undefined;
+ getHeaders(): OutgoingHttpHeaders;
+ getHeaderNames(): string[];
+ hasHeader(name: string): boolean;
+ removeHeader(name: string): void;
+ addTrailers(headers: OutgoingHttpHeaders | Array<[string, string]>): void;
+ flushHeaders(): void;
+ }
+
+ // https://github.com/nodejs/node/blob/master/lib/_http_server.js#L108-L256
+ export class ServerResponse extends OutgoingMessage {
+ statusCode: number;
+ statusMessage: string;
+
+ constructor(req: IncomingMessage);
+
+ assignSocket(socket: net.Socket): void;
+ detachSocket(socket: net.Socket): void;
+ // https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
+ // no args in writeContinue callback
+ writeContinue(callback?: () => void): void;
+ writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders): void;
+ writeHead(statusCode: number, headers?: OutgoingHttpHeaders): void;
+ }
+
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L77
+ export class ClientRequest extends OutgoingMessage {
+ connection: net.Socket;
+ socket: net.Socket;
+ aborted: number;
+
+ constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
+
+ abort(): void;
+ onSocket(socket: net.Socket): void;
+ setTimeout(timeout: number, callback?: () => void): this;
+ setNoDelay(noDelay?: boolean): void;
+ setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
+ }
+
+ export class IncomingMessage extends stream.Readable {
+ constructor(socket: net.Socket);
+
+ httpVersion: string;
+ httpVersionMajor: number;
+ httpVersionMinor: number;
+ connection: net.Socket;
+ headers: IncomingHttpHeaders;
+ rawHeaders: string[];
+ trailers: { [key: string]: string | undefined };
+ rawTrailers: string[];
+ setTimeout(msecs: number, callback: () => void): this;
+ /**
+ * Only valid for request obtained from http.Server.
+ */
+ method?: string;
+ /**
+ * Only valid for request obtained from http.Server.
+ */
+ url?: string;
+ /**
+ * Only valid for response obtained from http.ClientRequest.
+ */
+ statusCode?: number;
+ /**
+ * Only valid for response obtained from http.ClientRequest.
+ */
+ statusMessage?: string;
+ socket: net.Socket;
+ destroy(error?: Error): void;
+ }
+
+ /**
+ * @deprecated Use IncomingMessage
+ */
+ export class ClientResponse extends IncomingMessage { }
+
+ export interface AgentOptions {
+ /**
+ * Keep sockets around in a pool to be used by other requests in the future. Default = false
+ */
+ keepAlive?: boolean;
+ /**
+ * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
+ * Only relevant if keepAlive is set to true.
+ */
+ keepAliveMsecs?: number;
+ /**
+ * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
+ */
+ maxSockets?: number;
+ /**
+ * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
+ */
+ maxFreeSockets?: number;
+ }
+
+ export class Agent {
+ maxSockets: number;
+ sockets: any;
+ requests: any;
+
+ constructor(opts?: AgentOptions);
+
+ /**
+ * Destroy any sockets that are currently in use by the agent.
+ * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
+ * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
+ * sockets may hang open for quite a long time before the server terminates them.
+ */
+ destroy(): void;
+ }
+
+ export var METHODS: string[];
+
+ export var STATUS_CODES: {
+ [errorCode: number]: string | undefined;
+ [errorCode: string]: string | undefined;
+ };
+
+ export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void): Server;
+ export function createClient(port?: number, host?: string): any;
+
+ // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
+ // create interface RequestOptions would make the naming more clear to developers
+ export interface RequestOptions extends ClientRequestArgs { }
+ export function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
+ export function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
+ export var globalAgent: Agent;
+}
+
+declare module "cluster" {
+ import * as child from "child_process";
+ import * as events from "events";
+ import * as net from "net";
+
+ // interfaces
+ export interface ClusterSettings {
+ execArgv?: string[]; // default: process.execArgv
+ exec?: string;
+ args?: string[];
+ silent?: boolean;
+ stdio?: any[];
+ uid?: number;
+ gid?: number;
+ }
+
+ export interface ClusterSetupMasterSettings {
+ exec?: string; // default: process.argv[1]
+ args?: string[]; // default: process.argv.slice(2)
+ silent?: boolean; // default: false
+ stdio?: any[];
+ }
+
+ export interface Address {
+ address: string;
+ port: number;
+ addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
+ }
+
+ export class Worker extends events.EventEmitter {
+ id: string;
+ process: child.ChildProcess;
+ suicide: boolean;
+ send(message: any, sendHandle?: any): boolean;
+ kill(signal?: string): void;
+ destroy(signal?: string): void;
+ disconnect(): void;
+ isConnected(): boolean;
+ isDead(): boolean;
+ exitedAfterDisconnect: boolean;
+
+ /**
+ * events.EventEmitter
+ * 1. disconnect
+ * 2. error
+ * 3. exit
+ * 4. listening
+ * 5. message
+ * 6. online
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "disconnect", listener: () => void): this;
+ addListener(event: "error", listener: (code: number, signal: string) => void): this;
+ addListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ addListener(event: "listening", listener: (address: Address) => void): this;
+ addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ addListener(event: "online", listener: () => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "disconnect"): boolean;
+ emit(event: "error", code: number, signal: string): boolean;
+ emit(event: "exit", code: number, signal: string): boolean;
+ emit(event: "listening", address: Address): boolean;
+ emit(event: "message", message: any, handle: net.Socket | net.Server): boolean;
+ emit(event: "online"): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "disconnect", listener: () => void): this;
+ on(event: "error", listener: (code: number, signal: string) => void): this;
+ on(event: "exit", listener: (code: number, signal: string) => void): this;
+ on(event: "listening", listener: (address: Address) => void): this;
+ on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ on(event: "online", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "disconnect", listener: () => void): this;
+ once(event: "error", listener: (code: number, signal: string) => void): this;
+ once(event: "exit", listener: (code: number, signal: string) => void): this;
+ once(event: "listening", listener: (address: Address) => void): this;
+ once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ once(event: "online", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "disconnect", listener: () => void): this;
+ prependListener(event: "error", listener: (code: number, signal: string) => void): this;
+ prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ prependListener(event: "listening", listener: (address: Address) => void): this;
+ prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ prependListener(event: "online", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "disconnect", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
+ prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ prependOnceListener(event: "listening", listener: (address: Address) => void): this;
+ prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ prependOnceListener(event: "online", listener: () => void): this;
+ }
+
+ export interface Cluster extends events.EventEmitter {
+ Worker: Worker;
+ disconnect(callback?: Function): void;
+ fork(env?: any): Worker;
+ isMaster: boolean;
+ isWorker: boolean;
+ // TODO: cluster.schedulingPolicy
+ settings: ClusterSettings;
+ setupMaster(settings?: ClusterSetupMasterSettings): void;
+ worker?: Worker;
+ workers?: {
+ [index: string]: Worker | undefined
+ };
+
+ /**
+ * events.EventEmitter
+ * 1. disconnect
+ * 2. exit
+ * 3. fork
+ * 4. listening
+ * 5. message
+ * 6. online
+ * 7. setup
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "disconnect", listener: (worker: Worker) => void): this;
+ addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
+ addListener(event: "fork", listener: (worker: Worker) => void): this;
+ addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
+ addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ addListener(event: "online", listener: (worker: Worker) => void): this;
+ addListener(event: "setup", listener: (settings: any) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "disconnect", worker: Worker): boolean;
+ emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
+ emit(event: "fork", worker: Worker): boolean;
+ emit(event: "listening", worker: Worker, address: Address): boolean;
+ emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
+ emit(event: "online", worker: Worker): boolean;
+ emit(event: "setup", settings: any): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "disconnect", listener: (worker: Worker) => void): this;
+ on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
+ on(event: "fork", listener: (worker: Worker) => void): this;
+ on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
+ on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ on(event: "online", listener: (worker: Worker) => void): this;
+ on(event: "setup", listener: (settings: any) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "disconnect", listener: (worker: Worker) => void): this;
+ once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
+ once(event: "fork", listener: (worker: Worker) => void): this;
+ once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
+ once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ once(event: "online", listener: (worker: Worker) => void): this;
+ once(event: "setup", listener: (settings: any) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
+ prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
+ prependListener(event: "fork", listener: (worker: Worker) => void): this;
+ prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
+ prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ prependListener(event: "online", listener: (worker: Worker) => void): this;
+ prependListener(event: "setup", listener: (settings: any) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
+ prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
+ prependOnceListener(event: "fork", listener: (worker: Worker) => void): this;
+ prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
+ prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
+ prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
+ prependOnceListener(event: "setup", listener: (settings: any) => void): this;
+ }
+
+ export function disconnect(callback?: Function): void;
+ export function fork(env?: any): Worker;
+ export var isMaster: boolean;
+ export var isWorker: boolean;
+ // TODO: cluster.schedulingPolicy
+ export var settings: ClusterSettings;
+ export function setupMaster(settings?: ClusterSetupMasterSettings): void;
+ export var worker: Worker;
+ export var workers: {
+ [index: string]: Worker | undefined
+ };
+
+ /**
+ * events.EventEmitter
+ * 1. disconnect
+ * 2. exit
+ * 3. fork
+ * 4. listening
+ * 5. message
+ * 6. online
+ * 7. setup
+ */
+ export function addListener(event: string, listener: (...args: any[]) => void): Cluster;
+ export function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
+ export function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
+ export function addListener(event: "fork", listener: (worker: Worker) => void): Cluster;
+ export function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
+ export function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
+ export function addListener(event: "online", listener: (worker: Worker) => void): Cluster;
+ export function addListener(event: "setup", listener: (settings: any) => void): Cluster;
+
+ export function emit(event: string | symbol, ...args: any[]): boolean;
+ export function emit(event: "disconnect", worker: Worker): boolean;
+ export function emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
+ export function emit(event: "fork", worker: Worker): boolean;
+ export function emit(event: "listening", worker: Worker, address: Address): boolean;
+ export function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
+ export function emit(event: "online", worker: Worker): boolean;
+ export function emit(event: "setup", settings: any): boolean;
+
+ export function on(event: string, listener: (...args: any[]) => void): Cluster;
+ export function on(event: "disconnect", listener: (worker: Worker) => void): Cluster;
+ export function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
+ export function on(event: "fork", listener: (worker: Worker) => void): Cluster;
+ export function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
+ export function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
+ export function on(event: "online", listener: (worker: Worker) => void): Cluster;
+ export function on(event: "setup", listener: (settings: any) => void): Cluster;
+
+ export function once(event: string, listener: (...args: any[]) => void): Cluster;
+ export function once(event: "disconnect", listener: (worker: Worker) => void): Cluster;
+ export function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
+ export function once(event: "fork", listener: (worker: Worker) => void): Cluster;
+ export function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
+ export function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
+ export function once(event: "online", listener: (worker: Worker) => void): Cluster;
+ export function once(event: "setup", listener: (settings: any) => void): Cluster;
+
+ export function removeListener(event: string, listener: (...args: any[]) => void): Cluster;
+ export function removeAllListeners(event?: string): Cluster;
+ export function setMaxListeners(n: number): Cluster;
+ export function getMaxListeners(): number;
+ export function listeners(event: string): Function[];
+ export function listenerCount(type: string): number;
+
+ export function prependListener(event: string, listener: (...args: any[]) => void): Cluster;
+ export function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
+ export function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
+ export function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster;
+ export function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
+ export function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
+ export function prependListener(event: "online", listener: (worker: Worker) => void): Cluster;
+ export function prependListener(event: "setup", listener: (settings: any) => void): Cluster;
+
+ export function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster;
+ export function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
+ export function prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
+ export function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster;
+ export function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
+ export function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
+ export function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster;
+ export function prependOnceListener(event: "setup", listener: (settings: any) => void): Cluster;
+
+ export function eventNames(): string[];
+}
+
+declare module "zlib" {
+ import * as stream from "stream";
+
+ export interface ZlibOptions {
+ flush?: number; // default: zlib.constants.Z_NO_FLUSH
+ finishFlush?: number; // default: zlib.constants.Z_FINISH
+ chunkSize?: number; // default: 16*1024
+ windowBits?: number;
+ level?: number; // compression only
+ memLevel?: number; // compression only
+ strategy?: number; // compression only
+ dictionary?: any; // deflate/inflate only, empty dictionary by default
+ }
+
+ export interface Gzip extends stream.Transform { }
+ export interface Gunzip extends stream.Transform { }
+ export interface Deflate extends stream.Transform { }
+ export interface Inflate extends stream.Transform { }
+ export interface DeflateRaw extends stream.Transform { }
+ export interface InflateRaw extends stream.Transform { }
+ export interface Unzip extends stream.Transform { }
+
+ export function createGzip(options?: ZlibOptions): Gzip;
+ export function createGunzip(options?: ZlibOptions): Gunzip;
+ export function createDeflate(options?: ZlibOptions): Deflate;
+ export function createInflate(options?: ZlibOptions): Inflate;
+ export function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
+ export function createInflateRaw(options?: ZlibOptions): InflateRaw;
+ export function createUnzip(options?: ZlibOptions): Unzip;
+
+ export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
+ export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
+ export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
+ export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
+ export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
+ export function gzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
+ export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
+ export function gunzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
+ export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
+ export function inflate(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer;
+ export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
+ export function inflateRaw(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer;
+ export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
+ export function unzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
+ export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
+
+ export namespace constants {
+ // Allowed flush values.
+
+ export const Z_NO_FLUSH: number;
+ export const Z_PARTIAL_FLUSH: number;
+ export const Z_SYNC_FLUSH: number;
+ export const Z_FULL_FLUSH: number;
+ export const Z_FINISH: number;
+ export const Z_BLOCK: number;
+ export const Z_TREES: number;
+
+ // Return codes for the compression/decompression functions. Negative values are errors, positive values are used for special but normal events.
+
+ export const Z_OK: number;
+ export const Z_STREAM_END: number;
+ export const Z_NEED_DICT: number;
+ export const Z_ERRNO: number;
+ export const Z_STREAM_ERROR: number;
+ export const Z_DATA_ERROR: number;
+ export const Z_MEM_ERROR: number;
+ export const Z_BUF_ERROR: number;
+ export const Z_VERSION_ERROR: number;
+
+ // Compression levels.
+
+ export const Z_NO_COMPRESSION: number;
+ export const Z_BEST_SPEED: number;
+ export const Z_BEST_COMPRESSION: number;
+ export const Z_DEFAULT_COMPRESSION: number;
+
+ // Compression strategy.
+
+ export const Z_FILTERED: number;
+ export const Z_HUFFMAN_ONLY: number;
+ export const Z_RLE: number;
+ export const Z_FIXED: number;
+ export const Z_DEFAULT_STRATEGY: number;
+ }
+
+ // Constants
+ export var Z_NO_FLUSH: number;
+ export var Z_PARTIAL_FLUSH: number;
+ export var Z_SYNC_FLUSH: number;
+ export var Z_FULL_FLUSH: number;
+ export var Z_FINISH: number;
+ export var Z_BLOCK: number;
+ export var Z_TREES: number;
+ export var Z_OK: number;
+ export var Z_STREAM_END: number;
+ export var Z_NEED_DICT: number;
+ export var Z_ERRNO: number;
+ export var Z_STREAM_ERROR: number;
+ export var Z_DATA_ERROR: number;
+ export var Z_MEM_ERROR: number;
+ export var Z_BUF_ERROR: number;
+ export var Z_VERSION_ERROR: number;
+ export var Z_NO_COMPRESSION: number;
+ export var Z_BEST_SPEED: number;
+ export var Z_BEST_COMPRESSION: number;
+ export var Z_DEFAULT_COMPRESSION: number;
+ export var Z_FILTERED: number;
+ export var Z_HUFFMAN_ONLY: number;
+ export var Z_RLE: number;
+ export var Z_FIXED: number;
+ export var Z_DEFAULT_STRATEGY: number;
+ export var Z_BINARY: number;
+ export var Z_TEXT: number;
+ export var Z_ASCII: number;
+ export var Z_UNKNOWN: number;
+ export var Z_DEFLATED: number;
+}
+
+declare module "os" {
+ export interface CpuInfo {
+ model: string;
+ speed: number;
+ times: {
+ user: number;
+ nice: number;
+ sys: number;
+ idle: number;
+ irq: number;
+ };
+ }
+
+ export interface NetworkInterfaceInfo {
+ address: string;
+ netmask: string;
+ family: string;
+ mac: string;
+ internal: boolean;
+ }
+
+ export function hostname(): string;
+ export function loadavg(): number[];
+ export function uptime(): number;
+ export function freemem(): number;
+ export function totalmem(): number;
+ export function cpus(): CpuInfo[];
+ export function type(): string;
+ export function release(): string;
+ export function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] };
+ export function homedir(): string;
+ export function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string };
+ export var constants: {
+ UV_UDP_REUSEADDR: number,
+ signals: {
+ SIGHUP: number;
+ SIGINT: number;
+ SIGQUIT: number;
+ SIGILL: number;
+ SIGTRAP: number;
+ SIGABRT: number;
+ SIGIOT: number;
+ SIGBUS: number;
+ SIGFPE: number;
+ SIGKILL: number;
+ SIGUSR1: number;
+ SIGSEGV: number;
+ SIGUSR2: number;
+ SIGPIPE: number;
+ SIGALRM: number;
+ SIGTERM: number;
+ SIGCHLD: number;
+ SIGSTKFLT: number;
+ SIGCONT: number;
+ SIGSTOP: number;
+ SIGTSTP: number;
+ SIGTTIN: number;
+ SIGTTOU: number;
+ SIGURG: number;
+ SIGXCPU: number;
+ SIGXFSZ: number;
+ SIGVTALRM: number;
+ SIGPROF: number;
+ SIGWINCH: number;
+ SIGIO: number;
+ SIGPOLL: number;
+ SIGPWR: number;
+ SIGSYS: number;
+ SIGUNUSED: number;
+ },
+ errno: {
+ E2BIG: number;
+ EACCES: number;
+ EADDRINUSE: number;
+ EADDRNOTAVAIL: number;
+ EAFNOSUPPORT: number;
+ EAGAIN: number;
+ EALREADY: number;
+ EBADF: number;
+ EBADMSG: number;
+ EBUSY: number;
+ ECANCELED: number;
+ ECHILD: number;
+ ECONNABORTED: number;
+ ECONNREFUSED: number;
+ ECONNRESET: number;
+ EDEADLK: number;
+ EDESTADDRREQ: number;
+ EDOM: number;
+ EDQUOT: number;
+ EEXIST: number;
+ EFAULT: number;
+ EFBIG: number;
+ EHOSTUNREACH: number;
+ EIDRM: number;
+ EILSEQ: number;
+ EINPROGRESS: number;
+ EINTR: number;
+ EINVAL: number;
+ EIO: number;
+ EISCONN: number;
+ EISDIR: number;
+ ELOOP: number;
+ EMFILE: number;
+ EMLINK: number;
+ EMSGSIZE: number;
+ EMULTIHOP: number;
+ ENAMETOOLONG: number;
+ ENETDOWN: number;
+ ENETRESET: number;
+ ENETUNREACH: number;
+ ENFILE: number;
+ ENOBUFS: number;
+ ENODATA: number;
+ ENODEV: number;
+ ENOENT: number;
+ ENOEXEC: number;
+ ENOLCK: number;
+ ENOLINK: number;
+ ENOMEM: number;
+ ENOMSG: number;
+ ENOPROTOOPT: number;
+ ENOSPC: number;
+ ENOSR: number;
+ ENOSTR: number;
+ ENOSYS: number;
+ ENOTCONN: number;
+ ENOTDIR: number;
+ ENOTEMPTY: number;
+ ENOTSOCK: number;
+ ENOTSUP: number;
+ ENOTTY: number;
+ ENXIO: number;
+ EOPNOTSUPP: number;
+ EOVERFLOW: number;
+ EPERM: number;
+ EPIPE: number;
+ EPROTO: number;
+ EPROTONOSUPPORT: number;
+ EPROTOTYPE: number;
+ ERANGE: number;
+ EROFS: number;
+ ESPIPE: number;
+ ESRCH: number;
+ ESTALE: number;
+ ETIME: number;
+ ETIMEDOUT: number;
+ ETXTBSY: number;
+ EWOULDBLOCK: number;
+ EXDEV: number;
+ },
+ };
+ export function arch(): string;
+ export function platform(): NodeJS.Platform;
+ export function tmpdir(): string;
+ export var EOL: string;
+ export function endianness(): "BE" | "LE";
+}
+
+declare module "https" {
+ import * as tls from "tls";
+ import * as events from "events";
+ import * as http from "http";
+ import { URL } from "url";
+
+ export interface ServerOptions {
+ pfx?: any;
+ key?: any;
+ passphrase?: string;
+ cert?: any;
+ ca?: any;
+ crl?: any;
+ ciphers?: string;
+ honorCipherOrder?: boolean;
+ requestCert?: boolean;
+ rejectUnauthorized?: boolean;
+ NPNProtocols?: any;
+ SNICallback?: (servername: string, cb: (err: Error, ctx: tls.SecureContext) => any) => any;
+ }
+
+ export interface RequestOptions extends http.RequestOptions {
+ pfx?: any;
+ key?: any;
+ passphrase?: string;
+ cert?: any;
+ ca?: any;
+ ciphers?: string;
+ rejectUnauthorized?: boolean;
+ secureProtocol?: string;
+ }
+
+ export interface ClientRequest extends http.ClientRequest { }
+
+ export interface IncomingMessage extends http.IncomingMessage { }
+
+ export interface ServerResponse extends http.ServerResponse { }
+
+ export interface Agent extends http.Agent { }
+
+ export interface AgentOptions extends http.AgentOptions {
+ pfx?: any;
+ key?: any;
+ passphrase?: string;
+ cert?: any;
+ ca?: any;
+ ciphers?: string;
+ rejectUnauthorized?: boolean;
+ secureProtocol?: string;
+ maxCachedSessions?: number;
+ }
+
+ export var Agent: {
+ new(options?: AgentOptions): Agent;
+ };
+ export interface Server extends tls.Server { }
+ export function createServer(options: ServerOptions, requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
+ export function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
+ export function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
+ export var globalAgent: Agent;
+}
+
+declare module "punycode" {
+ export function decode(string: string): string;
+ export function encode(string: string): string;
+ export function toUnicode(domain: string): string;
+ export function toASCII(domain: string): string;
+ export var ucs2: ucs2;
+ interface ucs2 {
+ decode(string: string): number[];
+ encode(codePoints: number[]): string;
+ }
+ export var version: any;
+}
+
+declare module "repl" {
+ import * as stream from "stream";
+ import * as readline from "readline";
+
+ export interface ReplOptions {
+ prompt?: string;
+ input?: NodeJS.ReadableStream;
+ output?: NodeJS.WritableStream;
+ terminal?: boolean;
+ eval?: Function;
+ useColors?: boolean;
+ useGlobal?: boolean;
+ ignoreUndefined?: boolean;
+ writer?: Function;
+ completer?: Function;
+ replMode?: any;
+ breakEvalOnSigint?: any;
+ }
+
+ export interface REPLServer extends readline.ReadLine {
+ context: any;
+ defineCommand(keyword: string, cmd: Function | { help: string, action: Function }): void;
+ displayPrompt(preserveCursor?: boolean): void;
+
+ /**
+ * events.EventEmitter
+ * 1. exit
+ * 2. reset
+ */
+
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "exit", listener: () => void): this;
+ addListener(event: "reset", listener: (...args: any[]) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "exit"): boolean;
+ emit(event: "reset", context: any): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "exit", listener: () => void): this;
+ on(event: "reset", listener: (...args: any[]) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "exit", listener: () => void): this;
+ once(event: "reset", listener: (...args: any[]) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "exit", listener: () => void): this;
+ prependListener(event: "reset", listener: (...args: any[]) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "exit", listener: () => void): this;
+ prependOnceListener(event: "reset", listener: (...args: any[]) => void): this;
+ }
+
+ export function start(options?: string | ReplOptions): REPLServer;
+}
+
+declare module "readline" {
+ import * as events from "events";
+ import * as stream from "stream";
+
+ export interface Key {
+ sequence?: string;
+ name?: string;
+ ctrl?: boolean;
+ meta?: boolean;
+ shift?: boolean;
+ }
+
+ export interface ReadLine extends events.EventEmitter {
+ setPrompt(prompt: string): void;
+ prompt(preserveCursor?: boolean): void;
+ question(query: string, callback: (answer: string) => void): void;
+ pause(): ReadLine;
+ resume(): ReadLine;
+ close(): void;
+ write(data: string | Buffer, key?: Key): void;
+
+ /**
+ * events.EventEmitter
+ * 1. close
+ * 2. line
+ * 3. pause
+ * 4. resume
+ * 5. SIGCONT
+ * 6. SIGINT
+ * 7. SIGTSTP
+ */
+
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: () => void): this;
+ addListener(event: "line", listener: (input: any) => void): this;
+ addListener(event: "pause", listener: () => void): this;
+ addListener(event: "resume", listener: () => void): this;
+ addListener(event: "SIGCONT", listener: () => void): this;
+ addListener(event: "SIGINT", listener: () => void): this;
+ addListener(event: "SIGTSTP", listener: () => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close"): boolean;
+ emit(event: "line", input: any): boolean;
+ emit(event: "pause"): boolean;
+ emit(event: "resume"): boolean;
+ emit(event: "SIGCONT"): boolean;
+ emit(event: "SIGINT"): boolean;
+ emit(event: "SIGTSTP"): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: () => void): this;
+ on(event: "line", listener: (input: any) => void): this;
+ on(event: "pause", listener: () => void): this;
+ on(event: "resume", listener: () => void): this;
+ on(event: "SIGCONT", listener: () => void): this;
+ on(event: "SIGINT", listener: () => void): this;
+ on(event: "SIGTSTP", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: () => void): this;
+ once(event: "line", listener: (input: any) => void): this;
+ once(event: "pause", listener: () => void): this;
+ once(event: "resume", listener: () => void): this;
+ once(event: "SIGCONT", listener: () => void): this;
+ once(event: "SIGINT", listener: () => void): this;
+ once(event: "SIGTSTP", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+ prependListener(event: "line", listener: (input: any) => void): this;
+ prependListener(event: "pause", listener: () => void): this;
+ prependListener(event: "resume", listener: () => void): this;
+ prependListener(event: "SIGCONT", listener: () => void): this;
+ prependListener(event: "SIGINT", listener: () => void): this;
+ prependListener(event: "SIGTSTP", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ prependOnceListener(event: "line", listener: (input: any) => void): this;
+ prependOnceListener(event: "pause", listener: () => void): this;
+ prependOnceListener(event: "resume", listener: () => void): this;
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
+ }
+
+ type Completer = (line: string) => CompleterResult;
+ type AsyncCompleter = (line: string, callback: (err: any, result: CompleterResult) => void) => any;
+
+ export type CompleterResult = [string[], string];
+
+ export interface ReadLineOptions {
+ input: NodeJS.ReadableStream;
+ output?: NodeJS.WritableStream;
+ completer?: Completer | AsyncCompleter;
+ terminal?: boolean;
+ historySize?: number;
+ }
+
+ export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine;
+ export function createInterface(options: ReadLineOptions): ReadLine;
+
+ export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void;
+ export function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void;
+ export function clearLine(stream: NodeJS.WritableStream, dir: number): void;
+ export function clearScreenDown(stream: NodeJS.WritableStream): void;
+}
+
+declare module "vm" {
+ export interface Context { }
+ export interface ScriptOptions {
+ filename?: string;
+ lineOffset?: number;
+ columnOffset?: number;
+ displayErrors?: boolean;
+ timeout?: number;
+ cachedData?: Buffer;
+ produceCachedData?: boolean;
+ }
+ export interface RunningScriptOptions {
+ filename?: string;
+ lineOffset?: number;
+ columnOffset?: number;
+ displayErrors?: boolean;
+ timeout?: number;
+ }
+ export class Script {
+ constructor(code: string, options?: ScriptOptions);
+ runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any;
+ runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
+ runInThisContext(options?: RunningScriptOptions): any;
+ }
+ export function createContext(sandbox?: Context): Context;
+ export function isContext(sandbox: Context): boolean;
+ export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions): any;
+ export function runInDebugContext(code: string): any;
+ export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions): any;
+ export function runInThisContext(code: string, options?: RunningScriptOptions): any;
+}
+
+declare module "child_process" {
+ import * as events from "events";
+ import * as stream from "stream";
+ import * as net from "net";
+
+ export interface ChildProcess extends events.EventEmitter {
+ stdin: stream.Writable;
+ stdout: stream.Readable;
+ stderr: stream.Readable;
+ stdio: [stream.Writable, stream.Readable, stream.Readable];
+ pid: number;
+ kill(signal?: string): void;
+ send(message: any, callback?: (error: Error) => void): boolean;
+ send(message: any, sendHandle?: net.Socket | net.Server, callback?: (error: Error) => void): boolean;
+ send(message: any, sendHandle?: net.Socket | net.Server, options?: MessageOptions, callback?: (error: Error) => void): boolean;
+ connected: boolean;
+ disconnect(): void;
+ unref(): void;
+ ref(): void;
+
+ /**
+ * events.EventEmitter
+ * 1. close
+ * 2. disconnect
+ * 3. error
+ * 4. exit
+ * 5. message
+ */
+
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: (code: number, signal: string) => void): this;
+ addListener(event: "disconnect", listener: () => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+ addListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ addListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close", code: number, signal: string): boolean;
+ emit(event: "disconnect"): boolean;
+ emit(event: "error", err: Error): boolean;
+ emit(event: "exit", code: number, signal: string): boolean;
+ emit(event: "message", message: any, sendHandle: net.Socket | net.Server): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: (code: number, signal: string) => void): this;
+ on(event: "disconnect", listener: () => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+ on(event: "exit", listener: (code: number, signal: string) => void): this;
+ on(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: (code: number, signal: string) => void): this;
+ once(event: "disconnect", listener: () => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+ once(event: "exit", listener: (code: number, signal: string) => void): this;
+ once(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: (code: number, signal: string) => void): this;
+ prependListener(event: "disconnect", listener: () => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+ prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ prependListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: (code: number, signal: string) => void): this;
+ prependOnceListener(event: "disconnect", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+ prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
+ prependOnceListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
+ }
+
+ export interface MessageOptions {
+ keepOpen?: boolean;
+ }
+
+ export interface SpawnOptions {
+ cwd?: string;
+ env?: any;
+ stdio?: any;
+ detached?: boolean;
+ uid?: number;
+ gid?: number;
+ shell?: boolean | string;
+ }
+
+ export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
+
+ export interface ExecOptions {
+ cwd?: string;
+ env?: any;
+ shell?: string;
+ timeout?: number;
+ maxBuffer?: number;
+ killSignal?: string;
+ uid?: number;
+ gid?: number;
+ }
+
+ export interface ExecOptionsWithStringEncoding extends ExecOptions {
+ encoding: BufferEncoding;
+ }
+
+ export interface ExecOptionsWithBufferEncoding extends ExecOptions {
+ encoding: string | null; // specify `null`.
+ }
+
+ // no `options` definitely means stdout/stderr are `string`.
+ export function exec(command: string, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
+ export function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
+
+ // `options` with well known `encoding` means stdout/stderr are definitely `string`.
+ export function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
+ // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
+ export function exec(command: string, options: { encoding: string } & ExecOptions, callback?: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
+
+ // `options` without an `encoding` means stdout/stderr are definitely `string`.
+ export function exec(command: string, options: ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // fallback if nothing else matches. Worst case is always `string | Buffer`.
+ export function exec(command: string, options: ({ encoding?: string | null } & ExecOptions) | undefined | null, callback?: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace exec {
+ export function __promisify__(command: string): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(command: string, options: { encoding: "buffer" | null } & ExecOptions): Promise<{ stdout: Buffer, stderr: Buffer }>;
+ export function __promisify__(command: string, options: { encoding: BufferEncoding } & ExecOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(command: string, options: ExecOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(command: string, options?: ({ encoding?: string | null } & ExecOptions) | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ }
+
+ export interface ExecFileOptions {
+ cwd?: string;
+ env?: any;
+ timeout?: number;
+ maxBuffer?: number;
+ killSignal?: string;
+ uid?: number;
+ gid?: number;
+ }
+ export interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
+ encoding: BufferEncoding;
+ }
+ export interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
+ encoding: string | null; // specify `null`.
+ }
+
+ export function execFile(file: string): ChildProcess;
+ export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
+
+ // no `options` definitely means stdout/stderr are `string`.
+ export function execFile(file: string, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
+ export function execFile(file: string, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // `options` with well known `encoding` means stdout/stderr are definitely `string`.
+ export function execFile(file: string, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
+
+ // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
+ // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
+ export function execFile(file: string, options: { encoding: string } & ExecFileOptions, callback: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions, callback: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
+
+ // `options` without an `encoding` means stdout/stderr are definitely `string`.
+ export function execFile(file: string, options: ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
+
+ // fallback if nothing else matches. Worst case is always `string | Buffer`.
+ export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
+ export function execFile(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace execFile {
+ export function __promisify__(file: string): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(file: string, options: { encoding: "buffer" | null } & ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(file: string, options: { encoding: BufferEncoding } & ExecFileOptions): Promise<{ stdout: Buffer, stderr: Buffer }>;
+ export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions): Promise<{ stdout: Buffer, stderr: Buffer }>;
+ export function __promisify__(file: string, options: { encoding: string } & ExecFileOptions): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ export function __promisify__(file: string, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(file: string, args: string[] | undefined | null, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>;
+ export function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ export function __promisify__(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>;
+ }
+
+ export interface ForkOptions {
+ cwd?: string;
+ env?: any;
+ execPath?: string;
+ execArgv?: string[];
+ silent?: boolean;
+ stdio?: any[];
+ uid?: number;
+ gid?: number;
+ }
+ export function fork(modulePath: string, args?: string[], options?: ForkOptions): ChildProcess;
+
+ export interface SpawnSyncOptions {
+ cwd?: string;
+ input?: string | Buffer;
+ stdio?: any;
+ env?: any;
+ uid?: number;
+ gid?: number;
+ timeout?: number;
+ killSignal?: string;
+ maxBuffer?: number;
+ encoding?: string;
+ shell?: boolean | string;
+ }
+ export interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
+ encoding: BufferEncoding;
+ }
+ export interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
+ encoding: string; // specify `null`.
+ }
+ export interface SpawnSyncReturns<T> {
+ pid: number;
+ output: string[];
+ stdout: T;
+ stderr: T;
+ status: number;
+ signal: string;
+ error: Error;
+ }
+ export function spawnSync(command: string): SpawnSyncReturns<Buffer>;
+ export function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
+ export function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
+ export function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
+ export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
+ export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
+ export function spawnSync(command: string, args?: string[], options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
+
+ export interface ExecSyncOptions {
+ cwd?: string;
+ input?: string | Buffer;
+ stdio?: any;
+ env?: any;
+ shell?: string;
+ uid?: number;
+ gid?: number;
+ timeout?: number;
+ killSignal?: string;
+ maxBuffer?: number;
+ encoding?: string;
+ }
+ export interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
+ encoding: BufferEncoding;
+ }
+ export interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
+ encoding: string; // specify `null`.
+ }
+ export function execSync(command: string): Buffer;
+ export function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
+ export function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
+ export function execSync(command: string, options?: ExecSyncOptions): Buffer;
+
+ export interface ExecFileSyncOptions {
+ cwd?: string;
+ input?: string | Buffer;
+ stdio?: any;
+ env?: any;
+ uid?: number;
+ gid?: number;
+ timeout?: number;
+ killSignal?: string;
+ maxBuffer?: number;
+ encoding?: string;
+ }
+ export interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
+ encoding: BufferEncoding;
+ }
+ export interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
+ encoding: string; // specify `null`.
+ }
+ export function execFileSync(command: string): Buffer;
+ export function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
+ export function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
+ export function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
+ export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithStringEncoding): string;
+ export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
+ export function execFileSync(command: string, args?: string[], options?: ExecFileSyncOptions): Buffer;
+}
+
+declare module "url" {
+ export interface Url {
+ href?: string;
+ protocol?: string;
+ auth?: string;
+ hostname?: string;
+ port?: string;
+ host?: string;
+ pathname?: string;
+ search?: string;
+ query?: string | any;
+ slashes?: boolean;
+ hash?: string;
+ path?: string;
+ }
+
+ export interface UrlObject {
+ protocol?: string;
+ slashes?: boolean;
+ auth?: string;
+ host?: string;
+ hostname?: string;
+ port?: string | number;
+ pathname?: string;
+ search?: string;
+ query?: { [key: string]: any; };
+ hash?: string;
+ }
+
+ export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
+ export function format(URL: URL, options?: URLFormatOptions): string;
+ export function format(urlObject: UrlObject): string;
+ export function resolve(from: string, to: string): string;
+
+ export interface URLFormatOptions {
+ auth?: boolean;
+ fragment?: boolean;
+ search?: boolean;
+ unicode?: boolean;
+ }
+
+ export class URLSearchParams implements Iterable<string[]> {
+ constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<string[]>);
+ append(name: string, value: string): void;
+ delete(name: string): void;
+ entries(): Iterator<string[]>;
+ forEach(callback: (value: string, name: string) => void): void;
+ get(name: string): string | null;
+ getAll(name: string): string[];
+ has(name: string): boolean;
+ keys(): Iterator<string>;
+ set(name: string, value: string): void;
+ sort(): void;
+ toString(): string;
+ values(): Iterator<string>;
+ [Symbol.iterator](): Iterator<string[]>;
+ }
+
+ export class URL {
+ constructor(input: string, base?: string | URL);
+ hash: string;
+ host: string;
+ hostname: string;
+ href: string;
+ readonly origin: string;
+ password: string;
+ pathname: string;
+ port: string;
+ protocol: string;
+ search: string;
+ readonly searchParams: URLSearchParams;
+ username: string;
+ toString(): string;
+ toJSON(): string;
+ }
+}
+
+declare module "dns" {
+ // Supported getaddrinfo flags.
+ export const ADDRCONFIG: number;
+ export const V4MAPPED: number;
+
+ export interface LookupOptions {
+ family?: number;
+ hints?: number;
+ all?: boolean;
+ }
+
+ export interface LookupOneOptions extends LookupOptions {
+ all?: false;
+ }
+
+ export interface LookupAllOptions extends LookupOptions {
+ all: true;
+ }
+
+ export interface LookupAddress {
+ address: string;
+ family: number;
+ }
+
+ export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
+ export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
+ export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException, addresses: LookupAddress[]) => void): void;
+ export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException, address: string | LookupAddress[], family: number) => void): void;
+ export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace lookup {
+ export function __promisify__(hostname: string, options: LookupAllOptions): Promise<{ address: LookupAddress[] }>;
+ export function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<{ address: string, family: number }>;
+ export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
+ }
+
+ export interface ResolveOptions {
+ ttl: boolean;
+ }
+
+ export interface ResolveWithTtlOptions extends ResolveOptions {
+ ttl: true;
+ }
+
+ export interface RecordWithTtl {
+ address: string;
+ ttl: number;
+ }
+
+ export interface MxRecord {
+ priority: number;
+ exchange: string;
+ }
+
+ export interface NaptrRecord {
+ flags: string;
+ service: string;
+ regexp: string;
+ replacement: string;
+ order: number;
+ preference: number;
+ }
+
+ export interface SoaRecord {
+ nsname: string;
+ hostmaster: string;
+ serial: number;
+ refresh: number;
+ retry: number;
+ expire: number;
+ minttl: number;
+ }
+
+ export interface SrvRecord {
+ priority: number;
+ weight: number;
+ port: number;
+ name: string;
+ }
+
+ export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
+ export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
+ export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException, addresses: SoaRecord) => void): void;
+ export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
+ export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
+ export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace resolve {
+ export function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
+ export function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
+ export function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
+ export function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
+ export function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
+ export function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
+ export function __promisify__(hostname: string, rrtype?: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]>;
+ }
+
+ export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
+ export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace resolve4 {
+ export function __promisify__(hostname: string): Promise<string[]>;
+ export function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
+ export function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
+ }
+
+ export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException, addresses: RecordWithTtl[]) => void): void;
+ export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException, addresses: string[] | RecordWithTtl[]) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace resolve6 {
+ export function __promisify__(hostname: string): Promise<string[]>;
+ export function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
+ export function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
+ }
+
+ export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
+ export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
+ export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
+ export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException, address: SoaRecord) => void): void;
+ export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
+ export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
+
+ export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
+ export function setServers(servers: string[]): void;
+
+ // Error codes
+ export var NODATA: string;
+ export var FORMERR: string;
+ export var SERVFAIL: string;
+ export var NOTFOUND: string;
+ export var NOTIMP: string;
+ export var REFUSED: string;
+ export var BADQUERY: string;
+ export var BADNAME: string;
+ export var BADFAMILY: string;
+ export var BADRESP: string;
+ export var CONNREFUSED: string;
+ export var TIMEOUT: string;
+ export var EOF: string;
+ export var FILE: string;
+ export var NOMEM: string;
+ export var DESTRUCTION: string;
+ export var BADSTR: string;
+ export var BADFLAGS: string;
+ export var NONAME: string;
+ export var BADHINTS: string;
+ export var NOTINITIALIZED: string;
+ export var LOADIPHLPAPI: string;
+ export var ADDRGETNETWORKPARAMS: string;
+ export var CANCELLED: string;
+}
+
+declare module "net" {
+ import * as stream from "stream";
+ import * as events from "events";
+
+ export interface Socket extends stream.Duplex {
+ // Extended base methods
+ write(buffer: Buffer): boolean;
+ write(buffer: Buffer, cb?: Function): boolean;
+ write(str: string, cb?: Function): boolean;
+ write(str: string, encoding?: string, cb?: Function): boolean;
+ write(str: string, encoding?: string, fd?: string): boolean;
+ write(data: any, encoding?: string, callback?: Function): void;
+
+ connect(port: number, host?: string, connectionListener?: Function): void;
+ connect(path: string, connectionListener?: Function): void;
+ bufferSize: number;
+ setEncoding(encoding?: string): this;
+ destroy(err?: any): void;
+ pause(): this;
+ resume(): this;
+ setTimeout(timeout: number, callback?: Function): void;
+ setNoDelay(noDelay?: boolean): void;
+ setKeepAlive(enable?: boolean, initialDelay?: number): void;
+ address(): { port: number; family: string; address: string; };
+ unref(): void;
+ ref(): void;
+
+ remoteAddress?: string;
+ remoteFamily?: string;
+ remotePort?: number;
+ localAddress: string;
+ localPort: number;
+ bytesRead: number;
+ bytesWritten: number;
+ connecting: boolean;
+ destroyed: boolean;
+
+ // Extended base methods
+ end(): void;
+ end(buffer: Buffer, cb?: Function): void;
+ end(str: string, cb?: Function): void;
+ end(str: string, encoding?: string, cb?: Function): void;
+ end(data?: any, encoding?: string): void;
+
+ /**
+ * events.EventEmitter
+ * 1. close
+ * 2. connect
+ * 3. data
+ * 4. drain
+ * 5. end
+ * 6. error
+ * 7. lookup
+ * 8. timeout
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: (had_error: boolean) => void): this;
+ addListener(event: "connect", listener: () => void): this;
+ addListener(event: "data", listener: (data: Buffer) => void): this;
+ addListener(event: "drain", listener: () => void): this;
+ addListener(event: "end", listener: () => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+ addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
+ addListener(event: "timeout", listener: () => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close", had_error: boolean): boolean;
+ emit(event: "connect"): boolean;
+ emit(event: "data", data: Buffer): boolean;
+ emit(event: "drain"): boolean;
+ emit(event: "end"): boolean;
+ emit(event: "error", err: Error): boolean;
+ emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
+ emit(event: "timeout"): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: (had_error: boolean) => void): this;
+ on(event: "connect", listener: () => void): this;
+ on(event: "data", listener: (data: Buffer) => void): this;
+ on(event: "drain", listener: () => void): this;
+ on(event: "end", listener: () => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+ on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
+ on(event: "timeout", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: (had_error: boolean) => void): this;
+ once(event: "connect", listener: () => void): this;
+ once(event: "data", listener: (data: Buffer) => void): this;
+ once(event: "drain", listener: () => void): this;
+ once(event: "end", listener: () => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+ once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
+ once(event: "timeout", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: (had_error: boolean) => void): this;
+ prependListener(event: "connect", listener: () => void): this;
+ prependListener(event: "data", listener: (data: Buffer) => void): this;
+ prependListener(event: "drain", listener: () => void): this;
+ prependListener(event: "end", listener: () => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+ prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
+ prependListener(event: "timeout", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: (had_error: boolean) => void): this;
+ prependOnceListener(event: "connect", listener: () => void): this;
+ prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
+ prependOnceListener(event: "drain", listener: () => void): this;
+ prependOnceListener(event: "end", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+ prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
+ prependOnceListener(event: "timeout", listener: () => void): this;
+ }
+
+ export var Socket: {
+ new(options?: { fd?: number; allowHalfOpen?: boolean; readable?: boolean; writable?: boolean; }): Socket;
+ };
+
+ export interface ListenOptions {
+ port?: number;
+ host?: string;
+ backlog?: number;
+ path?: string;
+ exclusive?: boolean;
+ }
+
+ // https://github.com/nodejs/node/blob/master/lib/net.js
+ export class Server extends events.EventEmitter {
+ constructor(connectionListener?: (socket: Socket) => void);
+ constructor(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void);
+
+ listen(port?: number, hostname?: string, backlog?: number, listeningListener?: Function): Server;
+ listen(port?: number, hostname?: string, listeningListener?: Function): Server;
+ listen(port?: number, backlog?: number, listeningListener?: Function): Server;
+ listen(port?: number, listeningListener?: Function): Server;
+ listen(path: string, backlog?: number, listeningListener?: Function): Server;
+ listen(path: string, listeningListener?: Function): Server;
+ listen(options: ListenOptions, listeningListener?: Function): Server;
+ listen(handle: any, backlog?: number, listeningListener?: Function): Server;
+ listen(handle: any, listeningListener?: Function): Server;
+ close(callback?: Function): Server;
+ address(): { port: number; family: string; address: string; };
+ getConnections(cb: (error: Error, count: number) => void): void;
+ ref(): Server;
+ unref(): Server;
+ maxConnections: number;
+ connections: number;
+ listening: boolean;
+
+ /**
+ * events.EventEmitter
+ * 1. close
+ * 2. connection
+ * 3. error
+ * 4. listening
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: () => void): this;
+ addListener(event: "connection", listener: (socket: Socket) => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+ addListener(event: "listening", listener: () => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close"): boolean;
+ emit(event: "connection", socket: Socket): boolean;
+ emit(event: "error", err: Error): boolean;
+ emit(event: "listening"): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: () => void): this;
+ on(event: "connection", listener: (socket: Socket) => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+ on(event: "listening", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: () => void): this;
+ once(event: "connection", listener: (socket: Socket) => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+ once(event: "listening", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+ prependListener(event: "connection", listener: (socket: Socket) => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+ prependListener(event: "listening", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+ prependOnceListener(event: "listening", listener: () => void): this;
+ }
+ export function createServer(connectionListener?: (socket: Socket) => void): Server;
+ export function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server;
+ export function connect(options: { port: number, host?: string, localAddress?: string, localPort?: number, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
+ export function connect(port: number, host?: string, connectionListener?: Function): Socket;
+ export function connect(path: string, connectionListener?: Function): Socket;
+ export function createConnection(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
+ export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
+ export function createConnection(path: string, connectionListener?: Function): Socket;
+ export function isIP(input: string): number;
+ export function isIPv4(input: string): boolean;
+ export function isIPv6(input: string): boolean;
+}
+
+declare module "dgram" {
+ import * as events from "events";
+
+ interface RemoteInfo {
+ address: string;
+ family: string;
+ port: number;
+ }
+
+ interface AddressInfo {
+ address: string;
+ family: string;
+ port: number;
+ }
+
+ interface BindOptions {
+ port: number;
+ address?: string;
+ exclusive?: boolean;
+ }
+
+ type SocketType = "udp4" | "udp6";
+
+ interface SocketOptions {
+ type: SocketType;
+ reuseAddr?: boolean;
+ }
+
+ export function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
+ export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
+
+ export interface Socket extends events.EventEmitter {
+ send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
+ send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
+ bind(port?: number, address?: string, callback?: () => void): void;
+ bind(port?: number, callback?: () => void): void;
+ bind(callback?: () => void): void;
+ bind(options: BindOptions, callback?: Function): void;
+ close(callback?: () => void): void;
+ address(): AddressInfo;
+ setBroadcast(flag: boolean): void;
+ setTTL(ttl: number): void;
+ setMulticastTTL(ttl: number): void;
+ setMulticastLoopback(flag: boolean): void;
+ addMembership(multicastAddress: string, multicastInterface?: string): void;
+ dropMembership(multicastAddress: string, multicastInterface?: string): void;
+ ref(): this;
+ unref(): this;
+
+ /**
+ * events.EventEmitter
+ * 1. close
+ * 2. error
+ * 3. listening
+ * 4. message
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: () => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+ addListener(event: "listening", listener: () => void): this;
+ addListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close"): boolean;
+ emit(event: "error", err: Error): boolean;
+ emit(event: "listening"): boolean;
+ emit(event: "message", msg: Buffer, rinfo: AddressInfo): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: () => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+ on(event: "listening", listener: () => void): this;
+ on(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: () => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+ once(event: "listening", listener: () => void): this;
+ once(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+ prependListener(event: "listening", listener: () => void): this;
+ prependListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+ prependOnceListener(event: "listening", listener: () => void): this;
+ prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: AddressInfo) => void): this;
+ }
+}
+
+declare module "fs" {
+ import * as stream from "stream";
+ import * as events from "events";
+ import { URL } from "url";
+
+ /**
+ * Valid types for path values in "fs".
+ */
+ export type PathLike = string | Buffer | URL;
+
+ export interface Stats {
+ isFile(): boolean;
+ isDirectory(): boolean;
+ isBlockDevice(): boolean;
+ isCharacterDevice(): boolean;
+ isSymbolicLink(): boolean;
+ isFIFO(): boolean;
+ isSocket(): boolean;
+ dev: number;
+ ino: number;
+ mode: number;
+ nlink: number;
+ uid: number;
+ gid: number;
+ rdev: number;
+ size: number;
+ blksize: number;
+ blocks: number;
+ atime: Date;
+ mtime: Date;
+ ctime: Date;
+ birthtime: Date;
+ }
+
+ export interface FSWatcher extends events.EventEmitter {
+ close(): void;
+
+ /**
+ * events.EventEmitter
+ * 1. change
+ * 2. error
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
+ addListener(event: "error", listener: (code: number, signal: string) => void): this;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
+ on(event: "error", listener: (code: number, signal: string) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
+ once(event: "error", listener: (code: number, signal: string) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
+ prependListener(event: "error", listener: (code: number, signal: string) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
+ prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
+ }
+
+ export interface ReadStream extends stream.Readable {
+ close(): void;
+ destroy(): void;
+ bytesRead: number;
+ path: string | Buffer;
+
+ /**
+ * events.EventEmitter
+ * 1. open
+ * 2. close
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "open", listener: (fd: number) => void): this;
+ addListener(event: "close", listener: () => void): this;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "open", listener: (fd: number) => void): this;
+ on(event: "close", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "open", listener: (fd: number) => void): this;
+ once(event: "close", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "open", listener: (fd: number) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "open", listener: (fd: number) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ }
+
+ export interface WriteStream extends stream.Writable {
+ close(): void;
+ bytesWritten: number;
+ path: string | Buffer;
+
+ /**
+ * events.EventEmitter
+ * 1. open
+ * 2. close
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "open", listener: (fd: number) => void): this;
+ addListener(event: "close", listener: () => void): this;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "open", listener: (fd: number) => void): this;
+ on(event: "close", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "open", listener: (fd: number) => void): this;
+ once(event: "close", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "open", listener: (fd: number) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "open", listener: (fd: number) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ }
+
+ /**
+ * Asynchronous rename(2) - Change the name or location of a file or directory.
+ * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function rename(oldPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace rename {
+ /**
+ * Asynchronous rename(2) - Change the name or location of a file or directory.
+ * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function __promisify__(oldPath: PathLike, newPath: PathLike): Promise<void>;
+ }
+
+ /**
+ * Synchronous rename(2) - Change the name or location of a file or directory.
+ * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function renameSync(oldPath: PathLike, newPath: PathLike): void;
+
+ /**
+ * Asynchronous truncate(2) - Truncate a file to a specified length.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function truncate(path: PathLike, len: number | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronous truncate(2) - Truncate a file to a specified length.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function truncate(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace truncate {
+ /**
+ * Asynchronous truncate(2) - Truncate a file to a specified length.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function __promisify__(path: PathLike, len?: number | null): Promise<void>;
+ }
+
+ /**
+ * Synchronous truncate(2) - Truncate a file to a specified length.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function truncateSync(path: PathLike, len?: number | null): void;
+
+ /**
+ * Asynchronous ftruncate(2) - Truncate a file to a specified length.
+ * @param fd A file descriptor.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function ftruncate(fd: number, len: number | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronous ftruncate(2) - Truncate a file to a specified length.
+ * @param fd A file descriptor.
+ */
+ export function ftruncate(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace ftruncate {
+ /**
+ * Asynchronous ftruncate(2) - Truncate a file to a specified length.
+ * @param fd A file descriptor.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function __promisify__(fd: number, len?: number | null): Promise<void>;
+ }
+
+ /**
+ * Synchronous ftruncate(2) - Truncate a file to a specified length.
+ * @param fd A file descriptor.
+ * @param len If not specified, defaults to `0`.
+ */
+ export function ftruncateSync(fd: number, len?: number | null): void;
+
+ /**
+ * Asynchronous chown(2) - Change ownership of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function chown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace chown {
+ /**
+ * Asynchronous chown(2) - Change ownership of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike, uid: number, gid: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous chown(2) - Change ownership of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function chownSync(path: PathLike, uid: number, gid: number): void;
+
+ /**
+ * Asynchronous fchown(2) - Change ownership of a file.
+ * @param fd A file descriptor.
+ */
+ export function fchown(fd: number, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace fchown {
+ /**
+ * Asynchronous fchown(2) - Change ownership of a file.
+ * @param fd A file descriptor.
+ */
+ export function __promisify__(fd: number, uid: number, gid: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous fchown(2) - Change ownership of a file.
+ * @param fd A file descriptor.
+ */
+ export function fchownSync(fd: number, uid: number, gid: number): void;
+
+ /**
+ * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function lchown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace lchown {
+ /**
+ * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike, uid: number, gid: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function lchownSync(path: PathLike, uid: number, gid: number): void;
+
+ /**
+ * Asynchronous chmod(2) - Change permissions of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function chmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace chmod {
+ /**
+ * Asynchronous chmod(2) - Change permissions of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function __promisify__(path: PathLike, mode: string | number): Promise<void>;
+ }
+
+ /**
+ * Synchronous chmod(2) - Change permissions of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function chmodSync(path: PathLike, mode: string | number): void;
+
+ /**
+ * Asynchronous fchmod(2) - Change permissions of a file.
+ * @param fd A file descriptor.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function fchmod(fd: number, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace fchmod {
+ /**
+ * Asynchronous fchmod(2) - Change permissions of a file.
+ * @param fd A file descriptor.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function __promisify__(fd: number, mode: string | number): Promise<void>;
+ }
+
+ /**
+ * Synchronous fchmod(2) - Change permissions of a file.
+ * @param fd A file descriptor.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function fchmodSync(fd: number, mode: string | number): void;
+
+ /**
+ * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function lchmod(path: PathLike, mode: string | number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace lchmod {
+ /**
+ * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function __promisify__(path: PathLike, mode: string | number): Promise<void>;
+ }
+
+ /**
+ * Synchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
+ */
+ export function lchmodSync(path: PathLike, mode: string | number): void;
+
+ /**
+ * Asynchronous stat(2) - Get file status.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace stat {
+ /**
+ * Asynchronous stat(2) - Get file status.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike): Promise<Stats>;
+ }
+
+ /**
+ * Synchronous stat(2) - Get file status.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function statSync(path: PathLike): Stats;
+
+ /**
+ * Asynchronous fstat(2) - Get file status.
+ * @param fd A file descriptor.
+ */
+ export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace fstat {
+ /**
+ * Asynchronous fstat(2) - Get file status.
+ * @param fd A file descriptor.
+ */
+ export function __promisify__(fd: number): Promise<Stats>;
+ }
+
+ /**
+ * Synchronous fstat(2) - Get file status.
+ * @param fd A file descriptor.
+ */
+ export function fstatSync(fd: number): Stats;
+
+ /**
+ * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace lstat {
+ /**
+ * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike): Promise<Stats>;
+ }
+
+ /**
+ * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function lstatSync(path: PathLike): Stats;
+
+ /**
+ * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
+ * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function link(existingPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace link {
+ /**
+ * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
+ * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
+ }
+
+ /**
+ * Synchronous link(2) - Create a new link (also known as a hard link) to an existing file.
+ * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function linkSync(existingPath: PathLike, newPath: PathLike): void;
+
+ /**
+ * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
+ * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
+ * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
+ * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
+ * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
+ */
+ export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
+ * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
+ * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function symlink(target: PathLike, path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace symlink {
+ /**
+ * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
+ * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
+ * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
+ * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
+ * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
+ */
+ export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
+ }
+
+ /**
+ * Synchronous symlink(2) - Create a new symbolic link to an existing file.
+ * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
+ * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
+ * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
+ * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
+ */
+ export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlink(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, linkString: string) => void): void;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlink(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, linkString: Buffer) => void): void;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlink(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, linkString: string | Buffer) => void): void;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException, linkString: string) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace readlink {
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): Promise<string>;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>;
+
+ /**
+ * Asynchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding?: string | null } | string | null): Promise<string | Buffer>;
+ }
+
+ /**
+ * Synchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlinkSync(path: PathLike, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): string;
+
+ /**
+ * Synchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlinkSync(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer;
+
+ /**
+ * Synchronous readlink(2) - read value of a symbolic link.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readlinkSync(path: PathLike, options?: { encoding?: string | null } | string | null): string | Buffer;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpath(path: PathLike, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => void): void;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpath(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, resolvedPath: Buffer) => void): void;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpath(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, resolvedPath: string | Buffer) => void): void;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace realpath {
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): Promise<string>;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>;
+
+ /**
+ * Asynchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding?: string | null } | string | null): Promise<string | Buffer>;
+ }
+
+ /**
+ * Synchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpathSync(path: PathLike, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): string;
+
+ /**
+ * Synchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpathSync(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer;
+
+ /**
+ * Synchronous realpath(3) - return the canonicalized absolute pathname.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function realpathSync(path: PathLike, options?: { encoding?: string | null } | string | null): string | Buffer;
+
+ /**
+ * Asynchronous unlink(2) - delete a name and possibly the file it refers to.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function unlink(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace unlink {
+ /**
+ * Asynchronous unlink(2) - delete a name and possibly the file it refers to.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike): Promise<void>;
+ }
+
+ /**
+ * Synchronous unlink(2) - delete a name and possibly the file it refers to.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function unlinkSync(path: PathLike): void;
+
+ /**
+ * Asynchronous rmdir(2) - delete a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function rmdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace rmdir {
+ /**
+ * Asynchronous rmdir(2) - delete a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function __promisify__(path: PathLike): Promise<void>;
+ }
+
+ /**
+ * Synchronous rmdir(2) - delete a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function rmdirSync(path: PathLike): void;
+
+ /**
+ * Asynchronous mkdir(2) - create a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
+ */
+ export function mkdir(path: PathLike, mode: number | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function mkdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace mkdir {
+ /**
+ * Asynchronous mkdir(2) - create a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
+ */
+ export function __promisify__(path: PathLike, mode?: number | string | null): Promise<void>;
+ }
+
+ /**
+ * Synchronous mkdir(2) - create a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
+ */
+ export function mkdirSync(path: PathLike, mode?: number | string | null): void;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtemp(prefix: string, options: { encoding?: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtemp(prefix: string, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException, folder: Buffer) => void): void;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtemp(prefix: string, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, folder: string | Buffer) => void): void;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ */
+ export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace mkdtemp {
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(prefix: string, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): Promise<string>;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(prefix: string, options: { encoding: "buffer" } | "buffer"): Promise<Buffer>;
+
+ /**
+ * Asynchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(prefix: string, options?: { encoding?: string | null } | string | null): Promise<string | Buffer>;
+ }
+
+ /**
+ * Synchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtempSync(prefix: string, options?: { encoding?: BufferEncoding | null } | BufferEncoding | null): string;
+
+ /**
+ * Synchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtempSync(prefix: string, options: { encoding: "buffer" } | "buffer"): Buffer;
+
+ /**
+ * Synchronously creates a unique temporary directory.
+ * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function mkdtempSync(prefix: string, options?: { encoding?: string | null } | string | null): string | Buffer;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdir(path: PathLike, options: { encoding: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdir(path: PathLike, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, files: Buffer[]) => void): void;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdir(path: PathLike, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, files: Array<string | Buffer>) => void): void;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace readdir {
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding: BufferEncoding | null } | BufferEncoding | null): Promise<string[]>;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options: "buffer" | { encoding: "buffer" }): Promise<Buffer[]>;
+
+ /**
+ * Asynchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function __promisify__(path: PathLike, options?: { encoding?: string | null } | string | null): Promise<Array<string | Buffer>>;
+ }
+
+ /**
+ * Synchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdirSync(path: PathLike, options?: { encoding: BufferEncoding | null } | BufferEncoding | null): string[];
+
+ /**
+ * Synchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdirSync(path: PathLike, options: { encoding: "buffer" } | "buffer"): Buffer[];
+
+ /**
+ * Synchronous readdir(3) - read a directory.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
+ */
+ export function readdirSync(path: PathLike, options?: { encoding?: string | null } | string | null): Array<string | Buffer>;
+
+ /**
+ * Asynchronous close(2) - close a file descriptor.
+ * @param fd A file descriptor.
+ */
+ export function close(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace close {
+ /**
+ * Asynchronous close(2) - close a file descriptor.
+ * @param fd A file descriptor.
+ */
+ export function __promisify__(fd: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous close(2) - close a file descriptor.
+ * @param fd A file descriptor.
+ */
+ export function closeSync(fd: number): void;
+
+ /**
+ * Asynchronous open(2) - open and possibly create a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
+ */
+ export function open(path: PathLike, flags: string | number, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
+
+ /**
+ * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ */
+ export function open(path: PathLike, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace open {
+ /**
+ * Asynchronous open(2) - open and possibly create a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
+ */
+ export function __promisify__(path: PathLike, flags: string | number, mode?: string | number | null): Promise<number>;
+ }
+
+ /**
+ * Synchronous open(2) - open and possibly create a file, returning a file descriptor..
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
+ */
+ export function openSync(path: PathLike, flags: string | number, mode?: string | number | null): number;
+
+ /**
+ * Asynchronously change file timestamps of the file referenced by the supplied path.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace utimes {
+ /**
+ * Asynchronously change file timestamps of the file referenced by the supplied path.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
+ }
+
+ /**
+ * Synchronously change file timestamps of the file referenced by the supplied path.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function utimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void;
+
+ /**
+ * Asynchronously change file timestamps of the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function futimes(fd: number, atime: string | number | Date, mtime: string | number | Date, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace futimes {
+ /**
+ * Asynchronously change file timestamps of the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function __promisify__(fd: number, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
+ }
+
+ /**
+ * Synchronously change file timestamps of the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param atime The last access time. If a string is provided, it will be coerced to number.
+ * @param mtime The last modified time. If a string is provided, it will be coerced to number.
+ */
+ export function futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void;
+
+ /**
+ * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.
+ * @param fd A file descriptor.
+ */
+ export function fsync(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace fsync {
+ /**
+ * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.
+ * @param fd A file descriptor.
+ */
+ export function __promisify__(fd: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.
+ * @param fd A file descriptor.
+ */
+ export function fsyncSync(fd: number): void;
+
+ /**
+ * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
+ * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ */
+ export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, position: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
+
+ /**
+ * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
+ * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
+ */
+ export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
+
+ /**
+ * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
+ */
+ export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
+
+ /**
+ * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ */
+ export function write<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void): void;
+
+ /**
+ * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param string A string to write. If something other than a string is supplied it will be coerced to a string.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ * @param encoding The expected string encoding.
+ */
+ export function write(fd: number, string: any, position: number | undefined | null, encoding: string | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+
+ /**
+ * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param string A string to write. If something other than a string is supplied it will be coerced to a string.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ */
+ export function write(fd: number, string: any, position: number | undefined | null, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+
+ /**
+ * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param string A string to write. If something other than a string is supplied it will be coerced to a string.
+ */
+ export function write(fd: number, string: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace write {
+ /**
+ * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
+ * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ */
+ export function __promisify__<TBuffer extends Buffer | Uint8Array>(fd: number, buffer?: TBuffer, offset?: number, length?: number, position?: number | null): Promise<{ bytesWritten: number, buffer: TBuffer }>;
+
+ /**
+ * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param string A string to write. If something other than a string is supplied it will be coerced to a string.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ * @param encoding The expected string encoding.
+ */
+ export function __promisify__(fd: number, string: any, position?: number | null, encoding?: string | null): Promise<{ bytesWritten: number, buffer: string }>;
+ }
+
+ /**
+ * Synchronously writes `buffer` to the file referenced by the supplied file descriptor, returning the number of bytes written.
+ * @param fd A file descriptor.
+ * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
+ * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ */
+ export function writeSync(fd: number, buffer: Buffer | Uint8Array, offset?: number | null, length?: number | null, position?: number | null): number;
+
+ /**
+ * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written.
+ * @param fd A file descriptor.
+ * @param string A string to write. If something other than a string is supplied it will be coerced to a string.
+ * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
+ * @param encoding The expected string encoding.
+ */
+ export function writeSync(fd: number, string: any, position?: number | null, encoding?: string | null): number;
+
+ /**
+ * Asynchronously reads data from the file referenced by the supplied file descriptor.
+ * @param fd A file descriptor.
+ * @param buffer The buffer that the data will be written to.
+ * @param offset The offset in the buffer at which to start writing.
+ * @param length The number of bytes to read.
+ * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
+ */
+ export function read<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: TBuffer) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace read {
+ /**
+ * @param fd A file descriptor.
+ * @param buffer The buffer that the data will be written to.
+ * @param offset The offset in the buffer at which to start writing.
+ * @param length The number of bytes to read.
+ * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
+ */
+ export function __promisify__<TBuffer extends Buffer | Uint8Array>(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null): Promise<{ bytesRead: number, buffer: TBuffer }>;
+ }
+
+ /**
+ * Synchronously reads data from the file referenced by the supplied file descriptor, returning the number of bytes read.
+ * @param fd A file descriptor.
+ * @param buffer The buffer that the data will be written to.
+ * @param offset The offset in the buffer at which to start writing.
+ * @param length The number of bytes to read.
+ * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
+ */
+ export function readSync(fd: number, buffer: Buffer | Uint8Array, offset: number, length: number, position: number | null): number;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options An object that may contain an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFile(path: PathLike | number, options: { encoding?: null; flag?: string; } | undefined | null, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFile(path: PathLike | number, options: { encoding: string; flag?: string; } | string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFile(path: PathLike | number, options: { encoding?: string | null; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException, data: string | Buffer) => void): void;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ */
+ export function readFile(path: PathLike | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace readFile {
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options An object that may contain an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function __promisify__(path: PathLike | number, options?: { encoding?: null; flag?: string; } | null): Promise<Buffer>;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function __promisify__(path: PathLike | number, options: { encoding: string; flag?: string; } | string): Promise<string>;
+
+ /**
+ * Asynchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function __promisify__(path: PathLike | number, options?: { encoding?: string | null; flag?: string; } | string | null): Promise<string | Buffer>;
+ }
+
+ /**
+ * Synchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options An object that may contain an optional flag. If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFileSync(path: PathLike | number, options?: { encoding?: null; flag?: string; } | null): Buffer;
+
+ /**
+ * Synchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFileSync(path: PathLike | number, options: { encoding: string; flag?: string; } | string): string;
+
+ /**
+ * Synchronously reads the entire contents of a file.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
+ * If a flag is not provided, it defaults to `'r'`.
+ */
+ export function readFileSync(path: PathLike | number, options?: { encoding?: string | null; flag?: string; } | string | null): string | Buffer;
+
+ /**
+ * Asynchronously writes data to a file, replacing the file if it already exists.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'w'` is used.
+ */
+ export function writeFile(path: PathLike | number, data: any, options: { encoding?: string | null; mode?: number | string; flag?: string; } | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronously writes data to a file, replacing the file if it already exists.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ */
+ export function writeFile(path: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace writeFile {
+ /**
+ * Asynchronously writes data to a file, replacing the file if it already exists.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'w'` is used.
+ */
+ export function __promisify__(path: PathLike | number, data: any, options?: { encoding?: string | null; mode?: number | string; flag?: string; } | string | null): Promise<void>;
+ }
+
+ /**
+ * Synchronously writes data to a file, replacing the file if it already exists.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'w'` is used.
+ */
+ export function writeFileSync(path: PathLike | number, data: any, options?: { encoding?: string | null; mode?: number | string; flag?: string; } | string | null): void;
+
+ /**
+ * Asynchronously append data to a file, creating the file if it does not exist.
+ * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'a'` is used.
+ */
+ export function appendFile(file: PathLike | number, data: any, options: { encoding?: string | null, mode?: string | number, flag?: string } | string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronously append data to a file, creating the file if it does not exist.
+ * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ */
+ export function appendFile(file: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace appendFile {
+ /**
+ * Asynchronously append data to a file, creating the file if it does not exist.
+ * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'a'` is used.
+ */
+ export function __promisify__(file: PathLike | number, data: any, options?: { encoding?: string | null, mode?: string | number, flag?: string } | string | null): Promise<void>;
+ }
+
+ /**
+ * Synchronously append data to a file, creating the file if it does not exist.
+ * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
+ * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
+ * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `mode` is not supplied, the default of `0o666` is used.
+ * If `mode` is a string, it is parsed as an octal integer.
+ * If `flag` is not supplied, the default of `'a'` is used.
+ */
+ export function appendFileSync(file: PathLike | number, data: any, options?: { encoding?: string | null; mode?: number | string; flag?: string; } | string | null): void;
+
+ /**
+ * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
+ */
+ export function watchFile(filename: PathLike, options: { persistent?: boolean; interval?: number; } | undefined, listener: (curr: Stats, prev: Stats) => void): void;
+
+ /**
+ * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): void;
+
+ /**
+ * Stop watching for changes on `filename`.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void;
+
+ /**
+ * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `persistent` is not supplied, the default of `true` is used.
+ * If `recursive` is not supplied, the default of `false` is used.
+ */
+ export function watch(filename: PathLike, options: { encoding?: BufferEncoding | null, persistent?: boolean, recursive?: boolean } | BufferEncoding | undefined | null, listener?: (event: string, filename: string) => void): FSWatcher;
+
+ /**
+ * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `persistent` is not supplied, the default of `true` is used.
+ * If `recursive` is not supplied, the default of `false` is used.
+ */
+ export function watch(filename: PathLike, options: { encoding: "buffer", persistent?: boolean, recursive?: boolean } | "buffer", listener?: (event: string, filename: Buffer) => void): FSWatcher;
+
+ /**
+ * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
+ * If `encoding` is not supplied, the default of `'utf8'` is used.
+ * If `persistent` is not supplied, the default of `true` is used.
+ * If `recursive` is not supplied, the default of `false` is used.
+ */
+ export function watch(filename: PathLike, options: { encoding?: string | null, persistent?: boolean, recursive?: boolean } | string | null, listener?: (event: string, filename: string | Buffer) => void): FSWatcher;
+
+ /**
+ * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
+ * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function watch(filename: PathLike, listener?: (event: string, filename: string) => any): FSWatcher;
+
+ /**
+ * Asynchronously tests whether or not the given path exists by checking with the file system.
+ * @deprecated
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function exists(path: PathLike, callback: (exists: boolean) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace exists {
+ /**
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ function __promisify__(path: PathLike): Promise<boolean>;
+ }
+
+ /**
+ * Synchronously tests whether or not the given path exists by checking with the file system.
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function existsSync(path: PathLike): boolean;
+
+ export namespace constants {
+ // File Access Constants
+
+ /** Constant for fs.access(). File is visible to the calling process. */
+ export const F_OK: number;
+
+ /** Constant for fs.access(). File can be read by the calling process. */
+ export const R_OK: number;
+
+ /** Constant for fs.access(). File can be written by the calling process. */
+ export const W_OK: number;
+
+ /** Constant for fs.access(). File can be executed by the calling process. */
+ export const X_OK: number;
+
+ // File Open Constants
+
+ /** Constant for fs.open(). Flag indicating to open a file for read-only access. */
+ export const O_RDONLY: number;
+
+ /** Constant for fs.open(). Flag indicating to open a file for write-only access. */
+ export const O_WRONLY: number;
+
+ /** Constant for fs.open(). Flag indicating to open a file for read-write access. */
+ export const O_RDWR: number;
+
+ /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */
+ export const O_CREAT: number;
+
+ /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */
+ export const O_EXCL: number;
+
+ /** Constant for fs.open(). Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one). */
+ export const O_NOCTTY: number;
+
+ /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */
+ export const O_TRUNC: number;
+
+ /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */
+ export const O_APPEND: number;
+
+ /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */
+ export const O_DIRECTORY: number;
+
+ /** Constant for fs.open(). Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only. */
+ export const O_NOATIME: number;
+
+ /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */
+ export const O_NOFOLLOW: number;
+
+ /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */
+ export const O_SYNC: number;
+
+ /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */
+ export const O_SYMLINK: number;
+
+ /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */
+ export const O_DIRECT: number;
+
+ /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */
+ export const O_NONBLOCK: number;
+
+ // File Type Constants
+
+ /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */
+ export const S_IFMT: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */
+ export const S_IFREG: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */
+ export const S_IFDIR: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */
+ export const S_IFCHR: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */
+ export const S_IFBLK: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */
+ export const S_IFIFO: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */
+ export const S_IFLNK: number;
+
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */
+ export const S_IFSOCK: number;
+
+ // File Mode Constants
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */
+ export const S_IRWXU: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */
+ export const S_IRUSR: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */
+ export const S_IWUSR: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */
+ export const S_IXUSR: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */
+ export const S_IRWXG: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */
+ export const S_IRGRP: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */
+ export const S_IWGRP: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */
+ export const S_IXGRP: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */
+ export const S_IRWXO: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */
+ export const S_IROTH: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */
+ export const S_IWOTH: number;
+
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */
+ export const S_IXOTH: number;
+ }
+
+ /**
+ * Asynchronously tests a user's permissions for the file specified by path.
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function access(path: PathLike, mode: number | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ /**
+ * Asynchronously tests a user's permissions for the file specified by path.
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function access(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace access {
+ /**
+ * Asynchronously tests a user's permissions for the file specified by path.
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function __promisify__(path: PathLike, mode?: number): Promise<void>;
+ }
+
+ /**
+ * Synchronously tests a user's permissions for the file specified by path.
+ * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function accessSync(path: PathLike, mode?: number): void;
+
+ /**
+ * Returns a new `ReadStream` object.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function createReadStream(path: PathLike, options?: string | {
+ flags?: string;
+ encoding?: string;
+ fd?: number;
+ mode?: number;
+ autoClose?: boolean;
+ start?: number;
+ end?: number;
+ }): ReadStream;
+
+ /**
+ * Returns a new `WriteStream` object.
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
+ * URL support is _experimental_.
+ */
+ export function createWriteStream(path: PathLike, options?: string | {
+ flags?: string;
+ defaultEncoding?: string;
+ fd?: number;
+ mode?: number;
+ autoClose?: boolean;
+ start?: number;
+ }): WriteStream;
+
+ /**
+ * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
+ * @param fd A file descriptor.
+ */
+ export function fdatasync(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
+
+ // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
+ export namespace fdatasync {
+ /**
+ * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
+ * @param fd A file descriptor.
+ */
+ export function __promisify__(fd: number): Promise<void>;
+ }
+
+ /**
+ * Synchronous fdatasync(2) - synchronize a file's in-core state with storage device.
+ * @param fd A file descriptor.
+ */
+ export function fdatasyncSync(fd: number): void;
+}
+
+declare module "path" {
+ /**
+ * A parsed path object generated by path.parse() or consumed by path.format().
+ */
+ export interface ParsedPath {
+ /**
+ * The root of the path such as '/' or 'c:\'
+ */
+ root: string;
+ /**
+ * The full directory path such as '/home/user/dir' or 'c:\path\dir'
+ */
+ dir: string;
+ /**
+ * The file name including extension (if any) such as 'index.html'
+ */
+ base: string;
+ /**
+ * The file extension (if any) such as '.html'
+ */
+ ext: string;
+ /**
+ * The file name without extension (if any) such as 'index'
+ */
+ name: string;
+ }
+
+ /**
+ * Normalize a string path, reducing '..' and '.' parts.
+ * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
+ *
+ * @param p string path to normalize.
+ */
+ export function normalize(p: string): string;
+ /**
+ * Join all arguments together and normalize the resulting path.
+ * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
+ *
+ * @param paths paths to join.
+ */
+ export function join(...paths: string[]): string;
+ /**
+ * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
+ *
+ * Starting from leftmost {from} paramter, resolves {to} to an absolute path.
+ *
+ * If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
+ *
+ * @param pathSegments string paths to join. Non-string arguments are ignored.
+ */
+ export function resolve(...pathSegments: any[]): string;
+ /**
+ * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
+ *
+ * @param path path to test.
+ */
+ export function isAbsolute(path: string): boolean;
+ /**
+ * Solve the relative path from {from} to {to}.
+ * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
+ *
+ * @param from
+ * @param to
+ */
+ export function relative(from: string, to: string): string;
+ /**
+ * Return the directory name of a path. Similar to the Unix dirname command.
+ *
+ * @param p the path to evaluate.
+ */
+ export function dirname(p: string): string;
+ /**
+ * Return the last portion of a path. Similar to the Unix basename command.
+ * Often used to extract the file name from a fully qualified path.
+ *
+ * @param p the path to evaluate.
+ * @param ext optionally, an extension to remove from the result.
+ */
+ export function basename(p: string, ext?: string): string;
+ /**
+ * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
+ * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
+ *
+ * @param p the path to evaluate.
+ */
+ export function extname(p: string): string;
+ /**
+ * The platform-specific file separator. '\\' or '/'.
+ */
+ export var sep: string;
+ /**
+ * The platform-specific file delimiter. ';' or ':'.
+ */
+ export var delimiter: string;
+ /**
+ * Returns an object from a path string - the opposite of format().
+ *
+ * @param pathString path to evaluate.
+ */
+ export function parse(pathString: string): ParsedPath;
+ /**
+ * Returns a path string from an object - the opposite of parse().
+ *
+ * @param pathString path to evaluate.
+ */
+ export function format(pathObject: ParsedPath): string;
+
+ export module posix {
+ export function normalize(p: string): string;
+ export function join(...paths: any[]): string;
+ export function resolve(...pathSegments: any[]): string;
+ export function isAbsolute(p: string): boolean;
+ export function relative(from: string, to: string): string;
+ export function dirname(p: string): string;
+ export function basename(p: string, ext?: string): string;
+ export function extname(p: string): string;
+ export var sep: string;
+ export var delimiter: string;
+ export function parse(p: string): ParsedPath;
+ export function format(pP: ParsedPath): string;
+ }
+
+ export module win32 {
+ export function normalize(p: string): string;
+ export function join(...paths: any[]): string;
+ export function resolve(...pathSegments: any[]): string;
+ export function isAbsolute(p: string): boolean;
+ export function relative(from: string, to: string): string;
+ export function dirname(p: string): string;
+ export function basename(p: string, ext?: string): string;
+ export function extname(p: string): string;
+ export var sep: string;
+ export var delimiter: string;
+ export function parse(p: string): ParsedPath;
+ export function format(pP: ParsedPath): string;
+ }
+}
+
+declare module "string_decoder" {
+ export interface NodeStringDecoder {
+ write(buffer: Buffer): string;
+ end(buffer?: Buffer): string;
+ }
+ export var StringDecoder: {
+ new(encoding?: string): NodeStringDecoder;
+ };
+}
+
+declare module "tls" {
+ import * as crypto from "crypto";
+ import * as net from "net";
+ import * as stream from "stream";
+
+ var CLIENT_RENEG_LIMIT: number;
+ var CLIENT_RENEG_WINDOW: number;
+
+ export interface Certificate {
+ /**
+ * Country code.
+ */
+ C: string;
+ /**
+ * Street.
+ */
+ ST: string;
+ /**
+ * Locality.
+ */
+ L: string;
+ /**
+ * Organization.
+ */
+ O: string;
+ /**
+ * Organizational unit.
+ */
+ OU: string;
+ /**
+ * Common name.
+ */
+ CN: string;
+ }
+
+ export interface PeerCertificate {
+ subject: Certificate;
+ issuer: Certificate;
+ subjectaltname: string;
+ infoAccess: { [index: string]: string[] | undefined };
+ modulus: string;
+ exponent: string;
+ valid_from: string;
+ valid_to: string;
+ fingerprint: string;
+ ext_key_usage: string[];
+ serialNumber: string;
+ raw: Buffer;
+ }
+
+ export interface DetailedPeerCertificate extends PeerCertificate {
+ issuerCertificate: DetailedPeerCertificate;
+ }
+
+ export interface CipherNameAndProtocol {
+ /**
+ * The cipher name.
+ */
+ name: string;
+ /**
+ * SSL/TLS protocol version.
+ */
+ version: string;
+ }
+
+ export class TLSSocket extends net.Socket {
+ /**
+ * Construct a new tls.TLSSocket object from an existing TCP socket.
+ */
+ constructor(socket: net.Socket, options?: {
+ /**
+ * An optional TLS context object from tls.createSecureContext()
+ */
+ secureContext?: SecureContext,
+ /**
+ * If true the TLS socket will be instantiated in server-mode.
+ * Defaults to false.
+ */
+ isServer?: boolean,
+ /**
+ * An optional net.Server instance.
+ */
+ server?: net.Server,
+ /**
+ * If true the server will request a certificate from clients that
+ * connect and attempt to verify that certificate. Defaults to
+ * false.
+ */
+ requestCert?: boolean,
+ /**
+ * If true the server will reject any connection which is not
+ * authorized with the list of supplied CAs. This option only has an
+ * effect if requestCert is true. Defaults to false.
+ */
+ rejectUnauthorized?: boolean,
+ /**
+ * An array of strings or a Buffer naming possible NPN protocols.
+ * (Protocols should be ordered by their priority.)
+ */
+ NPNProtocols?: string[] | Buffer,
+ /**
+ * An array of strings or a Buffer naming possible ALPN protocols.
+ * (Protocols should be ordered by their priority.) When the server
+ * receives both NPN and ALPN extensions from the client, ALPN takes
+ * precedence over NPN and the server does not send an NPN extension
+ * to the client.
+ */
+ ALPNProtocols?: string[] | Buffer,
+ /**
+ * SNICallback(servername, cb) <Function> A function that will be
+ * called if the client supports SNI TLS extension. Two arguments
+ * will be passed when called: servername and cb. SNICallback should
+ * invoke cb(null, ctx), where ctx is a SecureContext instance.
+ * (tls.createSecureContext(...) can be used to get a proper
+ * SecureContext.) If SNICallback wasn't provided the default callback
+ * with high-level API will be used (see below).
+ */
+ SNICallback?: Function,
+ /**
+ * An optional Buffer instance containing a TLS session.
+ */
+ session?: Buffer,
+ /**
+ * If true, specifies that the OCSP status request extension will be
+ * added to the client hello and an 'OCSPResponse' event will be
+ * emitted on the socket before establishing a secure communication
+ */
+ requestOCSP?: boolean
+ });
+ /**
+ * Returns the bound address, the address family name and port of the underlying socket as reported by
+ * the operating system.
+ * @returns {any} - An object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }.
+ */
+ address(): { port: number; family: string; address: string };
+ /**
+ * A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false.
+ */
+ authorized: boolean;
+ /**
+ * The reason why the peer's certificate has not been verified.
+ * This property becomes available only when tlsSocket.authorized === false.
+ */
+ authorizationError: Error;
+ /**
+ * Static boolean value, always true.
+ * May be used to distinguish TLS sockets from regular ones.
+ */
+ encrypted: boolean;
+ /**
+ * Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection.
+ * @returns {CipherNameAndProtocol} - Returns an object representing the cipher name
+ * and the SSL/TLS protocol version of the current connection.
+ */
+ getCipher(): CipherNameAndProtocol;
+ /**
+ * Returns an object representing the peer's certificate.
+ * The returned object has some properties corresponding to the field of the certificate.
+ * If detailed argument is true the full chain with issuer property will be returned,
+ * if false only the top certificate without issuer property.
+ * If the peer does not provide a certificate, it returns null or an empty object.
+ * @param {boolean} detailed - If true; the full chain with issuer property will be returned.
+ * @returns {PeerCertificate | DetailedPeerCertificate} - An object representing the peer's certificate.
+ */
+ getPeerCertificate(detailed: true): DetailedPeerCertificate;
+ getPeerCertificate(detailed?: false): PeerCertificate;
+ getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
+ /**
+ * Could be used to speed up handshake establishment when reconnecting to the server.
+ * @returns {any} - ASN.1 encoded TLS session or undefined if none was negotiated.
+ */
+ getSession(): any;
+ /**
+ * NOTE: Works only with client TLS sockets.
+ * Useful only for debugging, for session reuse provide session option to tls.connect().
+ * @returns {any} - TLS session ticket or undefined if none was negotiated.
+ */
+ getTLSTicket(): any;
+ /**
+ * The string representation of the local IP address.
+ */
+ localAddress: string;
+ /**
+ * The numeric representation of the local port.
+ */
+ localPort: number;
+ /**
+ * The string representation of the remote IP address.
+ * For example, '74.125.127.100' or '2001:4860:a005::68'.
+ */
+ remoteAddress: string;
+ /**
+ * The string representation of the remote IP family. 'IPv4' or 'IPv6'.
+ */
+ remoteFamily: string;
+ /**
+ * The numeric representation of the remote port. For example, 443.
+ */
+ remotePort: number;
+ /**
+ * Initiate TLS renegotiation process.
+ *
+ * NOTE: Can be used to request peer's certificate after the secure connection has been established.
+ * ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handshakeTimeout timeout.
+ * @param {TlsOptions} options - The options may contain the following fields: rejectUnauthorized,
+ * requestCert (See tls.createServer() for details).
+ * @param {Function} callback - callback(err) will be executed with null as err, once the renegotiation
+ * is successfully completed.
+ */
+ renegotiate(options: TlsOptions, callback: (err: Error) => any): any;
+ /**
+ * Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
+ * Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
+ * the TLS layer until the entire fragment is received and its integrity is verified;
+ * large fragments can span multiple roundtrips, and their processing can be delayed due to packet
+ * loss or reordering. However, smaller fragments add extra TLS framing bytes and CPU overhead,
+ * which may decrease overall server throughput.
+ * @param {number} size - TLS fragment size (default and maximum value is: 16384, minimum is: 512).
+ * @returns {boolean} - Returns true on success, false otherwise.
+ */
+ setMaxSendFragment(size: number): boolean;
+
+ /**
+ * events.EventEmitter
+ * 1. OCSPResponse
+ * 2. secureConnect
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
+ addListener(event: "secureConnect", listener: () => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "OCSPResponse", response: Buffer): boolean;
+ emit(event: "secureConnect"): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
+ on(event: "secureConnect", listener: () => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
+ once(event: "secureConnect", listener: () => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
+ prependListener(event: "secureConnect", listener: () => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
+ prependOnceListener(event: "secureConnect", listener: () => void): this;
+ }
+
+ export interface TlsOptions {
+ host?: string;
+ port?: number;
+ pfx?: string | Buffer[];
+ key?: string | string[] | Buffer | any[];
+ passphrase?: string;
+ cert?: string | string[] | Buffer | Buffer[];
+ ca?: string | string[] | Buffer | Buffer[];
+ crl?: string | string[];
+ ciphers?: string;
+ honorCipherOrder?: boolean;
+ requestCert?: boolean;
+ rejectUnauthorized?: boolean;
+ NPNProtocols?: string[] | Buffer;
+ SNICallback?: (servername: string, cb: (err: Error, ctx: SecureContext) => any) => any;
+ ecdhCurve?: string;
+ dhparam?: string | Buffer;
+ handshakeTimeout?: number;
+ ALPNProtocols?: string[] | Buffer;
+ sessionTimeout?: number;
+ ticketKeys?: any;
+ sessionIdContext?: string;
+ secureProtocol?: string;
+ }
+
+ export interface ConnectionOptions {
+ host?: string;
+ port?: number;
+ socket?: net.Socket;
+ pfx?: string | Buffer;
+ key?: string | string[] | Buffer | Buffer[];
+ passphrase?: string;
+ cert?: string | string[] | Buffer | Buffer[];
+ ca?: string | Buffer | Array<string | Buffer>;
+ rejectUnauthorized?: boolean;
+ NPNProtocols?: Array<string | Buffer>;
+ servername?: string;
+ path?: string;
+ ALPNProtocols?: Array<string | Buffer>;
+ checkServerIdentity?: (servername: string, cert: string | Buffer | Array<string | Buffer>) => any;
+ secureProtocol?: string;
+ secureContext?: Object;
+ session?: Buffer;
+ minDHSize?: number;
+ }
+
+ export interface Server extends net.Server {
+ close(callback?: Function): Server;
+ address(): { port: number; family: string; address: string; };
+ addContext(hostName: string, credentials: {
+ key: string;
+ cert: string;
+ ca: string;
+ }): void;
+ maxConnections: number;
+ connections: number;
+
+ /**
+ * events.EventEmitter
+ * 1. tlsClientError
+ * 2. newSession
+ * 3. OCSPRequest
+ * 4. resumeSession
+ * 5. secureConnection
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
+ addListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
+ addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
+ addListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
+ addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
+ emit(event: "newSession", sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void): boolean;
+ emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: Function): boolean;
+ emit(event: "resumeSession", sessionId: any, callback: (err: Error, sessionData: any) => void): boolean;
+ emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
+ on(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
+ on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
+ on(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
+ on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
+ once(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
+ once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
+ once(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
+ once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
+ prependListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
+ prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
+ prependListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
+ prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
+ prependOnceListener(event: "newSession", listener: (sessionId: any, sessionData: any, callback: (err: Error, resp: Buffer) => void) => void): this;
+ prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: Function) => void): this;
+ prependOnceListener(event: "resumeSession", listener: (sessionId: any, callback: (err: Error, sessionData: any) => void) => void): this;
+ prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
+ }
+
+ export interface ClearTextStream extends stream.Duplex {
+ authorized: boolean;
+ authorizationError: Error;
+ getPeerCertificate(): any;
+ getCipher: {
+ name: string;
+ version: string;
+ };
+ address: {
+ port: number;
+ family: string;
+ address: string;
+ };
+ remoteAddress: string;
+ remotePort: number;
+ }
+
+ export interface SecurePair {
+ encrypted: any;
+ cleartext: any;
+ }
+
+ export interface SecureContextOptions {
+ pfx?: string | Buffer;
+ key?: string | Buffer;
+ passphrase?: string;
+ cert?: string | Buffer;
+ ca?: string | Buffer;
+ crl?: string | string[];
+ ciphers?: string;
+ honorCipherOrder?: boolean;
+ }
+
+ export interface SecureContext {
+ context: any;
+ }
+
+ export function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
+ export function connect(options: ConnectionOptions, secureConnectionListener?: () => void): TLSSocket;
+ export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
+ export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
+ export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
+ export function createSecureContext(details: SecureContextOptions): SecureContext;
+}
+
+declare module "crypto" {
+ export interface Certificate {
+ exportChallenge(spkac: string | Buffer): Buffer;
+ exportPublicKey(spkac: string | Buffer): Buffer;
+ verifySpkac(spkac: Buffer): boolean;
+ }
+ export var Certificate: {
+ new(): Certificate;
+ (): Certificate;
+ };
+
+ export var fips: boolean;
+
+ export interface CredentialDetails {
+ pfx: string;
+ key: string;
+ passphrase: string;
+ cert: string;
+ ca: string | string[];
+ crl: string | string[];
+ ciphers: string;
+ }
+ export interface Credentials { context?: any; }
+ export function createCredentials(details: CredentialDetails): Credentials;
+ export function createHash(algorithm: string): Hash;
+ export function createHmac(algorithm: string, key: string | Buffer): Hmac;
+
+ type Utf8AsciiLatin1Encoding = "utf8" | "ascii" | "latin1";
+ type HexBase64Latin1Encoding = "latin1" | "hex" | "base64";
+ type Utf8AsciiBinaryEncoding = "utf8" | "ascii" | "binary";
+ type HexBase64BinaryEncoding = "binary" | "base64" | "hex";
+ type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
+
+ export interface Hash extends NodeJS.ReadWriteStream {
+ update(data: string | Buffer): Hash;
+ update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Hash;
+ digest(): Buffer;
+ digest(encoding: HexBase64Latin1Encoding): string;
+ }
+ export interface Hmac extends NodeJS.ReadWriteStream {
+ update(data: string | Buffer): Hmac;
+ update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Hmac;
+ digest(): Buffer;
+ digest(encoding: HexBase64Latin1Encoding): string;
+ }
+ export function createCipher(algorithm: string, password: any): Cipher;
+ export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
+ export interface Cipher extends NodeJS.ReadWriteStream {
+ update(data: Buffer): Buffer;
+ update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer;
+ update(data: Buffer, input_encoding: any, output_encoding: HexBase64BinaryEncoding): string;
+ update(data: string, input_encoding: Utf8AsciiBinaryEncoding, output_encoding: HexBase64BinaryEncoding): string;
+ final(): Buffer;
+ final(output_encoding: string): string;
+ setAutoPadding(auto_padding?: boolean): void;
+ getAuthTag(): Buffer;
+ setAAD(buffer: Buffer): void;
+ }
+ export function createDecipher(algorithm: string, password: any): Decipher;
+ export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
+ export interface Decipher extends NodeJS.ReadWriteStream {
+ update(data: Buffer): Buffer;
+ update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer;
+ update(data: Buffer, input_encoding: any, output_encoding: Utf8AsciiBinaryEncoding): string;
+ update(data: string, input_encoding: HexBase64BinaryEncoding, output_encoding: Utf8AsciiBinaryEncoding): string;
+ final(): Buffer;
+ final(output_encoding: string): string;
+ setAutoPadding(auto_padding?: boolean): void;
+ setAuthTag(tag: Buffer): void;
+ setAAD(buffer: Buffer): void;
+ }
+ export function createSign(algorithm: string): Signer;
+ export interface Signer extends NodeJS.WritableStream {
+ update(data: string | Buffer): Signer;
+ update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Signer;
+ sign(private_key: string | { key: string; passphrase: string }): Buffer;
+ sign(private_key: string | { key: string; passphrase: string }, output_format: HexBase64Latin1Encoding): string;
+ }
+ export function createVerify(algorith: string): Verify;
+ export interface Verify extends NodeJS.WritableStream {
+ update(data: string | Buffer): Verify;
+ update(data: string | Buffer, input_encoding: Utf8AsciiLatin1Encoding): Verify;
+ verify(object: string | Object, signature: Buffer | DataView): boolean;
+ verify(object: string | Object, signature: string, signature_format: HexBase64Latin1Encoding): boolean;
+ // https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
+ // The signature field accepts a TypedArray type, but it is only available starting ES2017
+ }
+ export function createDiffieHellman(prime_length: number, generator?: number): DiffieHellman;
+ export function createDiffieHellman(prime: Buffer): DiffieHellman;
+ export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding): DiffieHellman;
+ export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: number | Buffer): DiffieHellman;
+ export function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: string, generator_encoding: HexBase64Latin1Encoding): DiffieHellman;
+ export interface DiffieHellman {
+ generateKeys(): Buffer;
+ generateKeys(encoding: HexBase64Latin1Encoding): string;
+ computeSecret(other_public_key: Buffer): Buffer;
+ computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
+ computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
+ getPrime(): Buffer;
+ getPrime(encoding: HexBase64Latin1Encoding): string;
+ getGenerator(): Buffer;
+ getGenerator(encoding: HexBase64Latin1Encoding): string;
+ getPublicKey(): Buffer;
+ getPublicKey(encoding: HexBase64Latin1Encoding): string;
+ getPrivateKey(): Buffer;
+ getPrivateKey(encoding: HexBase64Latin1Encoding): string;
+ setPublicKey(public_key: Buffer): void;
+ setPublicKey(public_key: string, encoding: string): void;
+ setPrivateKey(private_key: Buffer): void;
+ setPrivateKey(private_key: string, encoding: string): void;
+ verifyError: number;
+ }
+ export function getDiffieHellman(group_name: string): DiffieHellman;
+ export function pbkdf2(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
+ export function pbkdf2Sync(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string): Buffer;
+ export function randomBytes(size: number): Buffer;
+ export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
+ export function pseudoRandomBytes(size: number): Buffer;
+ export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
+ export function randomFillSync(buffer: Buffer | Uint8Array, offset?: number, size?: number): Buffer;
+ export function randomFill(buffer: Buffer, callback: (err: Error, buf: Buffer) => void): void;
+ export function randomFill(buffer: Uint8Array, callback: (err: Error, buf: Uint8Array) => void): void;
+ export function randomFill(buffer: Buffer, offset: number, callback: (err: Error, buf: Buffer) => void): void;
+ export function randomFill(buffer: Uint8Array, offset: number, callback: (err: Error, buf: Uint8Array) => void): void;
+ export function randomFill(buffer: Buffer, offset: number, size: number, callback: (err: Error, buf: Buffer) => void): void;
+ export function randomFill(buffer: Uint8Array, offset: number, size: number, callback: (err: Error, buf: Uint8Array) => void): void;
+ export interface RsaPublicKey {
+ key: string;
+ padding?: number;
+ }
+ export interface RsaPrivateKey {
+ key: string;
+ passphrase?: string;
+ padding?: number;
+ }
+ export function publicEncrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer;
+ export function privateDecrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer;
+ export function privateEncrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer;
+ export function publicDecrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer;
+ export function getCiphers(): string[];
+ export function getCurves(): string[];
+ export function getHashes(): string[];
+ export interface ECDH {
+ generateKeys(): Buffer;
+ generateKeys(encoding: HexBase64Latin1Encoding): string;
+ generateKeys(encoding: HexBase64Latin1Encoding, format: ECDHKeyFormat): string;
+ computeSecret(other_public_key: Buffer): Buffer;
+ computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
+ computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
+ getPrivateKey(): Buffer;
+ getPrivateKey(encoding: HexBase64Latin1Encoding): string;
+ getPublicKey(): Buffer;
+ getPublicKey(encoding: HexBase64Latin1Encoding): string;
+ getPublicKey(encoding: HexBase64Latin1Encoding, format: ECDHKeyFormat): string;
+ setPrivateKey(private_key: Buffer): void;
+ setPrivateKey(private_key: string, encoding: HexBase64Latin1Encoding): void;
+ }
+ export function createECDH(curve_name: string): ECDH;
+ export function timingSafeEqual(a: Buffer, b: Buffer): boolean;
+ export var DEFAULT_ENCODING: string;
+}
+
+declare module "stream" {
+ import * as events from "events";
+
+ class internal extends events.EventEmitter {
+ pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
+ }
+
+ namespace internal {
+ export class Stream extends internal { }
+
+ export interface ReadableOptions {
+ highWaterMark?: number;
+ encoding?: string;
+ objectMode?: boolean;
+ read?: (this: Readable, size?: number) => any;
+ destroy?: (error?: Error) => any;
+ }
+
+ export class Readable extends Stream implements NodeJS.ReadableStream {
+ readable: boolean;
+ constructor(opts?: ReadableOptions);
+ _read(size: number): void;
+ read(size?: number): any;
+ setEncoding(encoding: string): this;
+ pause(): this;
+ resume(): this;
+ isPaused(): boolean;
+ pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
+ unpipe<T extends NodeJS.WritableStream>(destination?: T): this;
+ unshift(chunk: any): void;
+ wrap(oldStream: NodeJS.ReadableStream): Readable;
+ push(chunk: any, encoding?: string): boolean;
+ destroy(error?: Error): void;
+
+ /**
+ * Event emitter
+ * The defined events on documents including:
+ * 1. close
+ * 2. data
+ * 3. end
+ * 4. readable
+ * 5. error
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: () => void): this;
+ addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
+ addListener(event: "end", listener: () => void): this;
+ addListener(event: "readable", listener: () => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close"): boolean;
+ emit(event: "data", chunk: Buffer | string): boolean;
+ emit(event: "end"): boolean;
+ emit(event: "readable"): boolean;
+ emit(event: "error", err: Error): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: () => void): this;
+ on(event: "data", listener: (chunk: Buffer | string) => void): this;
+ on(event: "end", listener: () => void): this;
+ on(event: "readable", listener: () => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: () => void): this;
+ once(event: "data", listener: (chunk: Buffer | string) => void): this;
+ once(event: "end", listener: () => void): this;
+ once(event: "readable", listener: () => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+ prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
+ prependListener(event: "end", listener: () => void): this;
+ prependListener(event: "readable", listener: () => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
+ prependOnceListener(event: "end", listener: () => void): this;
+ prependOnceListener(event: "readable", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+
+ removeListener(event: string, listener: (...args: any[]) => void): this;
+ removeListener(event: "close", listener: () => void): this;
+ removeListener(event: "data", listener: (chunk: Buffer | string) => void): this;
+ removeListener(event: "end", listener: () => void): this;
+ removeListener(event: "readable", listener: () => void): this;
+ removeListener(event: "error", listener: (err: Error) => void): this;
+ }
+
+ export interface WritableOptions {
+ highWaterMark?: number;
+ decodeStrings?: boolean;
+ objectMode?: boolean;
+ write?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
+ writev?: (chunks: Array<{ chunk: string | Buffer, encoding: string }>, callback: Function) => any;
+ destroy?: (error?: Error) => any;
+ }
+
+ export class Writable extends Stream implements NodeJS.WritableStream {
+ writable: boolean;
+ constructor(opts?: WritableOptions);
+ _write(chunk: any, encoding: string, callback: Function): void;
+ _destroy(err: Error, callback: Function): void;
+ _final(callback: Function): void;
+ write(chunk: any, cb?: Function): boolean;
+ write(chunk: any, encoding?: string, cb?: Function): boolean;
+ setDefaultEncoding(encoding: string): this;
+ end(): void;
+ end(chunk: any, cb?: Function): void;
+ end(chunk: any, encoding?: string, cb?: Function): void;
+ cork(): void;
+ uncork(): void;
+ destroy(error?: Error): void;
+
+ /**
+ * Event emitter
+ * The defined events on documents including:
+ * 1. close
+ * 2. drain
+ * 3. error
+ * 4. finish
+ * 5. pipe
+ * 6. unpipe
+ */
+ addListener(event: string, listener: (...args: any[]) => void): this;
+ addListener(event: "close", listener: () => void): this;
+ addListener(event: "drain", listener: () => void): this;
+ addListener(event: "error", listener: (err: Error) => void): this;
+ addListener(event: "finish", listener: () => void): this;
+ addListener(event: "pipe", listener: (src: Readable) => void): this;
+ addListener(event: "unpipe", listener: (src: Readable) => void): this;
+
+ emit(event: string | symbol, ...args: any[]): boolean;
+ emit(event: "close"): boolean;
+ emit(event: "drain", chunk: Buffer | string): boolean;
+ emit(event: "error", err: Error): boolean;
+ emit(event: "finish"): boolean;
+ emit(event: "pipe", src: Readable): boolean;
+ emit(event: "unpipe", src: Readable): boolean;
+
+ on(event: string, listener: (...args: any[]) => void): this;
+ on(event: "close", listener: () => void): this;
+ on(event: "drain", listener: () => void): this;
+ on(event: "error", listener: (err: Error) => void): this;
+ on(event: "finish", listener: () => void): this;
+ on(event: "pipe", listener: (src: Readable) => void): this;
+ on(event: "unpipe", listener: (src: Readable) => void): this;
+
+ once(event: string, listener: (...args: any[]) => void): this;
+ once(event: "close", listener: () => void): this;
+ once(event: "drain", listener: () => void): this;
+ once(event: "error", listener: (err: Error) => void): this;
+ once(event: "finish", listener: () => void): this;
+ once(event: "pipe", listener: (src: Readable) => void): this;
+ once(event: "unpipe", listener: (src: Readable) => void): this;
+
+ prependListener(event: string, listener: (...args: any[]) => void): this;
+ prependListener(event: "close", listener: () => void): this;
+ prependListener(event: "drain", listener: () => void): this;
+ prependListener(event: "error", listener: (err: Error) => void): this;
+ prependListener(event: "finish", listener: () => void): this;
+ prependListener(event: "pipe", listener: (src: Readable) => void): this;
+ prependListener(event: "unpipe", listener: (src: Readable) => void): this;
+
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
+ prependOnceListener(event: "close", listener: () => void): this;
+ prependOnceListener(event: "drain", listener: () => void): this;
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
+ prependOnceListener(event: "finish", listener: () => void): this;
+ prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
+ prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
+
+ removeListener(event: string, listener: (...args: any[]) => void): this;
+ removeListener(event: "close", listener: () => void): this;
+ removeListener(event: "drain", listener: () => void): this;
+ removeListener(event: "error", listener: (err: Error) => void): this;
+ removeListener(event: "finish", listener: () => void): this;
+ removeListener(event: "pipe", listener: (src: Readable) => void): this;
+ removeListener(event: "unpipe", listener: (src: Readable) => void): this;
+ }
+
+ export interface DuplexOptions extends ReadableOptions, WritableOptions {
+ allowHalfOpen?: boolean;
+ readableObjectMode?: boolean;
+ writableObjectMode?: boolean;
+ }
+
+ // Note: Duplex extends both Readable and Writable.
+ export class Duplex extends Readable implements Writable {
+ writable: boolean;
+ constructor(opts?: DuplexOptions);
+ _write(chunk: any, encoding: string, callback: Function): void;
+ _destroy(err: Error, callback: Function): void;
+ _final(callback: Function): void;
+ write(chunk: any, cb?: Function): boolean;
+ write(chunk: any, encoding?: string, cb?: Function): boolean;
+ setDefaultEncoding(encoding: string): this;
+ end(): void;
+ end(chunk: any, cb?: Function): void;
+ end(chunk: any, encoding?: string, cb?: Function): void;
+ cork(): void;
+ uncork(): void;
+ }
+
+ export interface TransformOptions extends DuplexOptions {
+ transform?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
+ flush?: (callback: Function) => any;
+ }
+
+ export class Transform extends Duplex {
+ constructor(opts?: TransformOptions);
+ _transform(chunk: any, encoding: string, callback: Function): void;
+ destroy(error?: Error): void;
+ }
+
+ export class PassThrough extends Transform { }
+ }
+
+ export = internal;
+}
+
+declare module "util" {
+ export interface InspectOptions extends NodeJS.InspectOptions { }
+ export function format(format: any, ...param: any[]): string;
+ export function debug(string: string): void;
+ export function error(...param: any[]): void;
+ export function puts(...param: any[]): void;
+ export function print(...param: any[]): void;
+ export function log(string: string): void;
+ export var inspect: {
+ (object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
+ (object: any, options: InspectOptions): string;
+ colors: {
+ [color: string]: [number, number] | undefined
+ }
+ styles: {
+ [style: string]: string | undefined
+ }
+ defaultOptions: InspectOptions;
+ custom: symbol;
+ };
+ export function isArray(object: any): object is any[];
+ export function isRegExp(object: any): object is RegExp;
+ export function isDate(object: any): object is Date;
+ export function isError(object: any): object is Error;
+ export function inherits(constructor: any, superConstructor: any): void;
+ export function debuglog(key: string): (msg: string, ...param: any[]) => void;
+ export function isBoolean(object: any): object is boolean;
+ export function isBuffer(object: any): object is Buffer;
+ export function isFunction(object: any): boolean;
+ export function isNull(object: any): object is null;
+ export function isNullOrUndefined(object: any): object is null | undefined;
+ export function isNumber(object: any): object is number;
+ export function isObject(object: any): boolean;
+ export function isPrimitive(object: any): boolean;
+ export function isString(object: any): object is string;
+ export function isSymbol(object: any): object is symbol;
+ export function isUndefined(object: any): object is undefined;
+ export function deprecate(fn: Function, message: string): Function;
+
+ export interface CustomPromisify<TCustom extends Function> extends Function {
+ __promisify__: TCustom;
+ }
+
+ export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
+ export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
+ export function promisify<T1>(fn: (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void): (arg1: T1) => Promise<void>;
+ export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
+ export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
+ export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
+ export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
+ export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
+ export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
+ export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
+ export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
+ export function promisify(fn: Function): Function;
+ export namespace promisify {
+ const custom: symbol;
+ }
+}
+
+declare module "assert" {
+ function internal(value: any, message?: string): void;
+ namespace internal {
+ export class AssertionError implements Error {
+ name: string;
+ message: string;
+ actual: any;
+ expected: any;
+ operator: string;
+ generatedMessage: boolean;
+
+ constructor(options?: {
+ message?: string; actual?: any; expected?: any;
+ operator?: string; stackStartFunction?: Function
+ });
+ }
+
+ export function fail(message: string): void;
+ export function fail(actual: any, expected: any, message?: string, operator?: string): void;
+ export function ok(value: any, message?: string): void;
+ export function equal(actual: any, expected: any, message?: string): void;
+ export function notEqual(actual: any, expected: any, message?: string): void;
+ export function deepEqual(actual: any, expected: any, message?: string): void;
+ export function notDeepEqual(acutal: any, expected: any, message?: string): void;
+ export function strictEqual(actual: any, expected: any, message?: string): void;
+ export function notStrictEqual(actual: any, expected: any, message?: string): void;
+ export function deepStrictEqual(actual: any, expected: any, message?: string): void;
+ export function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
+
+ export function throws(block: Function, message?: string): void;
+ export function throws(block: Function, error: Function, message?: string): void;
+ export function throws(block: Function, error: RegExp, message?: string): void;
+ export function throws(block: Function, error: (err: any) => boolean, message?: string): void;
+
+ export function doesNotThrow(block: Function, message?: string): void;
+ export function doesNotThrow(block: Function, error: Function, message?: string): void;
+ export function doesNotThrow(block: Function, error: RegExp, message?: string): void;
+ export function doesNotThrow(block: Function, error: (err: any) => boolean, message?: string): void;
+
+ export function ifError(value: any): void;
+ }
+
+ export = internal;
+}
+
+declare module "tty" {
+ import * as net from "net";
+
+ export function isatty(fd: number): boolean;
+ export interface ReadStream extends net.Socket {
+ isRaw: boolean;
+ setRawMode(mode: boolean): void;
+ isTTY: boolean;
+ }
+ export interface WriteStream extends net.Socket {
+ columns: number;
+ rows: number;
+ isTTY: boolean;
+ }
+}
+
+declare module "domain" {
+ import * as events from "events";
+
+ export class Domain extends events.EventEmitter implements NodeJS.Domain {
+ run(fn: Function): void;
+ add(emitter: events.EventEmitter): void;
+ remove(emitter: events.EventEmitter): void;
+ bind(cb: (err: Error, data: any) => any): any;
+ intercept(cb: (data: any) => any): any;
+ dispose(): void;
+ members: any[];
+ enter(): void;
+ exit(): void;
+ }
+
+ export function create(): Domain;
+}
+
+declare module "constants" {
+ export var E2BIG: number;
+ export var EACCES: number;
+ export var EADDRINUSE: number;
+ export var EADDRNOTAVAIL: number;
+ export var EAFNOSUPPORT: number;
+ export var EAGAIN: number;
+ export var EALREADY: number;
+ export var EBADF: number;
+ export var EBADMSG: number;
+ export var EBUSY: number;
+ export var ECANCELED: number;
+ export var ECHILD: number;
+ export var ECONNABORTED: number;
+ export var ECONNREFUSED: number;
+ export var ECONNRESET: number;
+ export var EDEADLK: number;
+ export var EDESTADDRREQ: number;
+ export var EDOM: number;
+ export var EEXIST: number;
+ export var EFAULT: number;
+ export var EFBIG: number;
+ export var EHOSTUNREACH: number;
+ export var EIDRM: number;
+ export var EILSEQ: number;
+ export var EINPROGRESS: number;
+ export var EINTR: number;
+ export var EINVAL: number;
+ export var EIO: number;
+ export var EISCONN: number;
+ export var EISDIR: number;
+ export var ELOOP: number;
+ export var EMFILE: number;
+ export var EMLINK: number;
+ export var EMSGSIZE: number;
+ export var ENAMETOOLONG: number;
+ export var ENETDOWN: number;
+ export var ENETRESET: number;
+ export var ENETUNREACH: number;
+ export var ENFILE: number;
+ export var ENOBUFS: number;
+ export var ENODATA: number;
+ export var ENODEV: number;
+ export var ENOENT: number;
+ export var ENOEXEC: number;
+ export var ENOLCK: number;
+ export var ENOLINK: number;
+ export var ENOMEM: number;
+ export var ENOMSG: number;
+ export var ENOPROTOOPT: number;
+ export var ENOSPC: number;
+ export var ENOSR: number;
+ export var ENOSTR: number;
+ export var ENOSYS: number;
+ export var ENOTCONN: number;
+ export var ENOTDIR: number;
+ export var ENOTEMPTY: number;
+ export var ENOTSOCK: number;
+ export var ENOTSUP: number;
+ export var ENOTTY: number;
+ export var ENXIO: number;
+ export var EOPNOTSUPP: number;
+ export var EOVERFLOW: number;
+ export var EPERM: number;
+ export var EPIPE: number;
+ export var EPROTO: number;
+ export var EPROTONOSUPPORT: number;
+ export var EPROTOTYPE: number;
+ export var ERANGE: number;
+ export var EROFS: number;
+ export var ESPIPE: number;
+ export var ESRCH: number;
+ export var ETIME: number;
+ export var ETIMEDOUT: number;
+ export var ETXTBSY: number;
+ export var EWOULDBLOCK: number;
+ export var EXDEV: number;
+ export var WSAEINTR: number;
+ export var WSAEBADF: number;
+ export var WSAEACCES: number;
+ export var WSAEFAULT: number;
+ export var WSAEINVAL: number;
+ export var WSAEMFILE: number;
+ export var WSAEWOULDBLOCK: number;
+ export var WSAEINPROGRESS: number;
+ export var WSAEALREADY: number;
+ export var WSAENOTSOCK: number;
+ export var WSAEDESTADDRREQ: number;
+ export var WSAEMSGSIZE: number;
+ export var WSAEPROTOTYPE: number;
+ export var WSAENOPROTOOPT: number;
+ export var WSAEPROTONOSUPPORT: number;
+ export var WSAESOCKTNOSUPPORT: number;
+ export var WSAEOPNOTSUPP: number;
+ export var WSAEPFNOSUPPORT: number;
+ export var WSAEAFNOSUPPORT: number;
+ export var WSAEADDRINUSE: number;
+ export var WSAEADDRNOTAVAIL: number;
+ export var WSAENETDOWN: number;
+ export var WSAENETUNREACH: number;
+ export var WSAENETRESET: number;
+ export var WSAECONNABORTED: number;
+ export var WSAECONNRESET: number;
+ export var WSAENOBUFS: number;
+ export var WSAEISCONN: number;
+ export var WSAENOTCONN: number;
+ export var WSAESHUTDOWN: number;
+ export var WSAETOOMANYREFS: number;
+ export var WSAETIMEDOUT: number;
+ export var WSAECONNREFUSED: number;
+ export var WSAELOOP: number;
+ export var WSAENAMETOOLONG: number;
+ export var WSAEHOSTDOWN: number;
+ export var WSAEHOSTUNREACH: number;
+ export var WSAENOTEMPTY: number;
+ export var WSAEPROCLIM: number;
+ export var WSAEUSERS: number;
+ export var WSAEDQUOT: number;
+ export var WSAESTALE: number;
+ export var WSAEREMOTE: number;
+ export var WSASYSNOTREADY: number;
+ export var WSAVERNOTSUPPORTED: number;
+ export var WSANOTINITIALISED: number;
+ export var WSAEDISCON: number;
+ export var WSAENOMORE: number;
+ export var WSAECANCELLED: number;
+ export var WSAEINVALIDPROCTABLE: number;
+ export var WSAEINVALIDPROVIDER: number;
+ export var WSAEPROVIDERFAILEDINIT: number;
+ export var WSASYSCALLFAILURE: number;
+ export var WSASERVICE_NOT_FOUND: number;
+ export var WSATYPE_NOT_FOUND: number;
+ export var WSA_E_NO_MORE: number;
+ export var WSA_E_CANCELLED: number;
+ export var WSAEREFUSED: number;
+ export var SIGHUP: number;
+ export var SIGINT: number;
+ export var SIGILL: number;
+ export var SIGABRT: number;
+ export var SIGFPE: number;
+ export var SIGKILL: number;
+ export var SIGSEGV: number;
+ export var SIGTERM: number;
+ export var SIGBREAK: number;
+ export var SIGWINCH: number;
+ export var SSL_OP_ALL: number;
+ export var SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
+ export var SSL_OP_CIPHER_SERVER_PREFERENCE: number;
+ export var SSL_OP_CISCO_ANYCONNECT: number;
+ export var SSL_OP_COOKIE_EXCHANGE: number;
+ export var SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
+ export var SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
+ export var SSL_OP_EPHEMERAL_RSA: number;
+ export var SSL_OP_LEGACY_SERVER_CONNECT: number;
+ export var SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
+ export var SSL_OP_MICROSOFT_SESS_ID_BUG: number;
+ export var SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
+ export var SSL_OP_NETSCAPE_CA_DN_BUG: number;
+ export var SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
+ export var SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
+ export var SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
+ export var SSL_OP_NO_COMPRESSION: number;
+ export var SSL_OP_NO_QUERY_MTU: number;
+ export var SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
+ export var SSL_OP_NO_SSLv2: number;
+ export var SSL_OP_NO_SSLv3: number;
+ export var SSL_OP_NO_TICKET: number;
+ export var SSL_OP_NO_TLSv1: number;
+ export var SSL_OP_NO_TLSv1_1: number;
+ export var SSL_OP_NO_TLSv1_2: number;
+ export var SSL_OP_PKCS1_CHECK_1: number;
+ export var SSL_OP_PKCS1_CHECK_2: number;
+ export var SSL_OP_SINGLE_DH_USE: number;
+ export var SSL_OP_SINGLE_ECDH_USE: number;
+ export var SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
+ export var SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
+ export var SSL_OP_TLS_BLOCK_PADDING_BUG: number;
+ export var SSL_OP_TLS_D5_BUG: number;
+ export var SSL_OP_TLS_ROLLBACK_BUG: number;
+ export var ENGINE_METHOD_DSA: number;
+ export var ENGINE_METHOD_DH: number;
+ export var ENGINE_METHOD_RAND: number;
+ export var ENGINE_METHOD_ECDH: number;
+ export var ENGINE_METHOD_ECDSA: number;
+ export var ENGINE_METHOD_CIPHERS: number;
+ export var ENGINE_METHOD_DIGESTS: number;
+ export var ENGINE_METHOD_STORE: number;
+ export var ENGINE_METHOD_PKEY_METHS: number;
+ export var ENGINE_METHOD_PKEY_ASN1_METHS: number;
+ export var ENGINE_METHOD_ALL: number;
+ export var ENGINE_METHOD_NONE: number;
+ export var DH_CHECK_P_NOT_SAFE_PRIME: number;
+ export var DH_CHECK_P_NOT_PRIME: number;
+ export var DH_UNABLE_TO_CHECK_GENERATOR: number;
+ export var DH_NOT_SUITABLE_GENERATOR: number;
+ export var NPN_ENABLED: number;
+ export var RSA_PKCS1_PADDING: number;
+ export var RSA_SSLV23_PADDING: number;
+ export var RSA_NO_PADDING: number;
+ export var RSA_PKCS1_OAEP_PADDING: number;
+ export var RSA_X931_PADDING: number;
+ export var RSA_PKCS1_PSS_PADDING: number;
+ export var POINT_CONVERSION_COMPRESSED: number;
+ export var POINT_CONVERSION_UNCOMPRESSED: number;
+ export var POINT_CONVERSION_HYBRID: number;
+ export var O_RDONLY: number;
+ export var O_WRONLY: number;
+ export var O_RDWR: number;
+ export var S_IFMT: number;
+ export var S_IFREG: number;
+ export var S_IFDIR: number;
+ export var S_IFCHR: number;
+ export var S_IFBLK: number;
+ export var S_IFIFO: number;
+ export var S_IFSOCK: number;
+ export var S_IRWXU: number;
+ export var S_IRUSR: number;
+ export var S_IWUSR: number;
+ export var S_IXUSR: number;
+ export var S_IRWXG: number;
+ export var S_IRGRP: number;
+ export var S_IWGRP: number;
+ export var S_IXGRP: number;
+ export var S_IRWXO: number;
+ export var S_IROTH: number;
+ export var S_IWOTH: number;
+ export var S_IXOTH: number;
+ export var S_IFLNK: number;
+ export var O_CREAT: number;
+ export var O_EXCL: number;
+ export var O_NOCTTY: number;
+ export var O_DIRECTORY: number;
+ export var O_NOATIME: number;
+ export var O_NOFOLLOW: number;
+ export var O_SYNC: number;
+ export var O_SYMLINK: number;
+ export var O_DIRECT: number;
+ export var O_NONBLOCK: number;
+ export var O_TRUNC: number;
+ export var O_APPEND: number;
+ export var F_OK: number;
+ export var R_OK: number;
+ export var W_OK: number;
+ export var X_OK: number;
+ export var UV_UDP_REUSEADDR: number;
+ export var SIGQUIT: number;
+ export var SIGTRAP: number;
+ export var SIGIOT: number;
+ export var SIGBUS: number;
+ export var SIGUSR1: number;
+ export var SIGUSR2: number;
+ export var SIGPIPE: number;
+ export var SIGALRM: number;
+ export var SIGCHLD: number;
+ export var SIGSTKFLT: number;
+ export var SIGCONT: number;
+ export var SIGSTOP: number;
+ export var SIGTSTP: number;
+ export var SIGTTIN: number;
+ export var SIGTTOU: number;
+ export var SIGURG: number;
+ export var SIGXCPU: number;
+ export var SIGXFSZ: number;
+ export var SIGVTALRM: number;
+ export var SIGPROF: number;
+ export var SIGIO: number;
+ export var SIGPOLL: number;
+ export var SIGPWR: number;
+ export var SIGSYS: number;
+ export var SIGUNUSED: number;
+ export var defaultCoreCipherList: string;
+ export var defaultCipherList: string;
+ export var ENGINE_METHOD_RSA: number;
+ export var ALPN_ENABLED: number;
+}
+
+declare module "process" {
+ export = process;
+}
+
+declare module "v8" {
+ interface HeapSpaceInfo {
+ space_name: string;
+ space_size: number;
+ space_used_size: number;
+ space_available_size: number;
+ physical_space_size: number;
+ }
+
+ // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */
+ type DoesZapCodeSpaceFlag = 0 | 1;
+
+ interface HeapInfo {
+ total_heap_size: number;
+ total_heap_size_executable: number;
+ total_physical_size: number;
+ total_available_size: number;
+ used_heap_size: number;
+ heap_size_limit: number;
+ malloced_memory: number;
+ peak_malloced_memory: number;
+ does_zap_garbage: DoesZapCodeSpaceFlag;
+ }
+
+ export function getHeapStatistics(): HeapInfo;
+ export function getHeapSpaceStatistics(): HeapSpaceInfo[];
+ export function setFlagsFromString(flags: string): void;
+}
+
+declare module "timers" {
+ export function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
+ export function clearTimeout(timeoutId: NodeJS.Timer): void;
+ export function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
+ export function clearInterval(intervalId: NodeJS.Timer): void;
+ export function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
+ export function clearImmediate(immediateId: any): void;
+}
+
+declare module "console" {
+ export = console;
+}
+
+/**
+ * _debugger module is not documented.
+ * Source code is at https://github.com/nodejs/node/blob/master/lib/_debugger.js
+ */
+declare module "_debugger" {
+ export interface Packet {
+ raw: string;
+ headers: string[];
+ body: Message;
+ }
+
+ export interface Message {
+ seq: number;
+ type: string;
+ }
+
+ export interface RequestInfo {
+ command: string;
+ arguments: any;
+ }
+
+ export interface Request extends Message, RequestInfo {
+ }
+
+ export interface Event extends Message {
+ event: string;
+ body?: any;
+ }
+
+ export interface Response extends Message {
+ request_seq: number;
+ success: boolean;
+ /** Contains error message if success === false. */
+ message?: string;
+ /** Contains message body if success === true. */
+ body?: any;
+ }
+
+ export interface BreakpointMessageBody {
+ type: string;
+ target: number;
+ line: number;
+ }
+
+ export class Protocol {
+ res: Packet;
+ state: string;
+ execute(data: string): void;
+ serialize(rq: Request): string;
+ onResponse: (pkt: Packet) => void;
+ }
+
+ export var NO_FRAME: number;
+ export var port: number;
+
+ export interface ScriptDesc {
+ name: string;
+ id: number;
+ isNative?: boolean;
+ handle?: number;
+ type: string;
+ lineOffset?: number;
+ columnOffset?: number;
+ lineCount?: number;
+ }
+
+ export interface Breakpoint {
+ id: number;
+ scriptId: number;
+ script: ScriptDesc;
+ line: number;
+ condition?: string;
+ scriptReq?: string;
+ }
+
+ export interface RequestHandler {
+ (err: boolean, body: Message, res: Packet): void;
+ request_seq?: number;
+ }
+
+ export interface ResponseBodyHandler {
+ (err: boolean, body?: any): void;
+ request_seq?: number;
+ }
+
+ export interface ExceptionInfo {
+ text: string;
+ }
+
+ export interface BreakResponse {
+ script?: ScriptDesc;
+ exception?: ExceptionInfo;
+ sourceLine: number;
+ sourceLineText: string;
+ sourceColumn: number;
+ }
+
+ export function SourceInfo(body: BreakResponse): string;
+
+ export interface ClientInstance extends NodeJS.EventEmitter {
+ protocol: Protocol;
+ scripts: ScriptDesc[];
+ handles: ScriptDesc[];
+ breakpoints: Breakpoint[];
+ currentSourceLine: number;
+ currentSourceColumn: number;
+ currentSourceLineText: string;
+ currentFrame: number;
+ currentScript: string;
+
+ connect(port: number, host: string): void;
+ req(req: any, cb: RequestHandler): void;
+ reqFrameEval(code: string, frame: number, cb: RequestHandler): void;
+ mirrorObject(obj: any, depth: number, cb: ResponseBodyHandler): void;
+ setBreakpoint(rq: BreakpointMessageBody, cb: RequestHandler): void;
+ clearBreakpoint(rq: Request, cb: RequestHandler): void;
+ listbreakpoints(cb: RequestHandler): void;
+ reqSource(from: number, to: number, cb: RequestHandler): void;
+ reqScripts(cb: any): void;
+ reqContinue(cb: RequestHandler): void;
+ }
+
+ export var Client: {
+ new(): ClientInstance
+ };
+}
+
+/**
+ * Async Hooks module: https://nodejs.org/api/async_hooks.html
+ */
+declare module "async_hooks" {
+ /**
+ * Returns the asyncId of the current execution context.
+ */
+ export function executionAsyncId(): number;
+ /// @deprecated - replaced by executionAsyncId()
+ export function currentId(): number;
+
+ /**
+ * Returns the ID of the resource responsible for calling the callback that is currently being executed.
+ */
+ export function triggerAsyncId(): number;
+ /// @deprecated - replaced by triggerAsyncId()
+ export function triggerId(): number;
+
+ export interface HookCallbacks {
+ /**
+ * Called when a class is constructed that has the possibility to emit an asynchronous event.
+ * @param asyncId a unique ID for the async resource
+ * @param type the type of the async resource
+ * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created
+ * @param resource reference to the resource representing the async operation, needs to be released during destroy
+ */
+ init?(asyncId: number, type: string, triggerAsyncId: number, resource: Object): void;
+
+ /**
+ * When an asynchronous operation is initiated or completes a callback is called to notify the user.
+ * The before callback is called just before said callback is executed.
+ * @param asyncId the unique identifier assigned to the resource about to execute the callback.
+ */
+ before?(asyncId: number): void;
+
+ /**
+ * Called immediately after the callback specified in before is completed.
+ * @param asyncId the unique identifier assigned to the resource which has executed the callback.
+ */
+ after?(asyncId: number): void;
+
+ /**
+ * Called after the resource corresponding to asyncId is destroyed
+ * @param asyncId a unique ID for the async resource
+ */
+ destroy?(asyncId: number): void;
+ }
+
+ export interface AsyncHook {
+ /**
+ * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
+ */
+ enable(): this;
+
+ /**
+ * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
+ */
+ disable(): this;
+ }
+
+ /**
+ * Registers functions to be called for different lifetime events of each async operation.
+ * @param options the callbacks to register
+ * @return an AsyncHooks instance used for disabling and enabling hooks
+ */
+ export function createHook(options: HookCallbacks): AsyncHook;
+}
diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json
index a26981b99..09fcb9c38 100644
--- a/node_modules/@types/node/package.json
+++ b/node_modules/@types/node/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/node",
- "version": "7.0.22",
+ "version": "8.0.20",
"description": "TypeScript definitions for Node.js",
"license": "MIT",
"contributors": [
@@ -15,6 +15,46 @@
{
"name": "Parambir Singh",
"url": "https://github.com/parambirs"
+ },
+ {
+ "name": "Roberto Desideri",
+ "url": "https://github.com/RobDesideri"
+ },
+ {
+ "name": "Christian Vaagland Tellnes",
+ "url": "https://github.com/tellnes"
+ },
+ {
+ "name": "Wilco Bakker",
+ "url": "https://github.com/WilcoBakker"
+ },
+ {
+ "name": "Nicolas Voigt",
+ "url": "https://github.com/octo-sniffle"
+ },
+ {
+ "name": "Chigozirim C.",
+ "url": "https://github.com/smac89"
+ },
+ {
+ "name": "Flarna",
+ "url": "https://github.com/Flarna"
+ },
+ {
+ "name": "Mariusz Wiktorczyk",
+ "url": "https://github.com/mwiktorczyk"
+ },
+ {
+ "name": "wwwy3y3",
+ "url": "https://github.com/wwwy3y3"
+ },
+ {
+ "name": "Daniel Imms",
+ "url": "https://github.com/Tyriar"
+ },
+ {
+ "name": "Deividas Bakanas",
+ "url": "https://github.com/DeividasBakanas"
}
],
"main": "",
@@ -25,6 +65,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
- "typesPublisherContentHash": "43ccd69e7dd03c051fa3159d760ea92c753547b0db35cd1b45a291f5fa67c492",
- "typeScriptVersion": "2.0"
+ "typesPublisherContentHash": "7fe73090c10b2c90f6acb01b83f3f55735b274b2fa9b95a0a2feade8f3cfc16b",
+ "typeScriptVersion": "2.2"
} \ No newline at end of file
diff --git a/node_modules/@types/react-dom/LICENSE b/node_modules/@types/react-dom/LICENSE
index 21071075c..4b1ad51b2 100644
--- a/node_modules/@types/react-dom/LICENSE
+++ b/node_modules/@types/react-dom/LICENSE
@@ -1,21 +1,21 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/react-dom/README.md b/node_modules/@types/react-dom/README.md
index 25281a394..27c51e66c 100644
--- a/node_modules/@types/react-dom/README.md
+++ b/node_modules/@types/react-dom/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for React (react-dom) (http://facebook.gi
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
Additional Details
- * Last updated: Tue, 18 Apr 2017 18:28:36 GMT
- * Dependencies: react
- * Global values: ReactDOM, ReactDOMServer
+ * Last updated: Thu, 03 Aug 2017 13:57:01 GMT
+ * Dependencies: react, stream, node
+ * Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer
# Credits
These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, MartynasZilinskas <https://github.com/MartynasZilinskas>.
diff --git a/node_modules/@types/react-dom/index.d.ts b/node_modules/@types/react-dom/index.d.ts
index 6adb9da76..fe1e3bb4b 100644
--- a/node_modules/@types/react-dom/index.d.ts
+++ b/node_modules/@types/react-dom/index.d.ts
@@ -1,67 +1,70 @@
-// Type definitions for React (react-dom) 15.5
-// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, MartynasZilinskas <https://github.com/MartynasZilinskas>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.1
-
-export as namespace ReactDOM;
-
-import {
- ReactInstance, Component, ComponentState,
- ReactElement, SFCElement, CElement,
- DOMAttributes, DOMElement
-} from 'react';
-
-export function findDOMNode<E extends Element>(instance: ReactInstance): E;
-export function findDOMNode(instance: ReactInstance): Element;
-
-export function render<P extends DOMAttributes<T>, T extends Element>(
- element: DOMElement<P, T>,
- container: Element | null,
- callback?: (element: T) => any
-): T;
-export function render<P>(
- element: SFCElement<P>,
- container: Element | null,
- callback?: () => any
-): void;
-export function render<P, T extends Component<P, ComponentState>>(
- element: CElement<P, T>,
- container: Element | null,
- callback?: (component: T) => any
-): T;
-export function render<P>(
- element: ReactElement<P>,
- container: Element | null,
- callback?: (component?: Component<P, ComponentState> | Element) => any
-): Component<P, ComponentState> | Element | void;
-export function render<P>(
- parentComponent: Component<any, any>,
- element: SFCElement<P>,
- container: Element,
- callback?: () => any
-): void;
-
-export function unmountComponentAtNode(container: Element): boolean;
-
-export const version: string;
-
-export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
-export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
-export function unstable_batchedUpdates(callback: () => any): void;
-
-export function unstable_renderSubtreeIntoContainer<P extends DOMAttributes<T>, T extends Element>(
- parentComponent: Component<any, any>,
- element: DOMElement<P, T>,
- container: Element,
- callback?: (element: T) => any): T;
-export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
- parentComponent: Component<any, any>,
- element: CElement<P, T>,
- container: Element,
- callback?: (component: T) => any): T;
-export function unstable_renderSubtreeIntoContainer<P>(
- parentComponent: Component<any, any>,
- element: ReactElement<P>,
- container: Element,
- callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
+// Type definitions for React (react-dom) 15.5
+// Project: http://facebook.github.io/react/
+// Definitions by: Asana <https://asana.com>
+// AssureSign <http://www.assuresign.com>
+// Microsoft <https://microsoft.com>
+// MartynasZilinskas <https://github.com/MartynasZilinskas>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.3
+
+export as namespace ReactDOM;
+
+import {
+ ReactInstance, Component, ComponentState,
+ ReactElement, SFCElement, CElement,
+ DOMAttributes, DOMElement
+} from 'react';
+
+export function findDOMNode<E extends Element>(instance: ReactInstance): E;
+export function findDOMNode(instance: ReactInstance): Element;
+
+export function render<P extends DOMAttributes<T>, T extends Element>(
+ element: DOMElement<P, T>,
+ container: Element | null,
+ callback?: (element: T) => any
+): T;
+export function render<P>(
+ element: SFCElement<P>,
+ container: Element | null,
+ callback?: () => any
+): void;
+export function render<P, T extends Component<P, ComponentState>>(
+ element: CElement<P, T>,
+ container: Element | null,
+ callback?: (component: T) => any
+): T;
+export function render<P>(
+ element: ReactElement<P>,
+ container: Element | null,
+ callback?: (component?: Component<P, ComponentState> | Element) => any
+): Component<P, ComponentState> | Element | void;
+export function render<P>(
+ parentComponent: Component<any>,
+ element: SFCElement<P>,
+ container: Element,
+ callback?: () => any
+): void;
+
+export function unmountComponentAtNode(container: Element): boolean;
+
+export const version: string;
+
+export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
+export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
+export function unstable_batchedUpdates(callback: () => any): void;
+
+export function unstable_renderSubtreeIntoContainer<P extends DOMAttributes<T>, T extends Element>(
+ parentComponent: Component<any>,
+ element: DOMElement<P, T>,
+ container: Element,
+ callback?: (element: T) => any): T;
+export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
+ parentComponent: Component<any>,
+ element: CElement<P, T>,
+ container: Element,
+ callback?: (component: T) => any): T;
+export function unstable_renderSubtreeIntoContainer<P>(
+ parentComponent: Component<any>,
+ element: ReactElement<P>,
+ container: Element,
+ callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
diff --git a/node_modules/@types/react-dom/node-stream/index.d.ts b/node_modules/@types/react-dom/node-stream/index.d.ts
new file mode 100644
index 000000000..d20644f44
--- /dev/null
+++ b/node_modules/@types/react-dom/node-stream/index.d.ts
@@ -0,0 +1,20 @@
+/// <reference types="node" />
+import { ReactElement } from 'react';
+import * as stream from 'stream';
+
+/**
+ * Render a ReactElement to its initial HTML. This should only be used on the
+ * server.
+ * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream
+ */
+export function renderToStream(element: ReactElement<any>): stream.Readable;
+
+/**
+ * Similar to renderToStream, except this doesn't create extra DOM attributes
+ * such as data-react-id that React uses internally.
+ * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream
+ */
+export function renderToStaticStream(element: ReactElement<any>): stream.Readable;
+export const version: string;
+
+export as namespace ReactDOMNodeStream;
diff --git a/node_modules/@types/react-dom/package.json b/node_modules/@types/react-dom/package.json
index 9aa6cc83d..f5bc341b6 100644
--- a/node_modules/@types/react-dom/package.json
+++ b/node_modules/@types/react-dom/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/react-dom",
- "version": "15.5.0",
+ "version": "15.5.2",
"description": "TypeScript definitions for React (react-dom)",
"license": "MIT",
"contributors": [
@@ -28,9 +28,10 @@
},
"scripts": {},
"dependencies": {
- "@types/react": "*"
+ "@types/react": "*",
+ "@types/node": "*"
},
"peerDependencies": {},
- "typesPublisherContentHash": "960702efe448701815f2c8563e30c357a80c23d541018709d74453db04adeb21",
- "typeScriptVersion": "2.1"
+ "typesPublisherContentHash": "544cee2acb06e6d496a3611b44d117f8d680c5bb543987ff0ee7b2db669a389d",
+ "typeScriptVersion": "2.3"
} \ No newline at end of file
diff --git a/node_modules/@types/react-dom/server/index.d.ts b/node_modules/@types/react-dom/server/index.d.ts
index 7d45ecbee..830c941ed 100644
--- a/node_modules/@types/react-dom/server/index.d.ts
+++ b/node_modules/@types/react-dom/server/index.d.ts
@@ -1,24 +1,24 @@
-import { ReactElement } from 'react';
-
-/**
- * Render a React element to its initial HTML. This should only be used on the server.
- * React will return an HTML string. You can use this method to generate HTML on the server
- * and send the markup down on the initial request for faster page loads and to allow search
- * engines to crawl your pages for SEO purposes.
- *
- * If you call `ReactDOM.render()` on a node that already has this server-rendered markup,
- * React will preserve it and only attach event handlers, allowing you
- * to have a very performant first-load experience.
- */
-export function renderToString(element: ReactElement<any>): string;
-
-/**
- * Similar to `renderToString`, except this doesn't create extra DOM attributes
- * such as `data-reactid`, that React uses internally. This is useful if you want
- * to use React as a simple static page generator, as stripping away the extra
- * attributes can save lots of bytes.
- */
-export function renderToStaticMarkup(element: ReactElement<any>): string;
-export const version: string;
-
-export as namespace ReactDOMServer;
+import { ReactElement } from 'react';
+
+/**
+ * Render a React element to its initial HTML. This should only be used on the server.
+ * React will return an HTML string. You can use this method to generate HTML on the server
+ * and send the markup down on the initial request for faster page loads and to allow search
+ * engines to crawl your pages for SEO purposes.
+ *
+ * If you call `ReactDOM.render()` on a node that already has this server-rendered markup,
+ * React will preserve it and only attach event handlers, allowing you
+ * to have a very performant first-load experience.
+ */
+export function renderToString(element: ReactElement<any>): string;
+
+/**
+ * Similar to `renderToString`, except this doesn't create extra DOM attributes
+ * such as `data-reactid`, that React uses internally. This is useful if you want
+ * to use React as a simple static page generator, as stripping away the extra
+ * attributes can save lots of bytes.
+ */
+export function renderToStaticMarkup(element: ReactElement<any>): string;
+export const version: string;
+
+export as namespace ReactDOMServer;
diff --git a/node_modules/@types/react-dom/test-utils/index.d.ts b/node_modules/@types/react-dom/test-utils/index.d.ts
index 3153b3dba..f7afde6c1 100644
--- a/node_modules/@types/react-dom/test-utils/index.d.ts
+++ b/node_modules/@types/react-dom/test-utils/index.d.ts
@@ -1,242 +1,242 @@
-import {
- AbstractView, Component, ComponentClass,
- ReactElement, ReactInstance, ClassType,
- DOMElement, SFCElement, CElement,
- ReactHTMLElement, DOMAttributes, SFC
-} from 'react';
-
-import * as ReactTestUtils from ".";
-
-export interface OptionalEventProperties {
- bubbles?: boolean;
- cancelable?: boolean;
- currentTarget?: EventTarget;
- defaultPrevented?: boolean;
- eventPhase?: number;
- isTrusted?: boolean;
- nativeEvent?: Event;
- preventDefault?(): void;
- stopPropagation?(): void;
- target?: EventTarget;
- timeStamp?: Date;
- type?: string;
-}
-
-export interface SyntheticEventData extends OptionalEventProperties {
- altKey?: boolean;
- button?: number;
- buttons?: number;
- clientX?: number;
- clientY?: number;
- changedTouches?: TouchList;
- charCode?: boolean;
- clipboardData?: DataTransfer;
- ctrlKey?: boolean;
- deltaMode?: number;
- deltaX?: number;
- deltaY?: number;
- deltaZ?: number;
- detail?: number;
- getModifierState?(key: string): boolean;
- key?: string;
- keyCode?: number;
- locale?: string;
- location?: number;
- metaKey?: boolean;
- pageX?: number;
- pageY?: number;
- relatedTarget?: EventTarget;
- repeat?: boolean;
- screenX?: number;
- screenY?: number;
- shiftKey?: boolean;
- targetTouches?: TouchList;
- touches?: TouchList;
- view?: AbstractView;
- which?: number;
-}
-
-export type EventSimulator = (element: Element | Component<any, any>, eventData?: SyntheticEventData) => void;
-
-export interface MockedComponentClass {
- new (): any;
-}
-
-export interface ShallowRenderer {
- /**
- * After `shallowRenderer.render()` has been called, returns shallowly rendered output.
- */
- getRenderOutput<E extends ReactElement<any>>(): E;
- /**
- * After `shallowRenderer.render()` has been called, returns shallowly rendered output.
- */
- getRenderOutput(): ReactElement<any>;
- /**
- * Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep.
- */
- render(element: ReactElement<any>, context?: any): void;
- unmount(): void;
-}
-
-/**
- * Simulate an event dispatch on a DOM node with optional `eventData` event data.
- * `Simulate` has a method for every event that React understands.
- */
-export namespace Simulate {
- const blur: EventSimulator;
- const change: EventSimulator;
- const click: EventSimulator;
- const copy: EventSimulator;
- const cut: EventSimulator;
- const doubleClick: EventSimulator;
- const drag: EventSimulator;
- const dragEnd: EventSimulator;
- const dragEnter: EventSimulator;
- const dragExit: EventSimulator;
- const dragLeave: EventSimulator;
- const dragOver: EventSimulator;
- const dragStart: EventSimulator;
- const drop: EventSimulator;
- const focus: EventSimulator;
- const input: EventSimulator;
- const keyDown: EventSimulator;
- const keyPress: EventSimulator;
- const keyUp: EventSimulator;
- const mouseDown: EventSimulator;
- const mouseEnter: EventSimulator;
- const mouseLeave: EventSimulator;
- const mouseMove: EventSimulator;
- const mouseOut: EventSimulator;
- const mouseOver: EventSimulator;
- const mouseUp: EventSimulator;
- const paste: EventSimulator;
- const scroll: EventSimulator;
- const submit: EventSimulator;
- const touchCancel: EventSimulator;
- const touchEnd: EventSimulator;
- const touchMove: EventSimulator;
- const touchStart: EventSimulator;
- const wheel: EventSimulator;
-}
-
-/**
- * Render a React element into a detached DOM node in the document. __This function requires a DOM__.
- */
-export function renderIntoDocument<T extends Element>(
- element: DOMElement<any, T>): T;
-export function renderIntoDocument(
- element: SFCElement<any>): void;
-export function renderIntoDocument<T extends Component<any, any>>(
- element: CElement<any, T>): T;
-export function renderIntoDocument<P>(
- element: ReactElement<P>): Component<P, {}> | Element | void;
-
-/**
- * Pass a mocked component module to this method to augment it with useful methods that allow it to
- * be used as a dummy React component. Instead of rendering as usual, the component will become
- * a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.
- */
-export function mockComponent(
- mocked: MockedComponentClass, mockTagName?: string): typeof ReactTestUtils;
-
-/**
- * Returns `true` if `element` is any React element.
- */
-export function isElement(element: any): boolean;
-
-/**
- * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
- */
-export function isElementOfType<T extends HTMLElement>(
- element: ReactElement<any>, type: string): element is ReactHTMLElement<T>;
-/**
- * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
- */
-export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>(
- element: ReactElement<any>, type: string): element is DOMElement<P, T>;
-/**
- * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
- */
-export function isElementOfType<P>(
- element: ReactElement<any>, type: SFC<P>): element is SFCElement<P>;
-/**
- * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
- */
-export function isElementOfType<P, T extends Component<P, {}>, C extends ComponentClass<P>>(
- element: ReactElement<any>, type: ClassType<P, T, C>): element is CElement<P, T>;
-
-/**
- * Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
- */
-export function isDOMComponent(instance: ReactInstance): instance is Element;
-/**
- * Returns `true` if `instance` is a user-defined component, such as a class or a function.
- */
-export function isCompositeComponent(instance: ReactInstance): instance is Component<any, any>;
-/**
- * Returns `true` if `instance` is a component whose type is of a React `componentClass`.
- */
-export function isCompositeComponentWithType<T extends Component<any, any>, C extends ComponentClass<any>>(
- instance: ReactInstance, type: ClassType<any, T, C>): boolean;
-
-/**
- * Traverse all components in `tree` and accumulate all components where
- * `test(component)` is `true`. This is not that useful on its own, but it's used
- * as a primitive for other test utils.
- */
-export function findAllInRenderedTree(
- root: Component<any, any>,
- fn: (i: ReactInstance) => boolean): ReactInstance[];
-
-/**
- * Finds all DOM elements of components in the rendered tree that are
- * DOM components with the class name matching `className`.
- */
-export function scryRenderedDOMComponentsWithClass(
- root: Component<any, any>,
- className: string): Element[];
-/**
- * Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result,
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- */
-export function findRenderedDOMComponentWithClass(
- root: Component<any, any>,
- className: string): Element;
-
-/**
- * Finds all DOM elements of components in the rendered tree that are
- * DOM components with the tag name matching `tagName`.
- */
-export function scryRenderedDOMComponentsWithTag(
- root: Component<any, any>,
- tagName: string): Element[];
-/**
- * Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result,
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- */
-export function findRenderedDOMComponentWithTag(
- root: Component<any, any>,
- tagName: string): Element;
-
-/**
- * Finds all instances of components with type equal to `componentClass`.
- */
-export function scryRenderedComponentsWithType<T extends Component<{}, {}>, C extends ComponentClass<{}>>(
- root: Component<any, any>,
- type: ClassType<any, T, C>): T[];
-
-/**
- * Same as `scryRenderedComponentsWithType()` but expects there to be one result
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- */
-export function findRenderedComponentWithType<T extends Component<{}, {}>, C extends ComponentClass<{}>>(
- root: Component<any, any>,
- type: ClassType<any, T, C>): T;
-
-/**
- * Call this in your tests to create a shallow renderer.
- */
-export function createRenderer(): ShallowRenderer;
+import {
+ AbstractView, Component, ComponentClass,
+ ReactElement, ReactInstance, ClassType,
+ DOMElement, SFCElement, CElement,
+ ReactHTMLElement, DOMAttributes, SFC
+} from 'react';
+
+import * as ReactTestUtils from ".";
+
+export interface OptionalEventProperties {
+ bubbles?: boolean;
+ cancelable?: boolean;
+ currentTarget?: EventTarget;
+ defaultPrevented?: boolean;
+ eventPhase?: number;
+ isTrusted?: boolean;
+ nativeEvent?: Event;
+ preventDefault?(): void;
+ stopPropagation?(): void;
+ target?: EventTarget;
+ timeStamp?: Date;
+ type?: string;
+}
+
+export interface SyntheticEventData extends OptionalEventProperties {
+ altKey?: boolean;
+ button?: number;
+ buttons?: number;
+ clientX?: number;
+ clientY?: number;
+ changedTouches?: TouchList;
+ charCode?: boolean;
+ clipboardData?: DataTransfer;
+ ctrlKey?: boolean;
+ deltaMode?: number;
+ deltaX?: number;
+ deltaY?: number;
+ deltaZ?: number;
+ detail?: number;
+ getModifierState?(key: string): boolean;
+ key?: string;
+ keyCode?: number;
+ locale?: string;
+ location?: number;
+ metaKey?: boolean;
+ pageX?: number;
+ pageY?: number;
+ relatedTarget?: EventTarget;
+ repeat?: boolean;
+ screenX?: number;
+ screenY?: number;
+ shiftKey?: boolean;
+ targetTouches?: TouchList;
+ touches?: TouchList;
+ view?: AbstractView;
+ which?: number;
+}
+
+export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
+
+export interface MockedComponentClass {
+ new (): any;
+}
+
+export interface ShallowRenderer {
+ /**
+ * After `shallowRenderer.render()` has been called, returns shallowly rendered output.
+ */
+ getRenderOutput<E extends ReactElement<any>>(): E;
+ /**
+ * After `shallowRenderer.render()` has been called, returns shallowly rendered output.
+ */
+ getRenderOutput(): ReactElement<any>;
+ /**
+ * Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep.
+ */
+ render(element: ReactElement<any>, context?: any): void;
+ unmount(): void;
+}
+
+/**
+ * Simulate an event dispatch on a DOM node with optional `eventData` event data.
+ * `Simulate` has a method for every event that React understands.
+ */
+export namespace Simulate {
+ const blur: EventSimulator;
+ const change: EventSimulator;
+ const click: EventSimulator;
+ const copy: EventSimulator;
+ const cut: EventSimulator;
+ const doubleClick: EventSimulator;
+ const drag: EventSimulator;
+ const dragEnd: EventSimulator;
+ const dragEnter: EventSimulator;
+ const dragExit: EventSimulator;
+ const dragLeave: EventSimulator;
+ const dragOver: EventSimulator;
+ const dragStart: EventSimulator;
+ const drop: EventSimulator;
+ const focus: EventSimulator;
+ const input: EventSimulator;
+ const keyDown: EventSimulator;
+ const keyPress: EventSimulator;
+ const keyUp: EventSimulator;
+ const mouseDown: EventSimulator;
+ const mouseEnter: EventSimulator;
+ const mouseLeave: EventSimulator;
+ const mouseMove: EventSimulator;
+ const mouseOut: EventSimulator;
+ const mouseOver: EventSimulator;
+ const mouseUp: EventSimulator;
+ const paste: EventSimulator;
+ const scroll: EventSimulator;
+ const submit: EventSimulator;
+ const touchCancel: EventSimulator;
+ const touchEnd: EventSimulator;
+ const touchMove: EventSimulator;
+ const touchStart: EventSimulator;
+ const wheel: EventSimulator;
+}
+
+/**
+ * Render a React element into a detached DOM node in the document. __This function requires a DOM__.
+ */
+export function renderIntoDocument<T extends Element>(
+ element: DOMElement<any, T>): T;
+export function renderIntoDocument(
+ element: SFCElement<any>): void;
+export function renderIntoDocument<T extends Component<any>>(
+ element: CElement<any, T>): T;
+export function renderIntoDocument<P>(
+ element: ReactElement<P>): Component<P> | Element | void;
+
+/**
+ * Pass a mocked component module to this method to augment it with useful methods that allow it to
+ * be used as a dummy React component. Instead of rendering as usual, the component will become
+ * a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.
+ */
+export function mockComponent(
+ mocked: MockedComponentClass, mockTagName?: string): typeof ReactTestUtils;
+
+/**
+ * Returns `true` if `element` is any React element.
+ */
+export function isElement(element: any): boolean;
+
+/**
+ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
+ */
+export function isElementOfType<T extends HTMLElement>(
+ element: ReactElement<any>, type: string): element is ReactHTMLElement<T>;
+/**
+ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
+ */
+export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>(
+ element: ReactElement<any>, type: string): element is DOMElement<P, T>;
+/**
+ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
+ */
+export function isElementOfType<P>(
+ element: ReactElement<any>, type: SFC<P>): element is SFCElement<P>;
+/**
+ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
+ */
+export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>(
+ element: ReactElement<any>, type: ClassType<P, T, C>): element is CElement<P, T>;
+
+/**
+ * Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
+ */
+export function isDOMComponent(instance: ReactInstance): instance is Element;
+/**
+ * Returns `true` if `instance` is a user-defined component, such as a class or a function.
+ */
+export function isCompositeComponent(instance: ReactInstance): instance is Component<any>;
+/**
+ * Returns `true` if `instance` is a component whose type is of a React `componentClass`.
+ */
+export function isCompositeComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
+ instance: ReactInstance, type: ClassType<any, T, C>): boolean;
+
+/**
+ * Traverse all components in `tree` and accumulate all components where
+ * `test(component)` is `true`. This is not that useful on its own, but it's used
+ * as a primitive for other test utils.
+ */
+export function findAllInRenderedTree(
+ root: Component<any>,
+ fn: (i: ReactInstance) => boolean): ReactInstance[];
+
+/**
+ * Finds all DOM elements of components in the rendered tree that are
+ * DOM components with the class name matching `className`.
+ */
+export function scryRenderedDOMComponentsWithClass(
+ root: Component<any>,
+ className: string): Element[];
+/**
+ * Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result,
+ * and returns that one result, or throws exception if there is any other
+ * number of matches besides one.
+ */
+export function findRenderedDOMComponentWithClass(
+ root: Component<any>,
+ className: string): Element;
+
+/**
+ * Finds all DOM elements of components in the rendered tree that are
+ * DOM components with the tag name matching `tagName`.
+ */
+export function scryRenderedDOMComponentsWithTag(
+ root: Component<any>,
+ tagName: string): Element[];
+/**
+ * Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result,
+ * and returns that one result, or throws exception if there is any other
+ * number of matches besides one.
+ */
+export function findRenderedDOMComponentWithTag(
+ root: Component<any>,
+ tagName: string): Element;
+
+/**
+ * Finds all instances of components with type equal to `componentClass`.
+ */
+export function scryRenderedComponentsWithType<T extends Component<{}>, C extends ComponentClass<{}>>(
+ root: Component<any>,
+ type: ClassType<any, T, C>): T[];
+
+/**
+ * Same as `scryRenderedComponentsWithType()` but expects there to be one result
+ * and returns that one result, or throws exception if there is any other
+ * number of matches besides one.
+ */
+export function findRenderedComponentWithType<T extends Component<{}>, C extends ComponentClass<{}>>(
+ root: Component<any>,
+ type: ClassType<any, T, C>): T;
+
+/**
+ * Call this in your tests to create a shallow renderer.
+ */
+export function createRenderer(): ShallowRenderer;
diff --git a/node_modules/@types/react/README.md b/node_modules/@types/react/README.md
index f948eea35..3d15f7d05 100644
--- a/node_modules/@types/react/README.md
+++ b/node_modules/@types/react/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for React (http://facebook.github.io/reac
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
Additional Details
- * Last updated: Thu, 04 May 2017 23:19:18 GMT
+ * Last updated: Wed, 09 Aug 2017 14:12:23 GMT
* Dependencies: none
* Global values: React
# Credits
-These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>.
+These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Albert Kurniawan <https://github.com/morcerf>, Tanguy Krotoff <https://github.com/tkrotoff>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Rich Seviora <https://github.com/richseviora>.
diff --git a/node_modules/@types/react/index.d.ts b/node_modules/@types/react/index.d.ts
index 7880df543..c7f66eabb 100644
--- a/node_modules/@types/react/index.d.ts
+++ b/node_modules/@types/react/index.d.ts
@@ -1,8 +1,51 @@
-// Type definitions for React v15.0
+// Type definitions for React 16.0
// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>
+// Definitions by: Asana <https://asana.com>
+// AssureSign <http://www.assuresign.com>
+// Microsoft <https://microsoft.com>
+// John Reilly <https://github.com/johnnyreilly/>
+// Benoit Benezech <https://github.com/bbenezech>
+// Patricio Zavolinsky <https://github.com/pzavolinsky>
+// Digiguru <https://github.com/digiguru>
+// Eric Anderson <https://github.com/ericanderson>
+// Albert Kurniawan <https://github.com/morcerf>
+// Tanguy Krotoff <https://github.com/tkrotoff>
+// Dovydas Navickas <https://github.com/DovydasNavickas>
+// Stéphane Goetz <https://github.com/onigoetz>
+// Rich Seviora <https://github.com/richseviora>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.2
+// TypeScript Version: 2.3
+
+/*
+Known Problems & Workarounds
+1. The type of cloneElement is incorrect.
+cloneElement(element, props) should accept props object with a subset of properties on element.props.
+React attributes, such as key and ref, should also be accepted in props, but should not exist on element.props.
+The "correct" way to model this, then, is with:
+declare function cloneElement<P extends Q, Q>(
+ element: ReactElement<P>,
+ props?: Q & Attributes,
+ ...children: ReactNode[]): ReactElement<P>;
+However, type inference for Q defaults to {} when intersected with another type.
+(https://github.com/Microsoft/TypeScript/pull/5738#issuecomment-181904905)
+And since any object is assignable to {}, we would lose the type safety of the P extends Q constraint.
+Therefore, the type of props is left as Q, which should work for most cases.
+If you need to call cloneElement with key or ref, you'll need a type cast:
+interface ButtonProps {
+ label: string,
+ isDisabled?: boolean;
+}
+var element: React.CElement<ButtonProps, Button>;
+React.cloneElement(element, { label: "label" });
+// cloning with optional props requires a cast
+React.cloneElement(element, <{ isDisabled?: boolean }>{ isDisabled: true });
+// cloning with key or ref requires a cast
+React.cloneElement(element, <React.ClassAttributes<Button>>{ ref: button => button.reset() });
+React.cloneElement(element, <{ isDisabled?: boolean } & React.Attributes>{
+ key: "disabledButton",
+ isDisabled: true
+});
+*/
type NativeAnimationEvent = AnimationEvent;
type NativeClipboardEvent = ClipboardEvent;
@@ -16,20 +59,23 @@ type NativeTransitionEvent = TransitionEvent;
type NativeUIEvent = UIEvent;
type NativeWheelEvent = WheelEvent;
+// tslint:disable-next-line:export-just-namespace
export = React;
export as namespace React;
declare namespace React {
-
//
// React Elements
// ----------------------------------------------------------------------
- type ReactType = string | ComponentClass<any> | StatelessComponent<any>;
+ type ReactType = string | ComponentType<any>;
+ type ComponentType<P = {}> = ComponentClass<P> | StatelessComponent<P>;
type Key = string | number;
- type Ref<T> = string | ((instance: T) => any);
- type ComponentState = {} | void;
+ type Ref<T> = string | ((instance: T | null) => any);
+
+ // tslint:disable-next-line:interface-over-type-literal
+ type ComponentState = {};
interface Attributes {
key?: Key;
@@ -56,47 +102,51 @@ declare namespace React {
type ClassicElement<P> = CElement<P, ClassicComponent<P, ComponentState>>;
- interface DOMElement<P extends DOMAttributes<T>, T extends Element> extends ReactElement<P> {
+ // string fallback for custom web-components
+ interface DOMElement<P extends HTMLAttributes<T> | SVGAttributes<T>, T extends Element> extends ReactElement<P> {
type: string;
ref: Ref<T>;
}
- interface ReactHTMLElement<T extends HTMLElement> extends DOMElement<HTMLAttributes<T>, T> {
+ // ReactHTML for ReactHTMLElement
+ // tslint:disable-next-line:no-empty-interface
+ interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> { }
+
+ interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
+ type: keyof ReactHTML;
}
+ // ReactSVG for ReactSVGElement
interface ReactSVGElement extends DOMElement<SVGAttributes<SVGElement>, SVGElement> {
+ type: keyof ReactSVG;
}
//
// Factories
// ----------------------------------------------------------------------
- interface Factory<P> {
- (props?: Attributes & P, ...children: ReactNode[]): ReactElement<P>;
- }
+ type Factory<P> = (props?: Attributes & P, ...children: ReactNode[]) => ReactElement<P>;
- interface SFCFactory<P> {
- (props?: Attributes & P, ...children: ReactNode[]): SFCElement<P>;
- }
+ type SFCFactory<P> = (props?: Attributes & P, ...children: ReactNode[]) => SFCElement<P>;
- interface ComponentFactory<P, T extends Component<P, ComponentState>> {
- (props?: ClassAttributes<T> & P, ...children: ReactNode[]): CElement<P, T>;
- }
+ type ComponentFactory<P, T extends Component<P, ComponentState>> =
+ (props?: ClassAttributes<T> & P, ...children: ReactNode[]) => CElement<P, T>;
type CFactory<P, T extends Component<P, ComponentState>> = ComponentFactory<P, T>;
type ClassicFactory<P> = CFactory<P, ClassicComponent<P, ComponentState>>;
- interface DOMFactory<P extends DOMAttributes<T>, T extends Element> {
- (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]): DOMElement<P, T>;
- }
+ type DOMFactory<P extends DOMAttributes<T>, T extends Element> =
+ (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]) => DOMElement<P, T>;
- interface HTMLFactory<T extends HTMLElement> extends DOMFactory<HTMLAttributes<T>, T> {
- }
+ // tslint:disable-next-line:no-empty-interface
+ interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> {}
- interface ChangeTargetHTMLFactory<T extends HTMLElement> extends DOMFactory<ChangeTargetHTMLAttributes<T>, T> {
+ interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
+ (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
}
interface SVGFactory extends DOMFactory<SVGAttributes<SVGElement>, SVGElement> {
+ (props?: ClassAttributes<SVGElement> & SVGAttributes<SVGElement> | null, ...children: ReactNode[]): ReactSVGElement;
}
//
@@ -117,8 +167,15 @@ declare namespace React {
function createClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
+ // DOM Elements
+ function createFactory<T extends HTMLElement>(
+ type: keyof ReactHTML): HTMLFactory<T>;
+ function createFactory(
+ type: keyof ReactSVG): SVGFactory;
function createFactory<P extends DOMAttributes<T>, T extends Element>(
type: string): DOMFactory<P, T>;
+
+ // Custom components
function createFactory<P>(type: SFC<P>): SFCFactory<P>;
function createFactory<P>(
type: ClassType<P, ClassicComponent<P, ComponentState>, ClassicComponentClass<P>>): CFactory<P, ClassicComponent<P, ComponentState>>;
@@ -126,10 +183,21 @@ declare namespace React {
type: ClassType<P, T, C>): CFactory<P, T>;
function createFactory<P>(type: ComponentClass<P>): Factory<P>;
+ // DOM Elements
+ function createElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ type: keyof ReactHTML,
+ props?: ClassAttributes<T> & P,
+ ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
+ function createElement<P extends SVGAttributes<T>, T extends SVGElement>(
+ type: keyof ReactSVG,
+ props?: ClassAttributes<T> & P,
+ ...children: ReactNode[]): ReactSVGElement;
function createElement<P extends DOMAttributes<T>, T extends Element>(
type: string,
props?: ClassAttributes<T> & P,
...children: ReactNode[]): DOMElement<P, T>;
+
+ // Custom components
function createElement<P>(
type: SFC<P>,
props?: Attributes & P,
@@ -147,10 +215,29 @@ declare namespace React {
props?: Attributes & P,
...children: ReactNode[]): ReactElement<P>;
+ // DOM Elements
+ // ReactHTMLElement
+ function cloneElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ element: DetailedReactHTMLElement<P, T>,
+ props?: P,
+ ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
+ // ReactHTMLElement, less specific
+ function cloneElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ element: ReactHTMLElement<T>,
+ props?: P,
+ ...children: ReactNode[]): ReactHTMLElement<T>;
+ // SVGElement
+ function cloneElement<P extends SVGAttributes<T>, T extends SVGElement>(
+ element: ReactSVGElement,
+ props?: P,
+ ...children: ReactNode[]): ReactSVGElement;
+ // DOM Element (has to be the last, because type checking stops at first overload that fits)
function cloneElement<P extends DOMAttributes<T>, T extends Element>(
element: DOMElement<P, T>,
- props?: ClassAttributes<T> & P,
+ props?: DOMAttributes<T> & P,
...children: ReactNode[]): DOMElement<P, T>;
+
+ // Custom components
function cloneElement<P extends Q, Q>(
element: SFCElement<P>,
props?: Q, // should be Q & Attributes, but then Q is inferred as {}
@@ -166,24 +253,31 @@ declare namespace React {
function isValidElement<P>(object: {}): object is ReactElement<P>;
- var DOM: ReactDOM;
- var PropTypes: ReactPropTypes;
- var Children: ReactChildren;
- var version: string;
+ const DOM: ReactDOM;
+ const PropTypes: ReactPropTypes;
+ const Children: ReactChildren;
+ const version: string;
//
// Component API
// ----------------------------------------------------------------------
- type ReactInstance = Component<any, any> | Element;
+ type ReactInstance = Component<any> | Element;
// Base component for plain JS classes
- class Component<P, S> implements ComponentLifecycle<P, S> {
+ // tslint:disable-next-line:no-empty-interface
+ interface Component<P = {}, S = {}> extends ComponentLifecycle<P, S> { }
+ class Component<P, S> {
constructor(props?: P, context?: any);
+
+ // Disabling unified-signatures to have separate overloads. It's easier to understand this way.
+ // tslint:disable:unified-signatures
setState<K extends keyof S>(f: (prevState: S, props: P) => Pick<S, K>, callback?: () => any): void;
setState<K extends keyof S>(state: Pick<S, K>, callback?: () => any): void;
+ // tslint:enable:unified-signatures
+
forceUpdate(callBack?: () => any): void;
- render(): JSX.Element | null;
+ render(): JSX.Element | null | false;
// React.Props<T> is now deprecated, which means that the `children`
// property is not available on `P` by default, even though you can
@@ -198,9 +292,9 @@ declare namespace React {
};
}
- class PureComponent<P, S> extends Component<P, S> { }
+ class PureComponent<P = {}, S = {}> extends Component<P, S> { }
- interface ClassicComponent<P, S> extends Component<P, S> {
+ interface ClassicComponent<P = {}, S = {}> extends Component<P, S> {
replaceState(nextState: S, callback?: () => any): void;
isMounted(): boolean;
getInitialState?(): S;
@@ -214,16 +308,16 @@ declare namespace React {
// Class Interfaces
// ----------------------------------------------------------------------
- type SFC<P> = StatelessComponent<P>;
- interface StatelessComponent<P> {
- (props: P & { children?: ReactNode }, context?: any): ReactElement<any>;
+ type SFC<P = {}> = StatelessComponent<P>;
+ interface StatelessComponent<P = {}> {
+ (props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}
- interface ComponentClass<P> {
+ interface ComponentClass<P = {}> {
new (props?: P, context?: any): Component<P, ComponentState>;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
@@ -232,7 +326,7 @@ declare namespace React {
displayName?: string;
}
- interface ClassicComponentClass<P> extends ComponentClass<P> {
+ interface ClassicComponentClass<P = {}> extends ComponentClass<P> {
new (props?: P, context?: any): ClassicComponent<P, ComponentState>;
getDefaultProps?(): P;
}
@@ -252,17 +346,58 @@ declare namespace React {
// ----------------------------------------------------------------------
interface ComponentLifecycle<P, S> {
+ /**
+ * Called immediately before mounting occurs, and before `Component#render`.
+ * Avoid introducing any side-effects or subscriptions in this method.
+ */
componentWillMount?(): void;
+ /**
+ * Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
+ */
componentDidMount?(): void;
+ /**
+ * Called when the component may be receiving new props.
+ * React may call this even if props have not changed, so be sure to compare new and existing
+ * props if you only want to handle changes.
+ *
+ * Calling `Component#setState` generally does not trigger this method.
+ */
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
+ /**
+ * Called to determine whether the change in props and state should trigger a re-render.
+ *
+ * `Component` always returns true.
+ * `PureComponent` implements a shallow comparison on props and state and returns true if any
+ * props or states have changed.
+ *
+ * If false is returned, `Component#render`, `componentWillUpdate`
+ * and `componentDidUpdate` will not be called.
+ */
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean;
+ /**
+ * Called immediately before rendering when new props or state is received. Not called for the initial render.
+ *
+ * Note: You cannot call `Component#setState` here.
+ */
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
+ /**
+ * Called immediately after updating occurs. Not called for the initial render.
+ */
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<S>, prevContext: any): void;
+ /**
+ * Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
+ * cancelled network requests, or cleaning up any DOM elements created in `componentDidMount`.
+ */
componentWillUnmount?(): void;
+ /**
+ * Catches exceptions generated in descendant components. Unhandled exceptions will cause
+ * the entire component tree to unmount.
+ */
+ componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
}
interface Mixin<P, S> extends ComponentLifecycle<P, S> {
- mixins?: Mixin<P, S>;
+ mixins?: Array<Mixin<P, S>>;
statics?: {
[key: string]: any;
};
@@ -325,9 +460,14 @@ declare namespace React {
relatedTarget: EventTarget;
}
+ // tslint:disable-next-line:no-empty-interface
interface FormEvent<T> extends SyntheticEvent<T> {
}
+ interface InvalidEvent<T> extends SyntheticEvent<T> {
+ target: EventTarget & T;
+ }
+
interface ChangeEvent<T> extends SyntheticEvent<T> {
target: EventTarget & T;
}
@@ -410,9 +550,7 @@ declare namespace React {
// Event Handler Types
// ----------------------------------------------------------------------
- interface EventHandler<E extends SyntheticEvent<any>> {
- (event: E): void;
- }
+ type EventHandler<E extends SyntheticEvent<any>> = (event: E) => void;
type ReactEventHandler<T> = EventHandler<SyntheticEvent<T>>;
@@ -441,7 +579,7 @@ declare namespace React {
* `createElement` or a factory, use `ClassAttributes<T>`:
*
* ```ts
- * var b: Button;
+ * var b: Button | null;
* var props: ButtonProps & ClassAttributes<Button> = {
* ref: b => button = b, // ok!
* label: "I'm a Button"
@@ -454,11 +592,10 @@ declare namespace React {
ref?: Ref<T>;
}
- interface HTMLProps<T> extends HTMLAttributes<T>, ClassAttributes<T> {
+ interface HTMLProps<T> extends AllHTMLAttributes<T>, ClassAttributes<T> {
}
- interface ChangeTargetHTMLProps<T extends HTMLElement> extends ChangeTargetHTMLAttributes<T>, ClassAttributes<T> {
- }
+ type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = ClassAttributes<T> & E;
interface SVGProps<T> extends SVGAttributes<T>, ClassAttributes<T> {
}
@@ -500,6 +637,8 @@ declare namespace React {
onResetCapture?: FormEventHandler<T>;
onSubmit?: FormEventHandler<T>;
onSubmitCapture?: FormEventHandler<T>;
+ onInvalid?: FormEventHandler<T>;
+ onInvalidCapture?: FormEventHandler<T>;
// Image Events
onLoad?: ReactEventHandler<T>;
@@ -646,7 +785,6 @@ declare namespace React {
// This interface is not complete. Only properties accepting
// unitless numbers are listed here (see CSSProperty.js in React)
interface CSSProperties {
-
/**
* Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
*/
@@ -663,7 +801,10 @@ declare namespace React {
alignSelf?: CSSWideKeyword | "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
/**
- * This property allows precise alignment of elements, such as graphics, that do not have a baseline-table or lack the desired baseline in their baseline-table. With the alignment-adjust property, the position of the baseline identified by the alignment-baseline can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
+ * This property allows precise alignment of elements, such as graphics,
+ * that do not have a baseline-table or lack the desired baseline in their baseline-table.
+ * With the alignment-adjust property, the position of the baseline identified by the alignment-baseline
+ * can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
*/
alignmentAdjust?: CSSWideKeyword | any;
@@ -722,7 +863,9 @@ declare namespace React {
/**
* This property describes how the element's background images should blend with each other and the element's background color.
- * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers, the UA must calculate its used value by repeating the list of values until there are enough.
+ * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the
+ * corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers,
+ * the UA must calculate its used value by repeating the list of values until there are enough.
*/
backgroundBlendMode?: CSSWideKeyword | any;
@@ -764,7 +907,8 @@ declare namespace React {
behavior?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration. It can be used to set border-width, border-style and border-color, or a subset of these.
+ * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration.
+ * It can be used to set border-width, border-style and border-color, or a subset of these.
*/
border?: CSSWideKeyword | any;
@@ -795,7 +939,9 @@ declare namespace React {
borderBottomStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's bottom border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's bottom border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderBottomWidth?: CSSWideKeyword | any;
@@ -805,69 +951,90 @@ declare namespace React {
borderCollapse?: CSSWideKeyword | any;
/**
- * The CSS border-color property sets the color of an element's four borders. This property can have from one to four values, made up of the elementary properties:
+ * The CSS border-color property sets the color of an element's four borders.
+ * This property can have from one to four values, made up of the elementary properties:
* • border-top-color
* • border-right-color
* • border-bottom-color
* • border-left-color The default color is the currentColor of each of these values.
- * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values, respectively. Providing three values sets the top, vertical, and bottom values, in that order. Four values set all for sides: top, right, bottom, and left, in that order.
+ * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values,
+ * respectively. Providing three values sets the top, vertical, and bottom values, in that order.
+ * Four values set all for sides: top, right, bottom, and left, in that order.
*/
borderColor?: CSSWideKeyword | any;
/**
- * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles). Works along with border-radius to specify the size of each corner effect.
+ * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles).
+ * Works along with border-radius to specify the size of each corner effect.
*/
borderCornerShape?: CSSWideKeyword | any;
/**
- * The property border-image-source is used to set the image to be used instead of the border style. If this is set to none the border-style is used instead.
+ * The property border-image-source is used to set the image to be used instead of the border style.
+ * If this is set to none the border-style is used instead.
*/
borderImageSource?: CSSWideKeyword | any;
/**
- * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
+ * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts,
+ * the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge,
+ * bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
*/
borderImageWidth?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width, border-left-style and border-left-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration.
+ * Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width,
+ * border-left-style and border-left-color.
*/
borderLeft?: CSSWideKeyword | any;
/**
- * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value, but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
+ * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value,
+ * but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderLeftColor?: CSSWideKeyword | any;
/**
- * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style.
+ * Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
*/
borderLeftStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's left border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's left border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderLeftWidth?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's right border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the right border — border-right-width, border-right-style and border-right-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's right border
+ * in a single declaration. Note that you can use the corresponding longhand properties to set specific
+ * individual properties of the right border — border-right-width, border-right-style and border-right-color.
*/
borderRight?: CSSWideKeyword | any;
/**
- * Sets the color of an element's right border. This page explains the border-right-color value, but often you will find it more convenient to fix the border's right color as part of a shorthand set, either border-right or border-color.
+ * Sets the color of an element's right border. This page explains the border-right-color value,
+ * but often you will find it more convenient to fix the border's right color as part of a shorthand set,
+ * either border-right or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderRightColor?: CSSWideKeyword | any;
/**
- * Sets the style of an element's right border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's right border. To set all four borders, use the shorthand property,
+ * border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style,
+ * border-bottom-style, border-left-style.
*/
borderRightStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's right border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's right border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderRightWidth?: CSSWideKeyword | any;
@@ -877,17 +1044,24 @@ declare namespace React {
borderSpacing?: CSSWideKeyword | any;
/**
- * Sets the style of an element's four borders. This property can have from one to four values. With only one value, the value will be applied to all four borders; otherwise, this works as a shorthand property for each of border-top-style, border-right-style, border-bottom-style, border-left-style, where each border style may be assigned a separate value.
+ * Sets the style of an element's four borders. This property can have from one to four values.
+ * With only one value, the value will be applied to all four borders;
+ * otherwise, this works as a shorthand property for each of border-top-style, border-right-style,
+ * border-bottom-style, border-left-style, where each border style may be assigned a separate value.
*/
borderStyle?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's top border
+ * in a single declaration. Note that you can use the corresponding longhand properties to set specific
+ * individual properties of the top border — border-top-width, border-top-style and border-top-color.
*/
borderTop?: CSSWideKeyword | any;
/**
- * Sets the color of an element's top border. This page explains the border-top-color value, but often you will find it more convenient to fix the border's top color as part of a shorthand set, either border-top or border-color.
+ * Sets the color of an element's top border. This page explains the border-top-color value,
+ * but often you will find it more convenient to fix the border's top color as part of a shorthand set,
+ * either border-top or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderTopColor?: CSSWideKeyword | any;
@@ -903,22 +1077,30 @@ declare namespace React {
borderTopRightRadius?: CSSWideKeyword | any;
/**
- * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style.
+ * Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
*/
borderTopStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's top border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's top border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderTopWidth?: CSSWideKeyword | any;
/**
- * Sets the width of an element's four borders. This property can have from one to four values. This is a shorthand property for setting values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's four borders. This property can have from one to four values.
+ * This is a shorthand property for setting values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderWidth?: CSSWideKeyword | any;
/**
- * This property specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the bottom edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
+ * This property specifies how far an absolutely positioned box's bottom margin edge
+ * is offset above the bottom edge of the box's containing block. For relatively positioned boxes,
+ * the offset is with respect to the bottom edges of the box itself
+ * (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
*/
bottom?: CSSWideKeyword | any;
@@ -928,7 +1110,9 @@ declare namespace React {
boxAlign?: CSSWideKeyword | any;
/**
- * Breaks a box into fragments creating new borders, padding and repeating backgrounds or lets it stay as a continuous box on a page break, column break, or, for inline elements, at a line break.
+ * Breaks a box into fragments creating new borders,
+ * padding and repeating backgrounds or lets it stay as a continuous box on a page break,
+ * column break, or, for inline elements, at a line break.
*/
boxDecorationBreak?: CSSWideKeyword | any;
@@ -951,7 +1135,8 @@ declare namespace React {
/**
* Do not use. This property has been replaced by flex-order.
- * Specifies the ordinal group that a child element of the object belongs to. This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
+ * Specifies the ordinal group that a child element of the object belongs to.
+ * This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
*/
boxOrdinalGroup?: CSSWideKeyword | any;
@@ -972,7 +1157,11 @@ declare namespace React {
boxShadow?: CSSWideKeyword | any;
/**
- * The CSS break-after property allows you to force a break on multi-column layouts. More specifically, it allows you to force a break after an element. It allows you to determine if a break should occur, and what type of break it should be. The break-after CSS property describes how the page, column or region break behaves after the generated box. If there is no generated box, the property is ignored.
+ * The CSS break-after property allows you to force a break on multi-column layouts.
+ * More specifically, it allows you to force a break after an element.
+ * It allows you to determine if a break should occur, and what type of break it should be.
+ * The break-after CSS property describes how the page, column or region break behaves after the generated box.
+ * If there is no generated box, the property is ignored.
*/
breakAfter?: CSSWideKeyword | any;
@@ -987,23 +1176,28 @@ declare namespace React {
breakInside?: CSSWideKeyword | any;
/**
- * The clear CSS property specifies if an element can be positioned next to or must be positioned below the floating elements that precede it in the markup.
+ * The clear CSS property specifies if an element can be positioned next to
+ * or must be positioned below the floating elements that precede it in the markup.
*/
clear?: CSSWideKeyword | any;
/**
* Deprecated; see clip-path.
- * Lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.
+ * Lets you specify the dimensions of an absolutely positioned element that should be visible,
+ * and the element is clipped into this shape, and displayed.
*/
clip?: CSSWideKeyword | any;
/**
- * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled. This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm, to use when filling the different parts of a graphics.
+ * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled.
+ * This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm,
+ * to use when filling the different parts of a graphics.
*/
clipRule?: CSSWideKeyword | any;
/**
- * The color property sets the color of an element's foreground content (usually text), accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
+ * The color property sets the color of an element's foreground content (usually text),
+ * accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
*/
color?: CSSWideKeyword | any;
@@ -1039,7 +1233,8 @@ declare namespace React {
columnRuleWidth?: CSSWideKeyword | any;
/**
- * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
+ * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all.
+ * An element that spans more than one column is called a spanning element.
*/
columnSpan?: CSSWideKeyword | any;
@@ -1054,22 +1249,31 @@ declare namespace React {
columns?: CSSWideKeyword | any;
/**
- * The counter-increment property accepts one or more names of counters (identifiers), each one optionally followed by an integer which specifies the value by which the counter should be incremented (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
+ * The counter-increment property accepts one or more names of counters (identifiers),
+ * each one optionally followed by an integer which specifies the value by which the counter should be incremented
+ * (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
*/
counterIncrement?: CSSWideKeyword | any;
/**
- * The counter-reset property contains a list of one or more names of counters, each one optionally followed by an integer (otherwise, the integer defaults to 0.) Each time the given element is invoked, the counters specified by the property are set to the given integer.
+ * The counter-reset property contains a list of one or more names of counters,
+ * each one optionally followed by an integer (otherwise, the integer defaults to 0.).
+ * Each time the given element is invoked, the counters specified by the property are set to the given integer.
*/
counterReset?: CSSWideKeyword | any;
/**
- * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents before and after presenting an element's content; if only one file is specified, it is played both before and after. The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified. The icon files may also be set separately with the cue-before and cue-after properties.
+ * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents
+ * before and after presenting an element's content; if only one file is specified, it is played both before and after.
+ * The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified.
+ * The icon files may also be set separately with the cue-before and cue-after properties.
*/
cue?: CSSWideKeyword | any;
/**
- * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents after presenting an element's content; the volume at which the file should be played may also be specified. The shorthand property cue sets cue sounds for both before and after the element is presented.
+ * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents
+ * after presenting an element's content; the volume at which the file should be played may also be specified.
+ * The shorthand property cue sets cue sounds for both before and after the element is presented.
*/
cueAfter?: CSSWideKeyword | any;
@@ -1089,7 +1293,11 @@ declare namespace React {
display?: CSSWideKeyword | any;
/**
- * The ‘fill’ property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the shape. To determine the inside of the shape, all subpaths are considered, and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property. The zero-width geometric outline of a shape is included in the area to be painted.
+ * The ‘fill’ property paints the interior of the given graphical element.
+ * The area to be painted consists of any areas inside the outline of the shape.
+ * To determine the inside of the shape, all subpaths are considered,
+ * and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property.
+ * The zero-width geometric outline of a shape is included in the area to be painted.
*/
fill?: CSSWideKeyword | any;
@@ -1100,7 +1308,10 @@ declare namespace React {
fillOpacity?: CSSWideKeyword | number;
/**
- * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
+ * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.
+ * For a simple, non-intersecting path, it is intuitively clear what region lies "inside";
+ * however, for a more complex path, such as a path that intersects itself or where one subpath encloses another,
+ * the interpretation of "inside" is not so obvious.
* The ‘fill-rule’ property provides two options for how the inside of a shape is determined:
*/
fillRule?: CSSWideKeyword | any;
@@ -1122,7 +1333,8 @@ declare namespace React {
flexAlign?: CSSWideKeyword | any;
/**
- * The flex-basis CSS property describes the initial main size of the flex item before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
+ * The flex-basis CSS property describes the initial main size of the flex item
+ * before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
*/
flexBasis?: CSSWideKeyword | any;
@@ -1166,13 +1378,17 @@ declare namespace React {
flexShrink?: CSSWideKeyword | number;
/**
- * Specifies whether flex items are forced into a single line or can be wrapped onto multiple lines. If wrapping is allowed, this property also enables you to control the direction in which lines are stacked.
+ * Specifies whether flex items are forced into a single line or can be wrapped onto multiple lines.
+ * If wrapping is allowed, this property also enables you to control the direction in which lines are stacked.
* See CSS flex-wrap property https://drafts.csswg.org/css-flexbox-1/#flex-wrap-property
*/
flexWrap?: CSSWideKeyword | "nowrap" | "wrap" | "wrap-reverse";
/**
- * Elements which have the style float are floated horizontally. These elements can move as far to the left or right of the containing element. All elements after the floating element will flow around it, but elements before the floating element are not impacted. If several floating elements are placed after each other, they will float next to each other as long as there is room.
+ * Elements which have the style float are floated horizontally.
+ * These elements can move as far to the left or right of the containing element.
+ * All elements after the floating element will flow around it, but elements before the floating element are not impacted.
+ * If several floating elements are placed after each other, they will float next to each other as long as there is room.
*/
float?: CSSWideKeyword | any;
@@ -1182,17 +1398,20 @@ declare namespace React {
flowFrom?: CSSWideKeyword | any;
/**
- * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line, or you can set one of a choice of keywords to adopt a system font setting.
+ * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line,
+ * or you can set one of a choice of keywords to adopt a system font setting.
*/
font?: CSSWideKeyword | any;
/**
- * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text. The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
+ * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text.
+ * The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
*/
fontFamily?: CSSWideKeyword | any;
/**
- * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
+ * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text.
+ * This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
*/
fontKerning?: CSSWideKeyword | any;
@@ -1201,12 +1420,14 @@ declare namespace React {
* See CSS 3 font-size property https://www.w3.org/TR/css-fonts-3/#propdef-font-size
*/
fontSize?: CSSWideKeyword |
- "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" |
- "larger" | "smaller" |
- CSSLength | CSSPercentage;
+ "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" |
+ "larger" | "smaller" |
+ CSSLength | CSSPercentage;
/**
- * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used. This preserves the readability of the text when fallback happens.
+ * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family,
+ * so that the x-height is the same no matter what font is used.
+ * This preserves the readability of the text when fallback happens.
* See CSS 3 font-size-adjust property https://www.w3.org/TR/css-fonts-3/#propdef-font-size-adjust
*/
fontSizeAdjust?: CSSWideKeyword | "none" | number;
@@ -1216,11 +1437,13 @@ declare namespace React {
* See CSS 3 font-stretch property https://drafts.csswg.org/css-fonts-3/#propdef-font-stretch
*/
fontStretch?: CSSWideKeyword |
- "normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" |
- "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded";
+ "normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" |
+ "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded";
/**
- * The font-style property allows normal, italic, or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
+ * The font-style property allows normal, italic, or oblique faces to be selected.
+ * Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.
+ * Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
* See CSS 3 font-style property https://www.w3.org/TR/css-fonts-3/#propdef-font-style
*/
fontStyle?: CSSWideKeyword | "normal" | "italic" | "oblique";
@@ -1257,12 +1480,15 @@ declare namespace React {
gridColumn?: CSSWideKeyword | any;
/**
- * Controls a grid item's placement in a grid area as well as grid position and a grid span. The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
+ * Controls a grid item's placement in a grid area as well as grid position and a grid span.
+ * The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
*/
gridColumnEnd?: CSSWideKeyword | any;
/**
- * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area . A grid item's placement in a grid area consists of a grid position and a grid span. See also ( grid-row-start, grid-row-end, and grid-column-end)
+ * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area.
+ * A grid item's placement in a grid area consists of a grid position and a grid span.
+ * See also ( grid-row-start, grid-row-end, and grid-column-end)
*/
gridColumnStart?: CSSWideKeyword | any;
@@ -1272,7 +1498,8 @@ declare namespace React {
gridRow?: CSSWideKeyword | any;
/**
- * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
+ * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span.
+ * The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
*/
gridRowEnd?: CSSWideKeyword | any;
@@ -1285,17 +1512,22 @@ declare namespace React {
gridRowSpan?: CSSWideKeyword | any;
/**
- * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties. The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
+ * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties.
+ * The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
*/
gridTemplateAreas?: CSSWideKeyword | any;
/**
- * Specifies (with grid-template-rows) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
+ * Specifies (with grid-template-rows) the line names and track sizing functions of the grid.
+ * Each sizing function can be specified as a length, a percentage of the grid container’s size,
+ * a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
*/
gridTemplateColumns?: CSSWideKeyword | any;
/**
- * Specifies (with grid-template-columns) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
+ * Specifies (with grid-template-columns) the line names and track sizing functions of the grid.
+ * Each sizing function can be specified as a length, a percentage of the grid container’s size,
+ * a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
*/
gridTemplateRows?: CSSWideKeyword | any;
@@ -1315,7 +1547,8 @@ declare namespace React {
hyphenateLimitLines?: CSSWideKeyword | any;
/**
- * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered to pull part of a word from the next line back up into the current one.
+ * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered
+ * to pull part of a word from the next line back up into the current one.
*/
hyphenateLimitZone?: CSSWideKeyword | any;
@@ -1372,7 +1605,9 @@ declare namespace React {
listStyle?: CSSWideKeyword | any;
/**
- * This property sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available, it will show the style specified by list-style-property
+ * This property sets the image that will be used as the list item marker. When the image is available,
+ * it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available,
+ * it will show the style specified by list-style-property
*/
listStyleImage?: CSSWideKeyword | any;
@@ -1387,7 +1622,9 @@ declare namespace React {
listStyleType?: CSSWideKeyword | any;
/**
- * The margin property is shorthand to allow you to set all four margins of an element at once. Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left. Negative values are also allowed.
+ * The margin property is shorthand to allow you to set all four margins of an element at once.
+ * Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left.
+ * Negative values are also allowed.
*/
margin?: CSSWideKeyword | any;
@@ -1422,22 +1659,29 @@ declare namespace React {
marqueeStyle?: CSSWideKeyword | any;
/**
- * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size. Omitted values are set to their original properties' initial values.
+ * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size.
+ * Omitted values are set to their original properties' initial values.
*/
mask?: CSSWideKeyword | any;
/**
- * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat. Omitted values are set to their original properties' initial values.
+ * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat.
+ * Omitted values are set to their original properties' initial values.
*/
maskBorder?: CSSWideKeyword | any;
/**
- * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled. The first keyword applies to the horizontal sides, the second one applies to the vertical ones. If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
+ * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled.
+ * The first keyword applies to the horizontal sides, the second one applies to the vertical ones.
+ * If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
*/
maskBorderRepeat?: CSSWideKeyword | any;
/**
- * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image, dividing it into nine regions: four corners, four edges, and a middle. The middle image part is discarded and treated as fully transparent black unless the fill keyword is present. The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
+ * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image,
+ * dividing it into nine regions: four corners, four edges, and a middle.
+ * The middle image part is discarded and treated as fully transparent black unless the fill keyword is present.
+ * The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
*/
maskBorderSlice?: CSSWideKeyword | any;
@@ -1452,22 +1696,28 @@ declare namespace React {
maskBorderWidth?: CSSWideKeyword | any;
/**
- * Determines the mask painting area, which defines the area that is affected by the mask. The painted content of an element may be restricted to this area.
+ * Determines the mask painting area, which defines the area that is affected by the mask.
+ * The painted content of an element may be restricted to this area.
*/
maskClip?: CSSWideKeyword | any;
/**
- * For elements rendered as a single box, specifies the mask positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
+ * For elements rendered as a single box, specifies the mask positioning area.
+ * For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages)
+ * specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
*/
maskOrigin?: CSSWideKeyword | any;
/**
- * This property must not be used. It is no longer included in any standard or standard track specification, nor is it implemented in any browser. It is only used when the text-align-last property is set to size. It controls allowed adjustments of font-size to fit line content.
+ * This property must not be used. It is no longer included in any standard or standard track specification,
+ * nor is it implemented in any browser. It is only used when the text-align-last property is set to size.
+ * It controls allowed adjustments of font-size to fit line content.
*/
maxFontSize?: CSSWideKeyword | any;
/**
- * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value. If min-height is specified and is greater than max-height, max-height is overridden.
+ * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value.
+ * If min-height is specified and is greater than max-height, max-height is overridden.
*/
maxHeight?: CSSWideKeyword | any;
@@ -1477,7 +1727,8 @@ declare namespace React {
maxWidth?: CSSWideKeyword | any;
/**
- * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value. The value of min-height overrides both max-height and height.
+ * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value.
+ * The value of min-height overrides both max-height and height.
*/
minHeight?: CSSWideKeyword | any;
@@ -1507,10 +1758,13 @@ declare namespace React {
orphans?: CSSWideKeyword | number;
/**
- * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style, outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
+ * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style,
+ * outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
* Outlines differ from borders in the following ways:
* • Outlines do not take up space, they are drawn above the content.
- * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox. Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline. Opera draws a non-rectangular shape around a construct.
+ * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox.
+ * Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline.
+ * Opera draws a non-rectangular shape around a construct.
*/
outline?: CSSWideKeyword | any;
@@ -1525,7 +1779,8 @@ declare namespace React {
outlineOffset?: CSSWideKeyword | any;
/**
- * The overflow property controls how extra content exceeding the bounding box of an element is rendered. It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
+ * The overflow property controls how extra content exceeding the bounding box of an element is rendered.
+ * It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
*/
overflow?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
@@ -1545,72 +1800,99 @@ declare namespace React {
overflowY?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
/**
- * The padding optional CSS property sets the required padding space on one to four sides of an element. The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted. The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
+ * The padding optional CSS property sets the required padding space on one to four sides of an element.
+ * The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted.
+ * The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
* The padding property is a shorthand to avoid setting each side separately (padding-top, padding-right, padding-bottom, padding-left).
*/
padding?: CSSWideKeyword | any;
/**
- * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element. The padding area is the space between the content of the element and its border. Contrary to margin-bottom values, negative values of padding-bottom are invalid.
+ * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-bottom values, negative values of padding-bottom are invalid.
*/
paddingBottom?: CSSWideKeyword | any;
/**
- * The padding-left CSS property of an element sets the padding space required on the left side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-left values, negative values of padding-left are invalid.
+ * The padding-left CSS property of an element sets the padding space required on the left side of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-left values, negative values of padding-left are invalid.
*/
paddingLeft?: CSSWideKeyword | any;
/**
- * The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-right values, negative values of padding-right are invalid.
+ * The padding-right CSS property of an element sets the padding space required on the right side of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-right values, negative values of padding-right are invalid.
*/
paddingRight?: CSSWideKeyword | any;
/**
- * The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.
+ * The padding-top CSS property of an element sets the padding space required on the top of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-top values, negative values of padding-top are invalid.
*/
paddingTop?: CSSWideKeyword | any;
/**
- * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakAfter?: CSSWideKeyword | any;
/**
- * The page-break-before property sets the page-breaking behavior before an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * The page-break-before property sets the page-breaking behavior before an element.
+ * With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakBefore?: CSSWideKeyword | any;
/**
- * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakInside?: CSSWideKeyword | any;
/**
- * The pause property determines how long a speech media agent should pause before and after presenting an element. It is a shorthand for the pause-before and pause-after properties.
+ * The pause property determines how long a speech media agent should pause before and after presenting an element.
+ * It is a shorthand for the pause-before and pause-after properties.
*/
pause?: CSSWideKeyword | any;
/**
- * The pause-after property determines how long a speech media agent should pause after presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
+ * The pause-after property determines how long a speech media agent should pause after presenting an element.
+ * It may be replaced by the shorthand property pause, which sets pause time before and after.
*/
pauseAfter?: CSSWideKeyword | any;
/**
- * The pause-before property determines how long a speech media agent should pause before presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
+ * The pause-before property determines how long a speech media agent should pause before presenting an element.
+ * It may be replaced by the shorthand property pause, which sets pause time before and after.
*/
pauseBefore?: CSSWideKeyword | any;
/**
* The perspective property defines how far an element is placed from the view on the z-axis, from the screen to the viewer.
- * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space. (See Wikipedia for more information about graphical perspective and for related illustrations.)
- * The illusion of perspective on a flat surface, such as a computer screen, is created by projecting points on the flat surface as they would appear if the flat surface were a window through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
+ * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space.
+ * (See Wikipedia for more information about graphical perspective and for related illustrations.)
+ * The illusion of perspective on a flat surface, such as a computer screen,
+ * is created by projecting points on the flat surface as they would appear if the flat surface were a window
+ * through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
*/
perspective?: CSSWideKeyword | any;
/**
- * The perspective-origin property establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
- * When used with perspective, perspective-origin changes the appearance of an object, as if a viewer were looking at it from a different origin. An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side. Thus, the perspective-origin is like a vanishing point.
- * The default value of perspective-origin is 50% 50%. This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right. A value of 0% 0% changes the object as if the viewer was looking toward the top left angle. A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
+ * The perspective-origin property establishes the origin for the perspective property.
+ * It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
+ * When used with perspective, perspective-origin changes the appearance of an object,
+ * as if a viewer were looking at it from a different origin.
+ * An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side.
+ * Thus, the perspective-origin is like a vanishing point.
+ * The default value of perspective-origin is 50% 50%.
+ * This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right.
+ * A value of 0% 0% changes the object as if the viewer was looking toward the top left angle.
+ * A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
*/
perspectiveOrigin?: CSSWideKeyword | any;
@@ -1620,13 +1902,15 @@ declare namespace React {
pointerEvents?: CSSWideKeyword | any;
/**
- * The position property controls the type of positioning used by an element within its parent elements. The effect of the position property depends on a lot of factors, for example the position property of parent elements.
+ * The position property controls the type of positioning used by an element within its parent elements.
+ * The effect of the position property depends on a lot of factors, for example the position property of parent elements.
*/
position?: CSSWideKeyword | "static" | "relative" | "absolute" | "fixed" | "sticky";
/**
* Obsolete: unsupported.
- * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its "ink" lines up with the first glyph in the line above and below.
+ * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line,
+ * so that its "ink" lines up with the first glyph in the line above and below.
*/
punctuationTrim?: CSSWideKeyword | any;
@@ -1636,17 +1920,20 @@ declare namespace React {
quotes?: CSSWideKeyword | any;
/**
- * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property, or if it displays a fragment of content as if it were flowing into a subsequent region.
+ * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property,
+ * or if it displays a fragment of content as if it were flowing into a subsequent region.
*/
regionFragment?: CSSWideKeyword | any;
/**
- * The rest-after property determines how long a speech media agent should pause after presenting an element's main content, before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
+ * The rest-after property determines how long a speech media agent should pause after presenting an element's main content,
+ * before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
*/
restAfter?: CSSWideKeyword | any;
/**
- * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element, before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
+ * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element,
+ * before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
*/
restBefore?: CSSWideKeyword | any;
@@ -1660,22 +1947,29 @@ declare namespace React {
rubyPosition?: CSSWideKeyword | any;
/**
- * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold; that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
+ * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold;
+ * that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
*/
shapeImageThreshold?: CSSWideKeyword | any;
/**
- * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element. See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
+ * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element.
+ * See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
*/
shapeInside?: CSSWideKeyword | any;
/**
- * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points that are the shape-margin distance outward perpendicular to each point on the underlying shape. For points where a perpendicular direction is not defined (e.g., a triangle corner), takes all points on a circle centered at the point and with a radius of the shape-margin distance. This property accepts only non-negative values.
+ * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points
+ * that are the shape-margin distance outward perpendicular to each point on the underlying shape.
+ * For points where a perpendicular direction is not defined (e.g., a triangle corner),
+ * takes all points on a circle centered at the point and with a radius of the shape-margin distance.
+ * This property accepts only non-negative values.
*/
shapeMargin?: CSSWideKeyword | any;
/**
- * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property. The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
+ * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property.
+ * The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
*/
shapeOutside?: CSSWideKeyword | any;
@@ -1685,7 +1979,8 @@ declare namespace React {
speak?: CSSWideKeyword | any;
/**
- * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters, numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
+ * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters,
+ * numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
*/
speakAs?: CSSWideKeyword | any;
@@ -1712,7 +2007,8 @@ declare namespace React {
tableLayout?: CSSWideKeyword | any;
/**
- * The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
+ * The text-align CSS property describes how inline content like text is aligned in its parent block element.
+ * text-align does not control the alignment of block elements itself, only their inline content.
*/
textAlign?: CSSWideKeyword | any;
@@ -1749,14 +2045,17 @@ declare namespace React {
textDecorationSkip?: CSSWideKeyword | any;
/**
- * This property specifies the style of the text decoration line drawn on the specified element. The intended meaning for the values are the same as those of the border-style-properties.
+ * This property specifies the style of the text decoration line drawn on the specified element.
+ * The intended meaning for the values are the same as those of the border-style-properties.
*/
textDecorationStyle?: CSSWideKeyword | any;
textDecorationUnderline?: CSSWideKeyword | any;
/**
- * The text-emphasis property will apply special emphasis marks to the elements text. Slightly similar to the text-decoration property only that this property can have affect on the line-height. It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
+ * The text-emphasis property will apply special emphasis marks to the elements text.
+ * Slightly similar to the text-decoration property only that this property can have affect on the line-height.
+ * It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
*/
textEmphasis?: CSSWideKeyword | any;
@@ -1771,12 +2070,16 @@ declare namespace React {
textEmphasisStyle?: CSSWideKeyword | any;
/**
- * This property helps determine an inline box's block-progression dimension, derived from the text-height and font-size properties for non-replaced elements, the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements. The block-progression dimension determines the position of the padding, border and margin for the element.
+ * This property helps determine an inline box's block-progression dimension,
+ * derived from the text-height and font-size properties for non-replaced elements,
+ * the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements.
+ * The block-progression dimension determines the position of the padding, border and margin for the element.
*/
textHeight?: CSSWideKeyword | any;
/**
- * Specifies the amount of space horizontally that should be left on the first line of the text of an element. This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
+ * Specifies the amount of space horizontally that should be left on the first line of the text of an element.
+ * This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
*/
textIndent?: CSSWideKeyword | any;
@@ -1785,7 +2088,8 @@ declare namespace React {
textKashidaSpace?: CSSWideKeyword | any;
/**
- * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode. (Considered obsolete; use text-decoration instead.)
+ * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode.
+ * (Considered obsolete; use text-decoration instead.)
*/
textLineThrough?: CSSWideKeyword | any;
@@ -1813,7 +2117,9 @@ declare namespace React {
textLineThroughWidth?: CSSWideKeyword | any;
/**
- * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string. It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
+ * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users.
+ * It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string.
+ * It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
*/
textOverflow?: CSSWideKeyword | any;
@@ -1843,7 +2149,8 @@ declare namespace React {
textOverlineWidth?: CSSWideKeyword | any;
/**
- * The text-rendering CSS property provides information to the browser about how to optimize when rendering text. Options are: legibility, speed or geometric precision.
+ * The text-rendering CSS property provides information to the browser about how to optimize when rendering text.
+ * Options are: legibility, speed or geometric precision.
*/
textRendering?: CSSWideKeyword | any;
@@ -1853,7 +2160,8 @@ declare namespace React {
textScript?: CSSWideKeyword | any;
/**
- * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element. Each shadow is specified as an offset from the text, along with optional color and blur radius values.
+ * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element.
+ * Each shadow is specified as an offset from the text, along with optional color and blur radius values.
*/
textShadow?: CSSWideKeyword | any;
@@ -1875,7 +2183,9 @@ declare namespace React {
textUnderlineStyle?: CSSWideKeyword | any;
/**
- * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
+ * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block.
+ * For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow,
+ * then offset from that position according to these properties).
*/
top?: CSSWideKeyword | any;
@@ -1885,7 +2195,8 @@ declare namespace React {
touchAction?: CSSWideKeyword | any;
/**
- * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space. Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
+ * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space.
+ * Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
*/
transform?: CSSWideKeyword | any;
@@ -1905,12 +2216,14 @@ declare namespace React {
transformStyle?: CSSWideKeyword | any;
/**
- * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It allows to define the transition between two states of an element.
+ * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function,
+ * and transition-delay. It allows to define the transition between two states of an element.
*/
transition?: CSSWideKeyword | any;
/**
- * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
+ * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed.
+ * Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
*/
transitionDelay?: CSSWideKeyword | any;
@@ -1950,7 +2263,8 @@ declare namespace React {
userInput?: CSSWideKeyword | any;
/**
- * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline. If this property is used on table-cells it controls the vertical alignment of content of the table cell.
+ * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline.
+ * If this property is used on table-cells it controls the vertical alignment of content of the table cell.
*/
verticalAlign?: CSSWideKeyword | any;
@@ -1965,22 +2279,34 @@ declare namespace React {
voiceBalance?: CSSWideKeyword | any;
/**
- * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content, for example to allow the speech to be synchronized with other media. With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
+ * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content,
+ * for example to allow the speech to be synchronized with other media.
+ * With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
*/
voiceDuration?: CSSWideKeyword | any;
/**
- * The voice-family property sets the speaker's voice used by a speech media agent to read an element. The speaker may be specified as a named character (to match a voice option in the speech reading software) or as a generic description of the age and gender of the voice. Similar to the font-family property for visual media, a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name or cannot synthesize the requested combination of generic properties.
+ * The voice-family property sets the speaker's voice used by a speech media agent to read an element.
+ * The speaker may be specified as a named character (to match a voice option in the speech reading software)
+ * or as a generic description of the age and gender of the voice.
+ * Similar to the font-family property for visual media,
+ * a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name
+ * or cannot synthesize the requested combination of generic properties.
*/
voiceFamily?: CSSWideKeyword | any;
/**
- * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element; the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
+ * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element;
+ * the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
*/
voicePitch?: CSSWideKeyword | any;
/**
- * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element. Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch, this property determines how strong or obvious those changes are; large ranges are associated with enthusiastic or emotional speech, while small ranges are associated with flat or mechanical speech.
+ * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element.
+ * Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch,
+ * this property determines how strong or obvious those changes are;
+ * large ranges are associated with enthusiastic or emotional speech,
+ * while small ranges are associated with flat or mechanical speech.
*/
voiceRange?: CSSWideKeyword | any;
@@ -2022,7 +2348,8 @@ declare namespace React {
width?: CSSWideKeyword | any;
/**
- * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart. A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
+ * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart.
+ * A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
*/
wordBreak?: CSSWideKeyword | any;
@@ -2080,9 +2407,58 @@ declare namespace React {
suppressContentEditableWarning?: boolean;
// Standard HTML Attributes
+ accessKey?: string;
+ className?: string;
+ contentEditable?: boolean;
+ contextMenu?: string;
+ dir?: string;
+ draggable?: boolean;
+ hidden?: boolean;
+ id?: string;
+ lang?: string;
+ slot?: string;
+ spellCheck?: boolean;
+ style?: CSSProperties;
+ tabIndex?: number;
+ title?: string;
+
+ // Unknown
+ inputMode?: string;
+ is?: string;
+ radioGroup?: string; // <command>, <menuitem>
+
+ // WAI-ARIA
+ role?: string;
+
+ // RDFa Attributes
+ about?: string;
+ datatype?: string;
+ inlist?: any;
+ prefix?: string;
+ property?: string;
+ resource?: string;
+ typeof?: string;
+ vocab?: string;
+
+ // Non-standard Attributes
+ autoCapitalize?: string;
+ autoCorrect?: string;
+ autoSave?: string;
+ color?: string;
+ itemProp?: string;
+ itemScope?: boolean;
+ itemType?: string;
+ itemID?: string;
+ itemRef?: string;
+ results?: number;
+ security?: string;
+ unselectable?: boolean;
+ }
+
+ interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
+ // Standard HTML Attributes
accept?: string;
acceptCharset?: string;
- accessKey?: string;
action?: string;
allowFullScreen?: boolean;
allowTransparency?: boolean;
@@ -2099,12 +2475,9 @@ declare namespace React {
checked?: boolean;
cite?: string;
classID?: string;
- className?: string;
cols?: number;
colSpan?: number;
content?: string;
- contentEditable?: boolean;
- contextMenu?: string;
controls?: boolean;
coords?: string;
crossOrigin?: string;
@@ -2112,10 +2485,8 @@ declare namespace React {
dateTime?: string;
default?: boolean;
defer?: boolean;
- dir?: string;
disabled?: boolean;
download?: any;
- draggable?: boolean;
encType?: string;
form?: string;
formAction?: string;
@@ -2126,21 +2497,16 @@ declare namespace React {
frameBorder?: number | string;
headers?: string;
height?: number | string;
- hidden?: boolean;
high?: number;
href?: string;
hrefLang?: string;
htmlFor?: string;
httpEquiv?: string;
- id?: string;
- inputMode?: string;
integrity?: string;
- is?: string;
keyParams?: string;
keyType?: string;
kind?: string;
label?: string;
- lang?: string;
list?: string;
loop?: boolean;
low?: number;
@@ -2166,12 +2532,10 @@ declare namespace React {
playsInline?: boolean;
poster?: string;
preload?: string;
- radioGroup?: string;
readOnly?: boolean;
rel?: string;
required?: boolean;
reversed?: boolean;
- role?: string;
rows?: number;
rowSpan?: number;
sandbox?: string;
@@ -2183,56 +2547,399 @@ declare namespace React {
shape?: string;
size?: number;
sizes?: string;
- slot?: string;
span?: number;
- spellCheck?: boolean;
src?: string;
srcDoc?: string;
srcLang?: string;
srcSet?: string;
start?: number;
step?: number | string;
- style?: CSSProperties;
summary?: string;
- tabIndex?: number;
target?: string;
- title?: string;
type?: string;
useMap?: string;
value?: string | string[] | number;
width?: number | string;
wmode?: string;
wrap?: string;
+ }
- // RDFa Attributes
- about?: string;
- datatype?: string;
- inlist?: any;
- prefix?: string;
- property?: string;
- resource?: string;
- typeof?: string;
- vocab?: string;
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
+ download?: any;
+ href?: string;
+ hrefLang?: string;
+ media?: string;
+ rel?: string;
+ target?: string;
+ }
- // Non-standard Attributes
- autoCapitalize?: string;
- autoCorrect?: string;
- autoSave?: string;
- color?: string;
- itemProp?: string;
- itemScope?: boolean;
- itemType?: string;
- itemID?: string;
- itemRef?: string;
- results?: number;
- security?: string;
- unselectable?: boolean;
+ // tslint:disable-next-line:no-empty-interface
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
+
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
+ alt?: string;
+ coords?: string;
+ download?: any;
+ href?: string;
+ hrefLang?: string;
+ media?: string;
+ rel?: string;
+ shape?: string;
+ target?: string;
+ }
+
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
+ href?: string;
+ target?: string;
+ }
+
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ }
+
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ disabled?: boolean;
+ form?: string;
+ formAction?: string;
+ formEncType?: string;
+ formMethod?: string;
+ formNoValidate?: boolean;
+ formTarget?: string;
+ name?: string;
+ type?: string;
+ value?: string | string[] | number;
+ }
+
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
+ height?: number | string;
+ width?: number | string;
+ }
+
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
+ span?: number;
+ }
+
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
+ span?: number;
+ }
+
+ interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
+ open?: boolean;
+ }
+
+ interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ dateTime?: string;
+ }
+
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
+ height?: number | string;
+ src?: string;
+ type?: string;
+ width?: number | string;
+ }
+
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ form?: string;
+ name?: string;
+ }
+
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
+ acceptCharset?: string;
+ action?: string;
+ autoComplete?: string;
+ encType?: string;
+ method?: string;
+ name?: string;
+ noValidate?: boolean;
+ target?: string;
+ }
+
+ interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
+ manifest?: string;
+ }
+
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
+ allowFullScreen?: boolean;
+ allowTransparency?: boolean;
+ frameBorder?: number | string;
+ height?: number | string;
+ marginHeight?: number;
+ marginWidth?: number;
+ name?: string;
+ sandbox?: string;
+ scrolling?: string;
+ seamless?: boolean;
+ src?: string;
+ srcDoc?: string;
+ width?: number | string;
+ }
+
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
+ alt?: string;
+ height?: number | string;
+ sizes?: string;
+ src?: string;
+ srcSet?: string;
+ useMap?: string;
+ width?: number | string;
+ }
+
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ dateTime?: string;
}
- interface ChangeTargetHTMLAttributes<T extends HTMLElement> extends HTMLAttributes<T> {
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
+ accept?: string;
+ alt?: string;
+ autoComplete?: string;
+ autoFocus?: boolean;
+ capture?: boolean; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
+ checked?: boolean;
+ crossOrigin?: string;
+ disabled?: boolean;
+ form?: string;
+ formAction?: string;
+ formEncType?: string;
+ formMethod?: string;
+ formNoValidate?: boolean;
+ formTarget?: string;
+ height?: number | string;
+ list?: string;
+ max?: number | string;
+ maxLength?: number;
+ min?: number | string;
+ minLength?: number;
+ multiple?: boolean;
+ name?: string;
+ pattern?: string;
+ placeholder?: string;
+ readOnly?: boolean;
+ required?: boolean;
+ size?: number;
+ src?: string;
+ step?: number | string;
+ type?: string;
+ value?: string | string[] | number;
+ width?: number | string;
+
onChange?: ChangeEventHandler<T>;
}
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ challenge?: string;
+ disabled?: boolean;
+ form?: string;
+ keyType?: string;
+ keyParams?: string;
+ name?: string;
+ }
+
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ htmlFor?: string;
+ }
+
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
+ value?: string | string[] | number;
+ }
+
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
+ href?: string;
+ hrefLang?: string;
+ integrity?: string;
+ media?: string;
+ rel?: string;
+ sizes?: string;
+ type?: string;
+ }
+
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
+ name?: string;
+ }
+
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
+ type?: string;
+ }
+
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoPlay?: boolean;
+ controls?: boolean;
+ crossOrigin?: string;
+ loop?: boolean;
+ mediaGroup?: string;
+ muted?: boolean;
+ preload?: string;
+ src?: string;
+ }
+
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
+ charSet?: string;
+ content?: string;
+ httpEquiv?: string;
+ name?: string;
+ }
+
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ high?: number;
+ low?: number;
+ max?: number | string;
+ min?: number | string;
+ optimum?: number;
+ value?: string | string[] | number;
+ }
+
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ }
+
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
+ classID?: string;
+ data?: string;
+ form?: string;
+ height?: number | string;
+ name?: string;
+ type?: string;
+ useMap?: string;
+ width?: number | string;
+ wmode?: string;
+ }
+
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
+ reversed?: boolean;
+ start?: number;
+ }
+
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ label?: string;
+ }
+
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ label?: string;
+ selected?: boolean;
+ value?: string | string[] | number;
+ }
+
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ htmlFor?: string;
+ name?: string;
+ }
+
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
+ name?: string;
+ value?: string | string[] | number;
+ }
+
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
+ max?: number | string;
+ value?: string | string[] | number;
+ }
+
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
+ async?: boolean;
+ charSet?: string;
+ crossOrigin?: string;
+ defer?: boolean;
+ integrity?: string;
+ nonce?: string;
+ src?: string;
+ type?: string;
+ }
+
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ disabled?: boolean;
+ form?: string;
+ multiple?: boolean;
+ name?: string;
+ required?: boolean;
+ size?: number;
+ value?: string | string[] | number;
+ onChange?: ChangeEventHandler<T>;
+ }
+
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
+ media?: string;
+ sizes?: string;
+ src?: string;
+ srcSet?: string;
+ type?: string;
+ }
+
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
+ media?: string;
+ nonce?: string;
+ scoped?: boolean;
+ type?: string;
+ }
+
+ interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
+ cellPadding?: number | string;
+ cellSpacing?: number | string;
+ summary?: string;
+ }
+
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoComplete?: string;
+ autoFocus?: boolean;
+ cols?: number;
+ dirName?: string;
+ disabled?: boolean;
+ form?: string;
+ maxLength?: number;
+ minLength?: number;
+ name?: string;
+ placeholder?: string;
+ readOnly?: boolean;
+ required?: boolean;
+ rows?: number;
+ value?: string | string[] | number;
+ wrap?: string;
+
+ onChange?: ChangeEventHandler<T>;
+ }
+
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
+ colSpan?: number;
+ headers?: string;
+ rowSpan?: number;
+ scope?: string;
+ }
+
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
+ colSpan?: number;
+ headers?: string;
+ rowSpan?: number;
+ scope?: string;
+ }
+
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
+ dateTime?: string;
+ }
+
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
+ default?: boolean;
+ kind?: string;
+ label?: string;
+ src?: string;
+ srcLang?: string;
+ }
+
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
+ height?: number | string;
+ playsInline?: boolean;
+ poster?: string;
+ width?: number | string;
+ }
+
// this list is "complete" in that it contains every SVG attribute
// that React supports, but the types can be improved.
// Full list here: https://facebook.github.io/react/docs/dom-elements.html
@@ -2259,11 +2966,16 @@ declare namespace React {
type?: string;
width?: number | string;
+ // Other HTML properties supported by SVG elements in browsers
+ role?: string;
+ tabIndex?: number;
+
// SVG Specific attributes
accentHeight?: number | string;
accumulate?: "none" | "sum";
additive?: "replace" | "sum";
- alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
+ alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" |
+ "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
allowReorder?: "no" | "yes";
alphabetic?: number | string;
amplitude?: number | string;
@@ -2505,123 +3217,123 @@ declare namespace React {
// React.DOM
// ----------------------------------------------------------------------
- interface ReactDOM {
- // HTML
- a: HTMLFactory<HTMLAnchorElement>;
- abbr: HTMLFactory<HTMLElement>;
- address: HTMLFactory<HTMLElement>;
- area: HTMLFactory<HTMLAreaElement>;
- article: HTMLFactory<HTMLElement>;
- aside: HTMLFactory<HTMLElement>;
- audio: HTMLFactory<HTMLAudioElement>;
- b: HTMLFactory<HTMLElement>;
- base: HTMLFactory<HTMLBaseElement>;
- bdi: HTMLFactory<HTMLElement>;
- bdo: HTMLFactory<HTMLElement>;
- big: HTMLFactory<HTMLElement>;
- blockquote: HTMLFactory<HTMLElement>;
- body: HTMLFactory<HTMLBodyElement>;
- br: HTMLFactory<HTMLBRElement>;
- button: HTMLFactory<HTMLButtonElement>;
- canvas: HTMLFactory<HTMLCanvasElement>;
- caption: HTMLFactory<HTMLElement>;
- cite: HTMLFactory<HTMLElement>;
- code: HTMLFactory<HTMLElement>;
- col: HTMLFactory<HTMLTableColElement>;
- colgroup: HTMLFactory<HTMLTableColElement>;
- data: HTMLFactory<HTMLElement>;
- datalist: HTMLFactory<HTMLDataListElement>;
- dd: HTMLFactory<HTMLElement>;
- del: HTMLFactory<HTMLElement>;
- details: HTMLFactory<HTMLElement>;
- dfn: HTMLFactory<HTMLElement>;
- dialog: HTMLFactory<HTMLElement>;
- div: HTMLFactory<HTMLDivElement>;
- dl: HTMLFactory<HTMLDListElement>;
- dt: HTMLFactory<HTMLElement>;
- em: HTMLFactory<HTMLElement>;
- embed: HTMLFactory<HTMLEmbedElement>;
- fieldset: HTMLFactory<HTMLFieldSetElement>;
- figcaption: HTMLFactory<HTMLElement>;
- figure: HTMLFactory<HTMLElement>;
- footer: HTMLFactory<HTMLElement>;
- form: HTMLFactory<HTMLFormElement>;
- h1: HTMLFactory<HTMLHeadingElement>;
- h2: HTMLFactory<HTMLHeadingElement>;
- h3: HTMLFactory<HTMLHeadingElement>;
- h4: HTMLFactory<HTMLHeadingElement>;
- h5: HTMLFactory<HTMLHeadingElement>;
- h6: HTMLFactory<HTMLHeadingElement>;
- head: HTMLFactory<HTMLHeadElement>;
- header: HTMLFactory<HTMLElement>;
- hgroup: HTMLFactory<HTMLElement>;
- hr: HTMLFactory<HTMLHRElement>;
- html: HTMLFactory<HTMLHtmlElement>;
- i: HTMLFactory<HTMLElement>;
- iframe: HTMLFactory<HTMLIFrameElement>;
- img: HTMLFactory<HTMLImageElement>;
- input: ChangeTargetHTMLFactory<HTMLInputElement>;
- ins: HTMLFactory<HTMLModElement>;
- kbd: HTMLFactory<HTMLElement>;
- keygen: HTMLFactory<HTMLElement>;
- label: HTMLFactory<HTMLLabelElement>;
- legend: HTMLFactory<HTMLLegendElement>;
- li: HTMLFactory<HTMLLIElement>;
- link: HTMLFactory<HTMLLinkElement>;
- main: HTMLFactory<HTMLElement>;
- map: HTMLFactory<HTMLMapElement>;
- mark: HTMLFactory<HTMLElement>;
- menu: HTMLFactory<HTMLElement>;
- menuitem: HTMLFactory<HTMLElement>;
- meta: HTMLFactory<HTMLMetaElement>;
- meter: HTMLFactory<HTMLElement>;
- nav: HTMLFactory<HTMLElement>;
- noscript: HTMLFactory<HTMLElement>;
- object: HTMLFactory<HTMLObjectElement>;
- ol: HTMLFactory<HTMLOListElement>;
- optgroup: HTMLFactory<HTMLOptGroupElement>;
- option: HTMLFactory<HTMLOptionElement>;
- output: HTMLFactory<HTMLElement>;
- p: HTMLFactory<HTMLParagraphElement>;
- param: HTMLFactory<HTMLParamElement>;
- picture: HTMLFactory<HTMLElement>;
- pre: HTMLFactory<HTMLPreElement>;
- progress: HTMLFactory<HTMLProgressElement>;
- q: HTMLFactory<HTMLQuoteElement>;
- rp: HTMLFactory<HTMLElement>;
- rt: HTMLFactory<HTMLElement>;
- ruby: HTMLFactory<HTMLElement>;
- s: HTMLFactory<HTMLElement>;
- samp: HTMLFactory<HTMLElement>;
- script: HTMLFactory<HTMLElement>;
- section: HTMLFactory<HTMLElement>;
- select: ChangeTargetHTMLFactory<HTMLSelectElement>;
- small: HTMLFactory<HTMLElement>;
- source: HTMLFactory<HTMLSourceElement>;
- span: HTMLFactory<HTMLSpanElement>;
- strong: HTMLFactory<HTMLElement>;
- style: HTMLFactory<HTMLStyleElement>;
- sub: HTMLFactory<HTMLElement>;
- summary: HTMLFactory<HTMLElement>;
- sup: HTMLFactory<HTMLElement>;
- table: HTMLFactory<HTMLTableElement>;
- tbody: HTMLFactory<HTMLTableSectionElement>;
- td: HTMLFactory<HTMLTableDataCellElement>;
- textarea: ChangeTargetHTMLFactory<HTMLTextAreaElement>;
- tfoot: HTMLFactory<HTMLTableSectionElement>;
- th: HTMLFactory<HTMLTableHeaderCellElement>;
- thead: HTMLFactory<HTMLTableSectionElement>;
- time: HTMLFactory<HTMLElement>;
- title: HTMLFactory<HTMLTitleElement>;
- tr: HTMLFactory<HTMLTableRowElement>;
- track: HTMLFactory<HTMLTrackElement>;
- u: HTMLFactory<HTMLElement>;
- ul: HTMLFactory<HTMLUListElement>;
- "var": HTMLFactory<HTMLElement>;
- video: HTMLFactory<HTMLVideoElement>;
- wbr: HTMLFactory<HTMLElement>;
-
- // SVG
+ interface ReactHTML {
+ a: DetailedHTMLFactory<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
+ abbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ address: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ area: DetailedHTMLFactory<AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>;
+ article: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ aside: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ audio: DetailedHTMLFactory<AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
+ b: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ base: DetailedHTMLFactory<BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>;
+ bdi: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ bdo: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ big: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ blockquote: DetailedHTMLFactory<BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
+ body: DetailedHTMLFactory<HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
+ br: DetailedHTMLFactory<HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
+ button: DetailedHTMLFactory<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
+ canvas: DetailedHTMLFactory<CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
+ caption: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ cite: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ code: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ col: DetailedHTMLFactory<ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ colgroup: DetailedHTMLFactory<ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ data: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ datalist: DetailedHTMLFactory<HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
+ dd: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ del: DetailedHTMLFactory<DelHTMLAttributes<HTMLElement>, HTMLElement>;
+ details: DetailedHTMLFactory<DetailsHTMLAttributes<HTMLElement>, HTMLElement>;
+ dfn: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ dialog: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ div: DetailedHTMLFactory<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
+ dl: DetailedHTMLFactory<HTMLAttributes<HTMLDListElement>, HTMLDListElement>;
+ dt: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ em: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ embed: DetailedHTMLFactory<EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>;
+ fieldset: DetailedHTMLFactory<FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>;
+ figcaption: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ figure: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ footer: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ form: DetailedHTMLFactory<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
+ h1: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h2: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h3: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h4: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h5: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h6: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ head: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLHeadElement>;
+ header: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ hgroup: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ hr: DetailedHTMLFactory<HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
+ html: DetailedHTMLFactory<HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
+ i: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ iframe: DetailedHTMLFactory<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
+ img: DetailedHTMLFactory<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
+ input: DetailedHTMLFactory<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
+ ins: DetailedHTMLFactory<InsHTMLAttributes<HTMLModElement>, HTMLModElement>;
+ kbd: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ keygen: DetailedHTMLFactory<KeygenHTMLAttributes<HTMLElement>, HTMLElement>;
+ label: DetailedHTMLFactory<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
+ legend: DetailedHTMLFactory<HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>;
+ li: DetailedHTMLFactory<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
+ link: DetailedHTMLFactory<LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
+ main: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ map: DetailedHTMLFactory<MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>;
+ mark: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ menu: DetailedHTMLFactory<MenuHTMLAttributes<HTMLElement>, HTMLElement>;
+ menuitem: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ meta: DetailedHTMLFactory<MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>;
+ meter: DetailedHTMLFactory<MeterHTMLAttributes<HTMLElement>, HTMLElement>;
+ nav: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ noscript: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ object: DetailedHTMLFactory<ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>;
+ ol: DetailedHTMLFactory<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>;
+ optgroup: DetailedHTMLFactory<OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>;
+ option: DetailedHTMLFactory<OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>;
+ output: DetailedHTMLFactory<OutputHTMLAttributes<HTMLElement>, HTMLElement>;
+ p: DetailedHTMLFactory<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
+ param: DetailedHTMLFactory<ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>;
+ picture: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ pre: DetailedHTMLFactory<HTMLAttributes<HTMLPreElement>, HTMLPreElement>;
+ progress: DetailedHTMLFactory<ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>;
+ q: DetailedHTMLFactory<QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>;
+ rp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ rt: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
+ section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ select: DetailedHTMLFactory<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
+ small: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ source: DetailedHTMLFactory<SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>;
+ span: DetailedHTMLFactory<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
+ strong: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ style: DetailedHTMLFactory<StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;
+ sub: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ summary: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ sup: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ table: DetailedHTMLFactory<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
+ tbody: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ td: DetailedHTMLFactory<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
+ textarea: DetailedHTMLFactory<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
+ tfoot: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ th: DetailedHTMLFactory<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>;
+ thead: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ time: DetailedHTMLFactory<TimeHTMLAttributes<HTMLElement>, HTMLElement>;
+ title: DetailedHTMLFactory<HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>;
+ tr: DetailedHTMLFactory<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
+ track: DetailedHTMLFactory<TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>;
+ u: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ ul: DetailedHTMLFactory<HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
+ "var": DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ video: DetailedHTMLFactory<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
+ wbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ }
+
+ interface ReactSVG {
svg: SVGFactory;
animate: SVGFactory;
circle: SVGFactory;
@@ -2645,19 +3357,19 @@ declare namespace React {
use: SVGFactory;
}
+ interface ReactDOM extends ReactHTML, ReactSVG { }
+
//
// React.PropTypes
// ----------------------------------------------------------------------
- interface Validator<T> {
- (object: T, key: string, componentName: string, ...rest: any[]): Error | null;
- }
+ type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
interface Requireable<T> extends Validator<T> {
isRequired: Validator<T>;
}
- type ValidationMap<T> = { [K in keyof T]?: Validator<T> };
+ type ValidationMap<T> = {[K in keyof T]?: Validator<T> };
interface ReactPropTypes {
any: Requireable<any>;
@@ -2671,7 +3383,7 @@ declare namespace React {
element: Requireable<any>;
instanceOf(expectedClass: {}): Requireable<any>;
oneOf(types: any[]): Requireable<any>;
- oneOfType(types: Validator<any>[]): Requireable<any>;
+ oneOfType(types: Array<Validator<any>>): Requireable<any>;
arrayOf(type: Validator<any>): Requireable<any>;
objectOf(type: Validator<any>): Requireable<any>;
shape(type: ValidationMap<any>): Requireable<any>;
@@ -2716,141 +3428,154 @@ declare namespace React {
item(index: number): Touch;
identifiedTouch(identifier: number): Touch;
}
+
+ //
+ // Error Interfaces
+ // ----------------------------------------------------------------------
+ interface ErrorInfo {
+ /**
+ * Captures which component contained the exception, and it's ancestors.
+ */
+ componentStack: string;
+ }
}
declare global {
namespace JSX {
+ // tslint:disable:no-empty-interface
interface Element extends React.ReactElement<any> { }
- interface ElementClass extends React.Component<any, any> {
- render(): JSX.Element | null;
+ interface ElementClass extends React.Component<any> {
+ render(): JSX.Element | null | false;
}
interface ElementAttributesProperty { props: {}; }
interface ElementChildrenAttribute { children: {}; }
interface IntrinsicAttributes extends React.Attributes { }
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
+ // tslint:enable:no-empty-interface
interface IntrinsicElements {
// HTML
- a: React.HTMLProps<HTMLAnchorElement>;
- abbr: React.HTMLProps<HTMLElement>;
- address: React.HTMLProps<HTMLElement>;
- area: React.HTMLProps<HTMLAreaElement>;
- article: React.HTMLProps<HTMLElement>;
- aside: React.HTMLProps<HTMLElement>;
- audio: React.HTMLProps<HTMLAudioElement>;
- b: React.HTMLProps<HTMLElement>;
- base: React.HTMLProps<HTMLBaseElement>;
- bdi: React.HTMLProps<HTMLElement>;
- bdo: React.HTMLProps<HTMLElement>;
- big: React.HTMLProps<HTMLElement>;
- blockquote: React.HTMLProps<HTMLElement>;
- body: React.HTMLProps<HTMLBodyElement>;
- br: React.HTMLProps<HTMLBRElement>;
- button: React.HTMLProps<HTMLButtonElement>;
- canvas: React.HTMLProps<HTMLCanvasElement>;
- caption: React.HTMLProps<HTMLElement>;
- cite: React.HTMLProps<HTMLElement>;
- code: React.HTMLProps<HTMLElement>;
- col: React.HTMLProps<HTMLTableColElement>;
- colgroup: React.HTMLProps<HTMLTableColElement>;
- data: React.HTMLProps<HTMLElement>;
- datalist: React.HTMLProps<HTMLDataListElement>;
- dd: React.HTMLProps<HTMLElement>;
- del: React.HTMLProps<HTMLElement>;
- details: React.HTMLProps<HTMLElement>;
- dfn: React.HTMLProps<HTMLElement>;
- dialog: React.HTMLProps<HTMLElement>;
- div: React.HTMLProps<HTMLDivElement>;
- dl: React.HTMLProps<HTMLDListElement>;
- dt: React.HTMLProps<HTMLElement>;
- em: React.HTMLProps<HTMLElement>;
- embed: React.HTMLProps<HTMLEmbedElement>;
- fieldset: React.HTMLProps<HTMLFieldSetElement>;
- figcaption: React.HTMLProps<HTMLElement>;
- figure: React.HTMLProps<HTMLElement>;
- footer: React.HTMLProps<HTMLElement>;
- form: React.HTMLProps<HTMLFormElement>;
- h1: React.HTMLProps<HTMLHeadingElement>;
- h2: React.HTMLProps<HTMLHeadingElement>;
- h3: React.HTMLProps<HTMLHeadingElement>;
- h4: React.HTMLProps<HTMLHeadingElement>;
- h5: React.HTMLProps<HTMLHeadingElement>;
- h6: React.HTMLProps<HTMLHeadingElement>;
- head: React.HTMLProps<HTMLHeadElement>;
- header: React.HTMLProps<HTMLElement>;
- hgroup: React.HTMLProps<HTMLElement>;
- hr: React.HTMLProps<HTMLHRElement>;
- html: React.HTMLProps<HTMLHtmlElement>;
- i: React.HTMLProps<HTMLElement>;
- iframe: React.HTMLProps<HTMLIFrameElement>;
- img: React.HTMLProps<HTMLImageElement>;
- input: React.ChangeTargetHTMLProps<HTMLInputElement>;
- ins: React.HTMLProps<HTMLModElement>;
- kbd: React.HTMLProps<HTMLElement>;
- keygen: React.HTMLProps<HTMLElement>;
- label: React.HTMLProps<HTMLLabelElement>;
- legend: React.HTMLProps<HTMLLegendElement>;
- li: React.HTMLProps<HTMLLIElement>;
- link: React.HTMLProps<HTMLLinkElement>;
- main: React.HTMLProps<HTMLElement>;
- map: React.HTMLProps<HTMLMapElement>;
- mark: React.HTMLProps<HTMLElement>;
- menu: React.HTMLProps<HTMLElement>;
- menuitem: React.HTMLProps<HTMLElement>;
- meta: React.HTMLProps<HTMLMetaElement>;
- meter: React.HTMLProps<HTMLElement>;
- nav: React.HTMLProps<HTMLElement>;
- noindex: React.HTMLProps<HTMLElement>;
- noscript: React.HTMLProps<HTMLElement>;
- object: React.HTMLProps<HTMLObjectElement>;
- ol: React.HTMLProps<HTMLOListElement>;
- optgroup: React.HTMLProps<HTMLOptGroupElement>;
- option: React.HTMLProps<HTMLOptionElement>;
- output: React.HTMLProps<HTMLElement>;
- p: React.HTMLProps<HTMLParagraphElement>;
- param: React.HTMLProps<HTMLParamElement>;
- picture: React.HTMLProps<HTMLElement>;
- pre: React.HTMLProps<HTMLPreElement>;
- progress: React.HTMLProps<HTMLProgressElement>;
- q: React.HTMLProps<HTMLQuoteElement>;
- rp: React.HTMLProps<HTMLElement>;
- rt: React.HTMLProps<HTMLElement>;
- ruby: React.HTMLProps<HTMLElement>;
- s: React.HTMLProps<HTMLElement>;
- samp: React.HTMLProps<HTMLElement>;
- script: React.HTMLProps<HTMLElement>;
- section: React.HTMLProps<HTMLElement>;
- select: React.ChangeTargetHTMLProps<HTMLSelectElement>;
- small: React.HTMLProps<HTMLElement>;
- source: React.HTMLProps<HTMLSourceElement>;
- span: React.HTMLProps<HTMLSpanElement>;
- strong: React.HTMLProps<HTMLElement>;
- style: React.HTMLProps<HTMLStyleElement>;
- sub: React.HTMLProps<HTMLElement>;
- summary: React.HTMLProps<HTMLElement>;
- sup: React.HTMLProps<HTMLElement>;
- table: React.HTMLProps<HTMLTableElement>;
- tbody: React.HTMLProps<HTMLTableSectionElement>;
- td: React.HTMLProps<HTMLTableDataCellElement>;
- textarea: React.ChangeTargetHTMLProps<HTMLTextAreaElement>;
- tfoot: React.HTMLProps<HTMLTableSectionElement>;
- th: React.HTMLProps<HTMLTableHeaderCellElement>;
- thead: React.HTMLProps<HTMLTableSectionElement>;
- time: React.HTMLProps<HTMLElement>;
- title: React.HTMLProps<HTMLTitleElement>;
- tr: React.HTMLProps<HTMLTableRowElement>;
- track: React.HTMLProps<HTMLTrackElement>;
- u: React.HTMLProps<HTMLElement>;
- ul: React.HTMLProps<HTMLUListElement>;
- "var": React.HTMLProps<HTMLElement>;
- video: React.HTMLProps<HTMLVideoElement>;
- wbr: React.HTMLProps<HTMLElement>;
+ a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
+ abbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ address: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ area: React.DetailedHTMLProps<React.AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>;
+ article: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ aside: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ audio: React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
+ b: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ base: React.DetailedHTMLProps<React.BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>;
+ bdi: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ bdo: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ big: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ blockquote: React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
+ body: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
+ br: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
+ button: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
+ canvas: React.DetailedHTMLProps<React.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
+ caption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ cite: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ code: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ col: React.DetailedHTMLProps<React.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ colgroup: React.DetailedHTMLProps<React.ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ data: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ datalist: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
+ dd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ del: React.DetailedHTMLProps<React.DelHTMLAttributes<HTMLElement>, HTMLElement>;
+ details: React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLElement>, HTMLElement>;
+ dfn: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ dialog: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
+ dl: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>;
+ dt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ em: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ embed: React.DetailedHTMLProps<React.EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>;
+ fieldset: React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>;
+ figcaption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ figure: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ footer: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ form: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
+ h1: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h2: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h3: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h4: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h5: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h6: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ head: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>;
+ header: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ hgroup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ hr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
+ html: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
+ i: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ iframe: React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
+ img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
+ input: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
+ ins: React.DetailedHTMLProps<React.InsHTMLAttributes<HTMLModElement>, HTMLModElement>;
+ kbd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ keygen: React.DetailedHTMLProps<React.KeygenHTMLAttributes<HTMLElement>, HTMLElement>;
+ label: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
+ legend: React.DetailedHTMLProps<React.HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>;
+ li: React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
+ link: React.DetailedHTMLProps<React.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
+ main: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ map: React.DetailedHTMLProps<React.MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>;
+ mark: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ menu: React.DetailedHTMLProps<React.MenuHTMLAttributes<HTMLElement>, HTMLElement>;
+ menuitem: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ meta: React.DetailedHTMLProps<React.MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>;
+ meter: React.DetailedHTMLProps<React.MeterHTMLAttributes<HTMLElement>, HTMLElement>;
+ nav: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ noindex: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ noscript: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ object: React.DetailedHTMLProps<React.ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>;
+ ol: React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>;
+ optgroup: React.DetailedHTMLProps<React.OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>;
+ option: React.DetailedHTMLProps<React.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>;
+ output: React.DetailedHTMLProps<React.OutputHTMLAttributes<HTMLElement>, HTMLElement>;
+ p: React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
+ param: React.DetailedHTMLProps<React.ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>;
+ picture: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ pre: React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>;
+ progress: React.DetailedHTMLProps<React.ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>;
+ q: React.DetailedHTMLProps<React.QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>;
+ rp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ rt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
+ section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ select: React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
+ small: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ source: React.DetailedHTMLProps<React.SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>;
+ span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
+ strong: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ style: React.DetailedHTMLProps<React.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;
+ sub: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ summary: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ sup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ table: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
+ tbody: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ td: React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
+ textarea: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
+ tfoot: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ th: React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>;
+ thead: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ time: React.DetailedHTMLProps<React.TimeHTMLAttributes<HTMLElement>, HTMLElement>;
+ title: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>;
+ tr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
+ track: React.DetailedHTMLProps<React.TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>;
+ u: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ ul: React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
+ "var": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ video: React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
+ wbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
// SVG
svg: React.SVGProps<SVGSVGElement>;
animate: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateElement but is not in TypeScript's lib.dom.d.ts for now.
+ animateTransform: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateTransformElement but is not in TypeScript's lib.dom.d.ts for now.
circle: React.SVGProps<SVGCircleElement>;
clipPath: React.SVGProps<SVGClipPathElement>;
defs: React.SVGProps<SVGDefsElement>;
diff --git a/node_modules/@types/react/package.json b/node_modules/@types/react/package.json
index 94e824a8c..8855a0db3 100644
--- a/node_modules/@types/react/package.json
+++ b/node_modules/@types/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/react",
- "version": "15.0.24",
+ "version": "16.0.2",
"description": "TypeScript definitions for React",
"license": "MIT",
"contributors": [
@@ -35,6 +35,26 @@
{
"name": "Eric Anderson",
"url": "https://github.com/ericanderson"
+ },
+ {
+ "name": "Albert Kurniawan",
+ "url": "https://github.com/morcerf"
+ },
+ {
+ "name": "Tanguy Krotoff",
+ "url": "https://github.com/tkrotoff"
+ },
+ {
+ "name": "Dovydas Navickas",
+ "url": "https://github.com/DovydasNavickas"
+ },
+ {
+ "name": "Stéphane Goetz",
+ "url": "https://github.com/onigoetz"
+ },
+ {
+ "name": "Rich Seviora",
+ "url": "https://github.com/richseviora"
}
],
"main": "",
@@ -45,6 +65,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
- "typesPublisherContentHash": "0936312b5f6b9ce1bdddb7a1e3edd03cd7525018a652879040ef157afbd7df26",
- "typeScriptVersion": "2.2"
+ "typesPublisherContentHash": "c70d024b8a021e772e30a439c4b004bf4518745016c04056332c12a83ceaa8b0",
+ "typeScriptVersion": "2.3"
} \ No newline at end of file
diff --git a/node_modules/@types/shelljs/README.md b/node_modules/@types/shelljs/README.md
index dfe9b1047..797a3a396 100644
--- a/node_modules/@types/shelljs/README.md
+++ b/node_modules/@types/shelljs/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for ShellJS (http://shelljs.org).
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shelljs
Additional Details
- * Last updated: Fri, 28 Apr 2017 02:11:04 GMT
- * Dependencies: child_process, node
+ * Last updated: Thu, 03 Aug 2017 13:57:01 GMT
+ * Dependencies: child_process, glob, node
* Global values: none
# Credits
-These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>.
+These definitions were written by Niklas Mollenhauer <https://github.com/nikeee>, Vojtech Jasny <https://github.com/voy>.
diff --git a/node_modules/@types/shelljs/index.d.ts b/node_modules/@types/shelljs/index.d.ts
index c4ba1a0ed..7de67f7d1 100644
--- a/node_modules/@types/shelljs/index.d.ts
+++ b/node_modules/@types/shelljs/index.d.ts
@@ -1,11 +1,13 @@
// Type definitions for ShellJS 0.7
// Project: http://shelljs.org
// Definitions by: Niklas Mollenhauer <https://github.com/nikeee>
+// Vojtech Jasny <https://github.com/voy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///<reference types="node"/>
+/// <reference types="node"/>
import child = require("child_process");
+import glob = require("glob");
/**
* Changes to directory dir for the duration of the script
@@ -537,10 +539,28 @@ export interface ShellConfig {
fatal: boolean;
/**
+ * Will print each executed command to the screen. Default is true.
+ * @type {boolean}
+ */
+ verbose: boolean;
+
+ /**
+ * Passed to glob.sync() instead of the default options ({}).
+ * @type {glob.IOptions}
+ */
+ globOptions: glob.IOptions;
+
+ /**
* Absolute path of the Node binary. Default is null (inferred).
* @type {string|null}
*/
execPath: string | null;
+
+ /**
+ * Reset shell.config to the defaults.
+ * @returns {void}
+ */
+ reset(): void;
}
/**
diff --git a/node_modules/@types/shelljs/package.json b/node_modules/@types/shelljs/package.json
index decbf5fd2..91daccfee 100644
--- a/node_modules/@types/shelljs/package.json
+++ b/node_modules/@types/shelljs/package.json
@@ -1,12 +1,16 @@
{
"name": "@types/shelljs",
- "version": "0.7.1",
+ "version": "0.7.4",
"description": "TypeScript definitions for ShellJS",
"license": "MIT",
"contributors": [
{
"name": "Niklas Mollenhauer",
"url": "https://github.com/nikeee"
+ },
+ {
+ "name": "Vojtech Jasny",
+ "url": "https://github.com/voy"
}
],
"main": "",
@@ -16,9 +20,10 @@
},
"scripts": {},
"dependencies": {
+ "@types/glob": "*",
"@types/node": "*"
},
"peerDependencies": {},
- "typesPublisherContentHash": "2280a0712b9ef70bfd32d334c872b5eca114481fd48ea9ee61d78faa8f722f63",
+ "typesPublisherContentHash": "6052e869eb634ed11bad45adf045ab4e0f385519e1e4c2b8ad7d0f82cdc2ee3e",
"typeScriptVersion": "2.0"
} \ No newline at end of file