@types/lodash 4.14.105 → 4.14.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lodash/README.md +2 -2
- lodash/common/array.d.ts +40 -177
- lodash/common/collection.d.ts +90 -238
- lodash/common/common.d.ts +11 -3
- lodash/common/date.d.ts +1 -1
- lodash/common/function.d.ts +272 -166
- lodash/common/lang.d.ts +3 -4
- lodash/common/math.d.ts +13 -17
- lodash/common/number.d.ts +1 -5
- lodash/common/object.d.ts +93 -54
- lodash/common/seq.d.ts +2 -4
- lodash/common/string.d.ts +1 -1
- lodash/common/util.d.ts +18 -10
- lodash/fp/F.d.ts +2 -0
- lodash/fp/T.d.ts +2 -0
- lodash/fp/__.d.ts +3 -0
- lodash/fp/add.d.ts +2 -0
- lodash/fp/after.d.ts +2 -0
- lodash/fp/all.d.ts +2 -0
- lodash/fp/allPass.d.ts +2 -0
- lodash/fp/always.d.ts +2 -0
- lodash/fp/any.d.ts +2 -0
- lodash/fp/anyPass.d.ts +2 -0
- lodash/fp/apply.d.ts +2 -0
- lodash/fp/ary.d.ts +2 -0
- lodash/fp/assign.d.ts +2 -0
- lodash/fp/assignAll.d.ts +2 -0
- lodash/fp/assignAllWith.d.ts +2 -0
- lodash/fp/assignIn.d.ts +2 -0
- lodash/fp/assignInAll.d.ts +2 -0
- lodash/fp/assignInAllWith.d.ts +2 -0
- lodash/fp/assignInWith.d.ts +2 -0
- lodash/fp/assignWith.d.ts +2 -0
- lodash/fp/assoc.d.ts +2 -0
- lodash/fp/assocPath.d.ts +2 -0
- lodash/fp/at.d.ts +2 -0
- lodash/fp/attempt.d.ts +2 -0
- lodash/fp/before.d.ts +2 -0
- lodash/fp/bind.d.ts +2 -0
- lodash/fp/bindAll.d.ts +2 -0
- lodash/fp/bindKey.d.ts +2 -0
- lodash/fp/camelCase.d.ts +2 -0
- lodash/fp/capitalize.d.ts +2 -0
- lodash/fp/castArray.d.ts +2 -0
- lodash/fp/ceil.d.ts +2 -0
- lodash/fp/chunk.d.ts +2 -0
- lodash/fp/clamp.d.ts +2 -0
- lodash/fp/clone.d.ts +2 -0
- lodash/fp/cloneDeep.d.ts +2 -0
- lodash/fp/cloneDeepWith.d.ts +2 -0
- lodash/fp/cloneWith.d.ts +2 -0
- lodash/fp/compact.d.ts +2 -0
- lodash/fp/complement.d.ts +2 -0
- lodash/fp/compose.d.ts +2 -0
- lodash/fp/concat.d.ts +2 -0
- lodash/fp/cond.d.ts +2 -0
- lodash/fp/conforms.d.ts +2 -0
- lodash/fp/conformsTo.d.ts +2 -0
- lodash/fp/constant.d.ts +2 -0
- lodash/fp/contains.d.ts +2 -0
- lodash/fp/convert.d.ts +15 -0
- lodash/fp/countBy.d.ts +2 -0
- lodash/fp/create.d.ts +2 -0
- lodash/fp/curry.d.ts +2 -0
- lodash/fp/curryN.d.ts +2 -0
- lodash/fp/curryRight.d.ts +2 -0
- lodash/fp/curryRightN.d.ts +2 -0
- lodash/fp/debounce.d.ts +2 -0
- lodash/fp/deburr.d.ts +2 -0
- lodash/fp/defaultTo.d.ts +2 -0
- lodash/fp/defaults.d.ts +2 -0
- lodash/fp/defaultsAll.d.ts +2 -0
- lodash/fp/defaultsDeep.d.ts +2 -0
- lodash/fp/defaultsDeepAll.d.ts +2 -0
- lodash/fp/defer.d.ts +2 -0
- lodash/fp/delay.d.ts +2 -0
- lodash/fp/difference.d.ts +2 -0
- lodash/fp/differenceBy.d.ts +2 -0
- lodash/fp/differenceWith.d.ts +2 -0
- lodash/fp/dissoc.d.ts +2 -0
- lodash/fp/dissocPath.d.ts +2 -0
- lodash/fp/divide.d.ts +2 -0
- lodash/fp/drop.d.ts +2 -0
- lodash/fp/dropLast.d.ts +2 -0
- lodash/fp/dropLastWhile.d.ts +2 -0
- lodash/fp/dropRight.d.ts +2 -0
- lodash/fp/dropRightWhile.d.ts +2 -0
- lodash/fp/dropWhile.d.ts +2 -0
- lodash/fp/each.d.ts +2 -0
- lodash/fp/eachRight.d.ts +2 -0
- lodash/fp/endsWith.d.ts +2 -0
- lodash/fp/entries.d.ts +2 -0
- lodash/fp/entriesIn.d.ts +2 -0
- lodash/fp/eq.d.ts +2 -0
- lodash/fp/equals.d.ts +2 -0
- lodash/fp/escape.d.ts +2 -0
- lodash/fp/escapeRegExp.d.ts +2 -0
- lodash/fp/every.d.ts +2 -0
- lodash/fp/extend.d.ts +2 -0
- lodash/fp/extendAll.d.ts +2 -0
- lodash/fp/extendAllWith.d.ts +2 -0
- lodash/fp/extendWith.d.ts +2 -0
- lodash/fp/fill.d.ts +2 -0
- lodash/fp/filter.d.ts +2 -0
- lodash/fp/find.d.ts +2 -0
- lodash/fp/findFrom.d.ts +2 -0
- lodash/fp/findIndex.d.ts +2 -0
- lodash/fp/findIndexFrom.d.ts +2 -0
- lodash/fp/findKey.d.ts +2 -0
- lodash/fp/findLast.d.ts +2 -0
- lodash/fp/findLastFrom.d.ts +2 -0
- lodash/fp/findLastIndex.d.ts +2 -0
- lodash/fp/findLastIndexFrom.d.ts +2 -0
- lodash/fp/findLastKey.d.ts +2 -0
- lodash/fp/first.d.ts +2 -0
- lodash/fp/flatMap.d.ts +2 -0
- lodash/fp/flatMapDeep.d.ts +2 -0
- lodash/fp/flatMapDepth.d.ts +2 -0
- lodash/fp/flatten.d.ts +2 -0
- lodash/fp/flattenDeep.d.ts +2 -0
- lodash/fp/flattenDepth.d.ts +2 -0
- lodash/fp/flip.d.ts +2 -0
- lodash/fp/floor.d.ts +2 -0
- lodash/fp/flow.d.ts +2 -0
- lodash/fp/flowRight.d.ts +2 -0
- lodash/fp/forEach.d.ts +2 -0
- lodash/fp/forEachRight.d.ts +2 -0
- lodash/fp/forIn.d.ts +2 -0
- lodash/fp/forInRight.d.ts +2 -0
- lodash/fp/forOwn.d.ts +2 -0
- lodash/fp/forOwnRight.d.ts +2 -0
- lodash/fp/fromPairs.d.ts +2 -0
- lodash/fp/functions.d.ts +2 -0
- lodash/fp/functionsIn.d.ts +2 -0
- lodash/fp/get.d.ts +2 -0
- lodash/fp/getOr.d.ts +2 -0
- lodash/fp/groupBy.d.ts +2 -0
- lodash/fp/gt.d.ts +2 -0
- lodash/fp/gte.d.ts +2 -0
- lodash/fp/has.d.ts +2 -0
- lodash/fp/hasIn.d.ts +2 -0
- lodash/fp/head.d.ts +2 -0
- lodash/fp/identical.d.ts +2 -0
- lodash/fp/identity.d.ts +2 -0
- lodash/fp/inRange.d.ts +2 -0
- lodash/fp/includes.d.ts +2 -0
- lodash/fp/includesFrom.d.ts +2 -0
- lodash/fp/indexBy.d.ts +2 -0
- lodash/fp/indexOf.d.ts +2 -0
- lodash/fp/indexOfFrom.d.ts +2 -0
- lodash/fp/init.d.ts +2 -0
- lodash/fp/initial.d.ts +2 -0
- lodash/fp/intersection.d.ts +2 -0
- lodash/fp/intersectionBy.d.ts +2 -0
- lodash/fp/intersectionWith.d.ts +2 -0
- lodash/fp/invert.d.ts +2 -0
- lodash/fp/invertBy.d.ts +2 -0
- lodash/fp/invertObj.d.ts +2 -0
- lodash/fp/invoke.d.ts +2 -0
- lodash/fp/invokeArgs.d.ts +2 -0
- lodash/fp/invokeArgsMap.d.ts +2 -0
- lodash/fp/invokeMap.d.ts +2 -0
- lodash/fp/isArguments.d.ts +2 -0
- lodash/fp/isArray.d.ts +2 -0
- lodash/fp/isArrayBuffer.d.ts +2 -0
- lodash/fp/isArrayLike.d.ts +2 -0
- lodash/fp/isArrayLikeObject.d.ts +2 -0
- lodash/fp/isBoolean.d.ts +2 -0
- lodash/fp/isBuffer.d.ts +2 -0
- lodash/fp/isDate.d.ts +2 -0
- lodash/fp/isElement.d.ts +2 -0
- lodash/fp/isEmpty.d.ts +2 -0
- lodash/fp/isEqual.d.ts +2 -0
- lodash/fp/isEqualWith.d.ts +2 -0
- lodash/fp/isError.d.ts +2 -0
- lodash/fp/isFinite.d.ts +2 -0
- lodash/fp/isFunction.d.ts +2 -0
- lodash/fp/isInteger.d.ts +2 -0
- lodash/fp/isLength.d.ts +2 -0
- lodash/fp/isMap.d.ts +2 -0
- lodash/fp/isMatch.d.ts +2 -0
- lodash/fp/isMatchWith.d.ts +2 -0
- lodash/fp/isNaN.d.ts +2 -0
- lodash/fp/isNative.d.ts +2 -0
- lodash/fp/isNil.d.ts +2 -0
- lodash/fp/isNull.d.ts +2 -0
- lodash/fp/isNumber.d.ts +2 -0
- lodash/fp/isObject.d.ts +2 -0
- lodash/fp/isObjectLike.d.ts +2 -0
- lodash/fp/isPlainObject.d.ts +2 -0
- lodash/fp/isRegExp.d.ts +2 -0
- lodash/fp/isSafeInteger.d.ts +2 -0
- lodash/fp/isSet.d.ts +2 -0
- lodash/fp/isString.d.ts +2 -0
- lodash/fp/isSymbol.d.ts +2 -0
- lodash/fp/isTypedArray.d.ts +2 -0
- lodash/fp/isUndefined.d.ts +2 -0
- lodash/fp/isWeakMap.d.ts +2 -0
- lodash/fp/isWeakSet.d.ts +2 -0
- lodash/fp/iteratee.d.ts +2 -0
- lodash/fp/join.d.ts +2 -0
- lodash/fp/juxt.d.ts +2 -0
- lodash/fp/kebabCase.d.ts +2 -0
- lodash/fp/keyBy.d.ts +2 -0
- lodash/fp/keys.d.ts +2 -0
- lodash/fp/keysIn.d.ts +2 -0
- lodash/fp/last.d.ts +2 -0
- lodash/fp/lastIndexOf.d.ts +2 -0
- lodash/fp/lastIndexOfFrom.d.ts +2 -0
- lodash/fp/lowerCase.d.ts +2 -0
- lodash/fp/lowerFirst.d.ts +2 -0
- lodash/fp/lt.d.ts +2 -0
- lodash/fp/lte.d.ts +2 -0
- lodash/fp/map.d.ts +2 -0
- lodash/fp/mapKeys.d.ts +2 -0
- lodash/fp/mapValues.d.ts +2 -0
- lodash/fp/matches.d.ts +2 -0
- lodash/fp/matchesProperty.d.ts +2 -0
- lodash/fp/max.d.ts +2 -0
- lodash/fp/maxBy.d.ts +2 -0
- lodash/fp/mean.d.ts +2 -0
- lodash/fp/meanBy.d.ts +2 -0
- lodash/fp/memoize.d.ts +2 -0
- lodash/fp/merge.d.ts +2 -0
- lodash/fp/mergeAll.d.ts +2 -0
- lodash/fp/mergeAllWith.d.ts +2 -0
- lodash/fp/mergeWith.d.ts +2 -0
- lodash/fp/method.d.ts +2 -0
- lodash/fp/methodOf.d.ts +2 -0
- lodash/fp/min.d.ts +2 -0
- lodash/fp/minBy.d.ts +2 -0
- lodash/fp/multiply.d.ts +2 -0
- lodash/fp/nAry.d.ts +2 -0
- lodash/fp/negate.d.ts +2 -0
- lodash/fp/noConflict.d.ts +2 -0
- lodash/fp/noop.d.ts +2 -0
- lodash/fp/now.d.ts +2 -0
- lodash/fp/nth.d.ts +2 -0
- lodash/fp/nthArg.d.ts +2 -0
- lodash/fp/omit.d.ts +2 -0
- lodash/fp/omitAll.d.ts +2 -0
- lodash/fp/omitBy.d.ts +2 -0
- lodash/fp/once.d.ts +2 -0
- lodash/fp/orderBy.d.ts +2 -0
- lodash/fp/over.d.ts +2 -0
- lodash/fp/overArgs.d.ts +2 -0
- lodash/fp/overEvery.d.ts +2 -0
- lodash/fp/overSome.d.ts +2 -0
- lodash/fp/pad.d.ts +2 -0
- lodash/fp/padChars.d.ts +2 -0
- lodash/fp/padCharsEnd.d.ts +2 -0
- lodash/fp/padCharsStart.d.ts +2 -0
- lodash/fp/padEnd.d.ts +2 -0
- lodash/fp/padStart.d.ts +2 -0
- lodash/fp/parseInt.d.ts +2 -0
- lodash/fp/partial.d.ts +2 -0
- lodash/fp/partialRight.d.ts +2 -0
- lodash/fp/partition.d.ts +2 -0
- lodash/fp/path.d.ts +2 -0
- lodash/fp/pathEq.d.ts +2 -0
- lodash/fp/pathOr.d.ts +2 -0
- lodash/fp/paths.d.ts +2 -0
- lodash/fp/pick.d.ts +2 -0
- lodash/fp/pickAll.d.ts +2 -0
- lodash/fp/pickBy.d.ts +2 -0
- lodash/fp/pipe.d.ts +2 -0
- lodash/fp/placeholder.d.ts +3 -0
- lodash/fp/pluck.d.ts +2 -0
- lodash/fp/prop.d.ts +2 -0
- lodash/fp/propEq.d.ts +2 -0
- lodash/fp/propOr.d.ts +2 -0
- lodash/fp/property.d.ts +2 -0
- lodash/fp/propertyOf.d.ts +2 -0
- lodash/fp/props.d.ts +2 -0
- lodash/fp/pull.d.ts +2 -0
- lodash/fp/pullAll.d.ts +2 -0
- lodash/fp/pullAllBy.d.ts +2 -0
- lodash/fp/pullAllWith.d.ts +2 -0
- lodash/fp/pullAt.d.ts +2 -0
- lodash/fp/random.d.ts +2 -0
- lodash/fp/range.d.ts +2 -0
- lodash/fp/rangeRight.d.ts +2 -0
- lodash/fp/rangeStep.d.ts +2 -0
- lodash/fp/rangeStepRight.d.ts +2 -0
- lodash/fp/rearg.d.ts +2 -0
- lodash/fp/reduce.d.ts +2 -0
- lodash/fp/reduceRight.d.ts +2 -0
- lodash/fp/reject.d.ts +2 -0
- lodash/fp/remove.d.ts +2 -0
- lodash/fp/repeat.d.ts +2 -0
- lodash/fp/replace.d.ts +2 -0
- lodash/fp/rest.d.ts +2 -0
- lodash/fp/restFrom.d.ts +2 -0
- lodash/fp/result.d.ts +2 -0
- lodash/fp/reverse.d.ts +2 -0
- lodash/fp/round.d.ts +2 -0
- lodash/fp/runInContext.d.ts +2 -0
- lodash/fp/sample.d.ts +2 -0
- lodash/fp/sampleSize.d.ts +2 -0
- lodash/fp/set.d.ts +2 -0
- lodash/fp/setWith.d.ts +2 -0
- lodash/fp/shuffle.d.ts +2 -0
- lodash/fp/size.d.ts +2 -0
- lodash/fp/slice.d.ts +2 -0
- lodash/fp/snakeCase.d.ts +2 -0
- lodash/fp/some.d.ts +2 -0
- lodash/fp/sortBy.d.ts +2 -0
- lodash/fp/sortedIndex.d.ts +2 -0
- lodash/fp/sortedIndexBy.d.ts +2 -0
- lodash/fp/sortedIndexOf.d.ts +2 -0
- lodash/fp/sortedLastIndex.d.ts +2 -0
- lodash/fp/sortedLastIndexBy.d.ts +2 -0
- lodash/fp/sortedLastIndexOf.d.ts +2 -0
- lodash/fp/sortedUniq.d.ts +2 -0
- lodash/fp/sortedUniqBy.d.ts +2 -0
- lodash/fp/split.d.ts +2 -0
- lodash/fp/spread.d.ts +2 -0
- lodash/fp/spreadFrom.d.ts +2 -0
- lodash/fp/startCase.d.ts +2 -0
- lodash/fp/startsWith.d.ts +2 -0
- lodash/fp/stubArray.d.ts +2 -0
- lodash/fp/stubFalse.d.ts +2 -0
- lodash/fp/stubObject.d.ts +2 -0
- lodash/fp/stubString.d.ts +2 -0
- lodash/fp/stubTrue.d.ts +2 -0
- lodash/fp/subtract.d.ts +2 -0
- lodash/fp/sum.d.ts +2 -0
- lodash/fp/sumBy.d.ts +2 -0
- lodash/fp/symmetricDifference.d.ts +2 -0
- lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- lodash/fp/tail.d.ts +2 -0
- lodash/fp/take.d.ts +2 -0
- lodash/fp/takeLast.d.ts +2 -0
- lodash/fp/takeLastWhile.d.ts +2 -0
- lodash/fp/takeRight.d.ts +2 -0
- lodash/fp/takeRightWhile.d.ts +2 -0
- lodash/fp/takeWhile.d.ts +2 -0
- lodash/fp/tap.d.ts +2 -0
- lodash/fp/template.d.ts +2 -0
- lodash/fp/throttle.d.ts +2 -0
- lodash/fp/thru.d.ts +2 -0
- lodash/fp/times.d.ts +2 -0
- lodash/fp/toArray.d.ts +2 -0
- lodash/fp/toFinite.d.ts +2 -0
- lodash/fp/toInteger.d.ts +2 -0
- lodash/fp/toLength.d.ts +2 -0
- lodash/fp/toLower.d.ts +2 -0
- lodash/fp/toNumber.d.ts +2 -0
- lodash/fp/toPairs.d.ts +2 -0
- lodash/fp/toPairsIn.d.ts +2 -0
- lodash/fp/toPath.d.ts +2 -0
- lodash/fp/toPlainObject.d.ts +2 -0
- lodash/fp/toSafeInteger.d.ts +2 -0
- lodash/fp/toString.d.ts +2 -0
- lodash/fp/toUpper.d.ts +2 -0
- lodash/fp/transform.d.ts +2 -0
- lodash/fp/trim.d.ts +2 -0
- lodash/fp/trimChars.d.ts +2 -0
- lodash/fp/trimCharsEnd.d.ts +2 -0
- lodash/fp/trimCharsStart.d.ts +2 -0
- lodash/fp/trimEnd.d.ts +2 -0
- lodash/fp/trimStart.d.ts +2 -0
- lodash/fp/truncate.d.ts +2 -0
- lodash/fp/unapply.d.ts +2 -0
- lodash/fp/unary.d.ts +2 -0
- lodash/fp/unescape.d.ts +2 -0
- lodash/fp/union.d.ts +2 -0
- lodash/fp/unionBy.d.ts +2 -0
- lodash/fp/unionWith.d.ts +2 -0
- lodash/fp/uniq.d.ts +2 -0
- lodash/fp/uniqBy.d.ts +2 -0
- lodash/fp/uniqWith.d.ts +2 -0
- lodash/fp/uniqueId.d.ts +2 -0
- lodash/fp/unnest.d.ts +2 -0
- lodash/fp/unset.d.ts +2 -0
- lodash/fp/unzip.d.ts +2 -0
- lodash/fp/unzipWith.d.ts +2 -0
- lodash/fp/update.d.ts +2 -0
- lodash/fp/updateWith.d.ts +2 -0
- lodash/fp/upperCase.d.ts +2 -0
- lodash/fp/upperFirst.d.ts +2 -0
- lodash/fp/useWith.d.ts +2 -0
- lodash/fp/values.d.ts +2 -0
- lodash/fp/valuesIn.d.ts +2 -0
- lodash/fp/where.d.ts +2 -0
- lodash/fp/whereEq.d.ts +2 -0
- lodash/fp/without.d.ts +2 -0
- lodash/fp/words.d.ts +2 -0
- lodash/fp/wrap.d.ts +2 -0
- lodash/fp/xor.d.ts +2 -0
- lodash/fp/xorBy.d.ts +2 -0
- lodash/fp/xorWith.d.ts +2 -0
- lodash/fp/zip.d.ts +2 -0
- lodash/fp/zipAll.d.ts +2 -0
- lodash/fp/zipObj.d.ts +2 -0
- lodash/fp/zipObject.d.ts +2 -0
- lodash/fp/zipObjectDeep.d.ts +2 -0
- lodash/fp/zipWith.d.ts +2 -0
- lodash/fp.d.ts +4765 -0
- lodash/package.json +3 -3
lodash/common/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _ = require("../index");
|
|
2
|
+
// tslint:disable-next-line:strict-export-declare-modifiers
|
|
2
3
|
type GlobalPartial<T> = Partial<T>;
|
|
3
4
|
declare module "../index" {
|
|
4
5
|
type PartialObject<T> = GlobalPartial<T>;
|
|
@@ -86,7 +87,6 @@ declare module "../index" {
|
|
|
86
87
|
templateSettings: TemplateSettings;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
|
|
90
90
|
/**
|
|
91
91
|
* By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
|
|
92
92
|
* (ERB). Change the following template settings to use alternative delimiters.
|
|
@@ -182,7 +182,7 @@ declare module "../index" {
|
|
|
182
182
|
type ArrayIterator<T, TResult> = (value: T, index: number, collection: T[]) => TResult;
|
|
183
183
|
type ListIterator<T, TResult> = (value: T, index: number, collection: List<T>) => TResult;
|
|
184
184
|
type ListIteratee<T> = ListIterator<T, NotVoid> | string | [string, any] | PartialDeep<T>;
|
|
185
|
-
type ListIterateeCustom<T, TResult> = ListIterator<T, TResult> | string |
|
|
185
|
+
type ListIterateeCustom<T, TResult> = ListIterator<T, TResult> | string | [string, any] | PartialDeep<T>;
|
|
186
186
|
type ListIteratorTypeGuard<T, S extends T> = (value: T, index: number, collection: List<T>) => value is S;
|
|
187
187
|
|
|
188
188
|
// Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type.
|
|
@@ -193,17 +193,23 @@ declare module "../index" {
|
|
|
193
193
|
|
|
194
194
|
type StringIterator<TResult> = (char: string, index: number, string: string) => TResult;
|
|
195
195
|
|
|
196
|
+
/** @deprecated Use MemoVoidArrayIterator or MemoVoidDictionaryIterator instead. */
|
|
196
197
|
type MemoVoidIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => void;
|
|
197
198
|
|
|
198
|
-
/** @deprecated Use MemoListIterator or MemoObjectIterator instead.
|
|
199
|
+
/** @deprecated Use MemoListIterator or MemoObjectIterator instead. */
|
|
199
200
|
type MemoIterator<T, TResult> = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => TResult;
|
|
200
201
|
type MemoListIterator<T, TResult, TList> = (prev: TResult, curr: T, index: number, list: TList) => TResult;
|
|
201
202
|
type MemoObjectIterator<T, TResult, TList> = (prev: TResult, curr: T, key: string, list: TList) => TResult;
|
|
203
|
+
type MemoIteratorCapped<T, TResult> = (prev: TResult, curr: T) => TResult;
|
|
204
|
+
type MemoIteratorCappedRight<T, TResult> = (curr: T, prev: TResult) => TResult;
|
|
202
205
|
|
|
203
206
|
type MemoVoidArrayIterator<T, TResult> = (acc: TResult, curr: T, index: number, arr: T[]) => void;
|
|
204
207
|
type MemoVoidDictionaryIterator<T, TResult> = (acc: TResult, curr: T, key: string, dict: Dictionary<T>) => void;
|
|
208
|
+
type MemoVoidIteratorCapped<T, TResult> = (acc: TResult, curr: T) => void;
|
|
205
209
|
|
|
206
210
|
type ValueIteratee<T> = ((value: T) => NotVoid) | string | [string, any] | PartialDeep<T>;
|
|
211
|
+
type ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | string | [string, any] | PartialDeep<T>;
|
|
212
|
+
type ValueIteratorTypeGuard<T, S extends T> = (value: T) => value is S;
|
|
207
213
|
type ValueKeyIteratee<T> = ((value: T, key: string) => NotVoid) | string | [string, any] | PartialDeep<T>;
|
|
208
214
|
type Comparator<T> = (a: T, b: T) => boolean;
|
|
209
215
|
type Comparator2<T1, T2> = (a: T1, b: T2) => boolean;
|
|
@@ -211,6 +217,8 @@ declare module "../index" {
|
|
|
211
217
|
type PropertyName = string | number | symbol;
|
|
212
218
|
type PropertyPath = Many<PropertyName>;
|
|
213
219
|
|
|
220
|
+
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never })[keyof T]>;
|
|
221
|
+
|
|
214
222
|
/** Common interface between Arrays and jQuery objects */
|
|
215
223
|
type List<T> = ArrayLike<T>;
|
|
216
224
|
|
lodash/common/date.d.ts
CHANGED