cypress 7.1.0 → 7.2.0
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.
- package/package.json +1 -1
- package/types/cypress.d.ts +28 -1
- package/types/lodash/common/array.d.ts +519 -2105
- package/types/lodash/common/collection.d.ts +912 -1569
- package/types/lodash/common/common.d.ts +71 -61
- package/types/lodash/common/date.d.ts +2 -6
- package/types/lodash/common/function.d.ts +808 -867
- package/types/lodash/common/lang.d.ts +239 -483
- package/types/lodash/common/math.d.ts +64 -191
- package/types/lodash/common/number.d.ts +39 -86
- package/types/lodash/common/object.d.ts +675 -2265
- package/types/lodash/common/seq.d.ts +101 -87
- package/types/lodash/common/string.d.ts +81 -352
- package/types/lodash/common/util.d.ts +337 -639
- package/types/lodash/fp.d.ts +478 -532
- package/types/lodash/index.d.ts +0 -1
- package/types/net-stubbing.ts +9 -9
- package/types/sinon/index.d.ts +218 -227
- package/types/sinon/ts3.1/index.d.ts +1789 -0
- package/types/lodash/ts3.1/add.d.ts +0 -2
- package/types/lodash/ts3.1/after.d.ts +0 -2
- package/types/lodash/ts3.1/ary.d.ts +0 -2
- package/types/lodash/ts3.1/assign.d.ts +0 -2
- package/types/lodash/ts3.1/assignIn.d.ts +0 -2
- package/types/lodash/ts3.1/assignInWith.d.ts +0 -2
- package/types/lodash/ts3.1/assignWith.d.ts +0 -2
- package/types/lodash/ts3.1/at.d.ts +0 -2
- package/types/lodash/ts3.1/attempt.d.ts +0 -2
- package/types/lodash/ts3.1/before.d.ts +0 -2
- package/types/lodash/ts3.1/bind.d.ts +0 -2
- package/types/lodash/ts3.1/bindAll.d.ts +0 -2
- package/types/lodash/ts3.1/bindKey.d.ts +0 -2
- package/types/lodash/ts3.1/camelCase.d.ts +0 -2
- package/types/lodash/ts3.1/capitalize.d.ts +0 -2
- package/types/lodash/ts3.1/castArray.d.ts +0 -2
- package/types/lodash/ts3.1/ceil.d.ts +0 -2
- package/types/lodash/ts3.1/chain.d.ts +0 -2
- package/types/lodash/ts3.1/chunk.d.ts +0 -2
- package/types/lodash/ts3.1/clamp.d.ts +0 -2
- package/types/lodash/ts3.1/clone.d.ts +0 -2
- package/types/lodash/ts3.1/cloneDeep.d.ts +0 -2
- package/types/lodash/ts3.1/cloneDeepWith.d.ts +0 -2
- package/types/lodash/ts3.1/cloneWith.d.ts +0 -2
- package/types/lodash/ts3.1/common/array.d.ts +0 -2127
- package/types/lodash/ts3.1/common/collection.d.ts +0 -1930
- package/types/lodash/ts3.1/common/common.d.ts +0 -284
- package/types/lodash/ts3.1/common/date.d.ts +0 -23
- package/types/lodash/ts3.1/common/function.d.ts +0 -1392
- package/types/lodash/ts3.1/common/lang.d.ts +0 -1694
- package/types/lodash/ts3.1/common/math.d.ts +0 -405
- package/types/lodash/ts3.1/common/number.d.ts +0 -131
- package/types/lodash/ts3.1/common/object.d.ts +0 -2507
- package/types/lodash/ts3.1/common/seq.d.ts +0 -210
- package/types/lodash/ts3.1/common/string.d.ts +0 -788
- package/types/lodash/ts3.1/common/util.d.ts +0 -1219
- package/types/lodash/ts3.1/compact.d.ts +0 -2
- package/types/lodash/ts3.1/concat.d.ts +0 -2
- package/types/lodash/ts3.1/cond.d.ts +0 -2
- package/types/lodash/ts3.1/conformsTo.d.ts +0 -2
- package/types/lodash/ts3.1/constant.d.ts +0 -2
- package/types/lodash/ts3.1/countBy.d.ts +0 -2
- package/types/lodash/ts3.1/create.d.ts +0 -2
- package/types/lodash/ts3.1/curry.d.ts +0 -2
- package/types/lodash/ts3.1/curryRight.d.ts +0 -2
- package/types/lodash/ts3.1/debounce.d.ts +0 -2
- package/types/lodash/ts3.1/deburr.d.ts +0 -2
- package/types/lodash/ts3.1/defaultTo.d.ts +0 -2
- package/types/lodash/ts3.1/defaults.d.ts +0 -2
- package/types/lodash/ts3.1/defaultsDeep.d.ts +0 -2
- package/types/lodash/ts3.1/defer.d.ts +0 -2
- package/types/lodash/ts3.1/delay.d.ts +0 -2
- package/types/lodash/ts3.1/difference.d.ts +0 -2
- package/types/lodash/ts3.1/differenceBy.d.ts +0 -2
- package/types/lodash/ts3.1/differenceWith.d.ts +0 -2
- package/types/lodash/ts3.1/divide.d.ts +0 -2
- package/types/lodash/ts3.1/drop.d.ts +0 -2
- package/types/lodash/ts3.1/dropRight.d.ts +0 -2
- package/types/lodash/ts3.1/dropRightWhile.d.ts +0 -2
- package/types/lodash/ts3.1/dropWhile.d.ts +0 -2
- package/types/lodash/ts3.1/each.d.ts +0 -2
- package/types/lodash/ts3.1/eachRight.d.ts +0 -2
- package/types/lodash/ts3.1/endsWith.d.ts +0 -2
- package/types/lodash/ts3.1/entries.d.ts +0 -2
- package/types/lodash/ts3.1/entriesIn.d.ts +0 -2
- package/types/lodash/ts3.1/eq.d.ts +0 -2
- package/types/lodash/ts3.1/escape.d.ts +0 -2
- package/types/lodash/ts3.1/escapeRegExp.d.ts +0 -2
- package/types/lodash/ts3.1/every.d.ts +0 -2
- package/types/lodash/ts3.1/extend.d.ts +0 -2
- package/types/lodash/ts3.1/extendWith.d.ts +0 -2
- package/types/lodash/ts3.1/fill.d.ts +0 -2
- package/types/lodash/ts3.1/filter.d.ts +0 -2
- package/types/lodash/ts3.1/find.d.ts +0 -2
- package/types/lodash/ts3.1/findIndex.d.ts +0 -2
- package/types/lodash/ts3.1/findKey.d.ts +0 -2
- package/types/lodash/ts3.1/findLast.d.ts +0 -2
- package/types/lodash/ts3.1/findLastIndex.d.ts +0 -2
- package/types/lodash/ts3.1/findLastKey.d.ts +0 -2
- package/types/lodash/ts3.1/first.d.ts +0 -2
- package/types/lodash/ts3.1/flatMap.d.ts +0 -2
- package/types/lodash/ts3.1/flatMapDeep.d.ts +0 -2
- package/types/lodash/ts3.1/flatMapDepth.d.ts +0 -2
- package/types/lodash/ts3.1/flatten.d.ts +0 -2
- package/types/lodash/ts3.1/flattenDeep.d.ts +0 -2
- package/types/lodash/ts3.1/flattenDepth.d.ts +0 -2
- package/types/lodash/ts3.1/flip.d.ts +0 -2
- package/types/lodash/ts3.1/floor.d.ts +0 -2
- package/types/lodash/ts3.1/flow.d.ts +0 -2
- package/types/lodash/ts3.1/flowRight.d.ts +0 -2
- package/types/lodash/ts3.1/forEach.d.ts +0 -2
- package/types/lodash/ts3.1/forEachRight.d.ts +0 -2
- package/types/lodash/ts3.1/forIn.d.ts +0 -2
- package/types/lodash/ts3.1/forInRight.d.ts +0 -2
- package/types/lodash/ts3.1/forOwn.d.ts +0 -2
- package/types/lodash/ts3.1/forOwnRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/F.d.ts +0 -2
- package/types/lodash/ts3.1/fp/T.d.ts +0 -2
- package/types/lodash/ts3.1/fp/__.d.ts +0 -3
- package/types/lodash/ts3.1/fp/add.d.ts +0 -2
- package/types/lodash/ts3.1/fp/after.d.ts +0 -2
- package/types/lodash/ts3.1/fp/all.d.ts +0 -2
- package/types/lodash/ts3.1/fp/allPass.d.ts +0 -2
- package/types/lodash/ts3.1/fp/always.d.ts +0 -2
- package/types/lodash/ts3.1/fp/any.d.ts +0 -2
- package/types/lodash/ts3.1/fp/anyPass.d.ts +0 -2
- package/types/lodash/ts3.1/fp/apply.d.ts +0 -2
- package/types/lodash/ts3.1/fp/ary.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assign.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignInAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignInAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignInWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assignWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assoc.d.ts +0 -2
- package/types/lodash/ts3.1/fp/assocPath.d.ts +0 -2
- package/types/lodash/ts3.1/fp/at.d.ts +0 -2
- package/types/lodash/ts3.1/fp/attempt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/before.d.ts +0 -2
- package/types/lodash/ts3.1/fp/bind.d.ts +0 -2
- package/types/lodash/ts3.1/fp/bindAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/bindKey.d.ts +0 -2
- package/types/lodash/ts3.1/fp/camelCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/capitalize.d.ts +0 -2
- package/types/lodash/ts3.1/fp/castArray.d.ts +0 -2
- package/types/lodash/ts3.1/fp/ceil.d.ts +0 -2
- package/types/lodash/ts3.1/fp/chunk.d.ts +0 -2
- package/types/lodash/ts3.1/fp/clamp.d.ts +0 -2
- package/types/lodash/ts3.1/fp/clone.d.ts +0 -2
- package/types/lodash/ts3.1/fp/cloneDeep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/cloneDeepWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/cloneWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/compact.d.ts +0 -2
- package/types/lodash/ts3.1/fp/complement.d.ts +0 -2
- package/types/lodash/ts3.1/fp/compose.d.ts +0 -2
- package/types/lodash/ts3.1/fp/concat.d.ts +0 -2
- package/types/lodash/ts3.1/fp/cond.d.ts +0 -2
- package/types/lodash/ts3.1/fp/conforms.d.ts +0 -2
- package/types/lodash/ts3.1/fp/conformsTo.d.ts +0 -2
- package/types/lodash/ts3.1/fp/constant.d.ts +0 -2
- package/types/lodash/ts3.1/fp/contains.d.ts +0 -2
- package/types/lodash/ts3.1/fp/convert.d.ts +0 -15
- package/types/lodash/ts3.1/fp/countBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/create.d.ts +0 -2
- package/types/lodash/ts3.1/fp/curry.d.ts +0 -2
- package/types/lodash/ts3.1/fp/curryN.d.ts +0 -2
- package/types/lodash/ts3.1/fp/curryRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/curryRightN.d.ts +0 -2
- package/types/lodash/ts3.1/fp/debounce.d.ts +0 -2
- package/types/lodash/ts3.1/fp/deburr.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defaultTo.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defaults.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defaultsAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defaultsDeep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defaultsDeepAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/defer.d.ts +0 -2
- package/types/lodash/ts3.1/fp/delay.d.ts +0 -2
- package/types/lodash/ts3.1/fp/difference.d.ts +0 -2
- package/types/lodash/ts3.1/fp/differenceBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/differenceWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dissoc.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dissocPath.d.ts +0 -2
- package/types/lodash/ts3.1/fp/divide.d.ts +0 -2
- package/types/lodash/ts3.1/fp/drop.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dropLast.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dropLastWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dropRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dropRightWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/dropWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/each.d.ts +0 -2
- package/types/lodash/ts3.1/fp/eachRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/endsWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/entries.d.ts +0 -2
- package/types/lodash/ts3.1/fp/entriesIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/eq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/equals.d.ts +0 -2
- package/types/lodash/ts3.1/fp/escape.d.ts +0 -2
- package/types/lodash/ts3.1/fp/escapeRegExp.d.ts +0 -2
- package/types/lodash/ts3.1/fp/every.d.ts +0 -2
- package/types/lodash/ts3.1/fp/extend.d.ts +0 -2
- package/types/lodash/ts3.1/fp/extendAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/extendAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/extendWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/fill.d.ts +0 -2
- package/types/lodash/ts3.1/fp/filter.d.ts +0 -2
- package/types/lodash/ts3.1/fp/find.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findIndex.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findIndexFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findKey.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findLast.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findLastFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findLastIndex.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findLastIndexFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/findLastKey.d.ts +0 -2
- package/types/lodash/ts3.1/fp/first.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flatMap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flatMapDeep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flatMapDepth.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flatten.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flattenDeep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flattenDepth.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flip.d.ts +0 -2
- package/types/lodash/ts3.1/fp/floor.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flow.d.ts +0 -2
- package/types/lodash/ts3.1/fp/flowRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forEach.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forEachRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forInRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forOwn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/forOwnRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/fromPairs.d.ts +0 -2
- package/types/lodash/ts3.1/fp/functions.d.ts +0 -2
- package/types/lodash/ts3.1/fp/functionsIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/get.d.ts +0 -2
- package/types/lodash/ts3.1/fp/getOr.d.ts +0 -2
- package/types/lodash/ts3.1/fp/groupBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/gt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/gte.d.ts +0 -2
- package/types/lodash/ts3.1/fp/has.d.ts +0 -2
- package/types/lodash/ts3.1/fp/hasIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/head.d.ts +0 -2
- package/types/lodash/ts3.1/fp/identical.d.ts +0 -2
- package/types/lodash/ts3.1/fp/identity.d.ts +0 -2
- package/types/lodash/ts3.1/fp/inRange.d.ts +0 -2
- package/types/lodash/ts3.1/fp/includes.d.ts +0 -2
- package/types/lodash/ts3.1/fp/includesFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/indexBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/indexOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/indexOfFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/init.d.ts +0 -2
- package/types/lodash/ts3.1/fp/initial.d.ts +0 -2
- package/types/lodash/ts3.1/fp/intersection.d.ts +0 -2
- package/types/lodash/ts3.1/fp/intersectionBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/intersectionWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invert.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invertBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invertObj.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invoke.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invokeArgs.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invokeArgsMap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/invokeMap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isArguments.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isArray.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isArrayBuffer.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isArrayLike.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isArrayLikeObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isBoolean.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isBuffer.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isDate.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isElement.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isEmpty.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isEqual.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isEqualWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isError.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isFinite.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isFunction.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isInteger.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isLength.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isMap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isMatch.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isMatchWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isNaN.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isNative.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isNil.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isNull.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isNumber.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isObjectLike.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isPlainObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isRegExp.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isSafeInteger.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isSet.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isString.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isSymbol.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isTypedArray.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isUndefined.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isWeakMap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/isWeakSet.d.ts +0 -2
- package/types/lodash/ts3.1/fp/iteratee.d.ts +0 -2
- package/types/lodash/ts3.1/fp/join.d.ts +0 -2
- package/types/lodash/ts3.1/fp/juxt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/kebabCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/keyBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/keys.d.ts +0 -2
- package/types/lodash/ts3.1/fp/keysIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/last.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lastIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lastIndexOfFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lowerCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lowerFirst.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/lte.d.ts +0 -2
- package/types/lodash/ts3.1/fp/map.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mapKeys.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mapValues.d.ts +0 -2
- package/types/lodash/ts3.1/fp/matches.d.ts +0 -2
- package/types/lodash/ts3.1/fp/matchesProperty.d.ts +0 -2
- package/types/lodash/ts3.1/fp/max.d.ts +0 -2
- package/types/lodash/ts3.1/fp/maxBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mean.d.ts +0 -2
- package/types/lodash/ts3.1/fp/meanBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/memoize.d.ts +0 -2
- package/types/lodash/ts3.1/fp/merge.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mergeAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mergeAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/mergeWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/method.d.ts +0 -2
- package/types/lodash/ts3.1/fp/methodOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/min.d.ts +0 -2
- package/types/lodash/ts3.1/fp/minBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/multiply.d.ts +0 -2
- package/types/lodash/ts3.1/fp/nAry.d.ts +0 -2
- package/types/lodash/ts3.1/fp/negate.d.ts +0 -2
- package/types/lodash/ts3.1/fp/noConflict.d.ts +0 -2
- package/types/lodash/ts3.1/fp/noop.d.ts +0 -2
- package/types/lodash/ts3.1/fp/now.d.ts +0 -2
- package/types/lodash/ts3.1/fp/nth.d.ts +0 -2
- package/types/lodash/ts3.1/fp/nthArg.d.ts +0 -2
- package/types/lodash/ts3.1/fp/omit.d.ts +0 -2
- package/types/lodash/ts3.1/fp/omitAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/omitBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/once.d.ts +0 -2
- package/types/lodash/ts3.1/fp/orderBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/over.d.ts +0 -2
- package/types/lodash/ts3.1/fp/overArgs.d.ts +0 -2
- package/types/lodash/ts3.1/fp/overEvery.d.ts +0 -2
- package/types/lodash/ts3.1/fp/overSome.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pad.d.ts +0 -2
- package/types/lodash/ts3.1/fp/padChars.d.ts +0 -2
- package/types/lodash/ts3.1/fp/padCharsEnd.d.ts +0 -2
- package/types/lodash/ts3.1/fp/padCharsStart.d.ts +0 -2
- package/types/lodash/ts3.1/fp/padEnd.d.ts +0 -2
- package/types/lodash/ts3.1/fp/padStart.d.ts +0 -2
- package/types/lodash/ts3.1/fp/parseInt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/partial.d.ts +0 -2
- package/types/lodash/ts3.1/fp/partialRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/partition.d.ts +0 -2
- package/types/lodash/ts3.1/fp/path.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pathEq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pathOr.d.ts +0 -2
- package/types/lodash/ts3.1/fp/paths.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pick.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pickAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pickBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pipe.d.ts +0 -2
- package/types/lodash/ts3.1/fp/placeholder.d.ts +0 -3
- package/types/lodash/ts3.1/fp/pluck.d.ts +0 -2
- package/types/lodash/ts3.1/fp/prop.d.ts +0 -2
- package/types/lodash/ts3.1/fp/propEq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/propOr.d.ts +0 -2
- package/types/lodash/ts3.1/fp/property.d.ts +0 -2
- package/types/lodash/ts3.1/fp/propertyOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/props.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pull.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pullAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pullAllBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pullAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/pullAt.d.ts +0 -2
- package/types/lodash/ts3.1/fp/random.d.ts +0 -2
- package/types/lodash/ts3.1/fp/range.d.ts +0 -2
- package/types/lodash/ts3.1/fp/rangeRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/rangeStep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/rangeStepRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/rearg.d.ts +0 -2
- package/types/lodash/ts3.1/fp/reduce.d.ts +0 -2
- package/types/lodash/ts3.1/fp/reduceRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/reject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/remove.d.ts +0 -2
- package/types/lodash/ts3.1/fp/repeat.d.ts +0 -2
- package/types/lodash/ts3.1/fp/replace.d.ts +0 -2
- package/types/lodash/ts3.1/fp/rest.d.ts +0 -2
- package/types/lodash/ts3.1/fp/restFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/result.d.ts +0 -2
- package/types/lodash/ts3.1/fp/reverse.d.ts +0 -2
- package/types/lodash/ts3.1/fp/round.d.ts +0 -2
- package/types/lodash/ts3.1/fp/runInContext.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sample.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sampleSize.d.ts +0 -2
- package/types/lodash/ts3.1/fp/set.d.ts +0 -2
- package/types/lodash/ts3.1/fp/setWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/shuffle.d.ts +0 -2
- package/types/lodash/ts3.1/fp/size.d.ts +0 -2
- package/types/lodash/ts3.1/fp/slice.d.ts +0 -2
- package/types/lodash/ts3.1/fp/snakeCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/some.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedIndex.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedIndexBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedLastIndex.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedLastIndexBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedLastIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedUniq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sortedUniqBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/split.d.ts +0 -2
- package/types/lodash/ts3.1/fp/spread.d.ts +0 -2
- package/types/lodash/ts3.1/fp/spreadFrom.d.ts +0 -2
- package/types/lodash/ts3.1/fp/startCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/startsWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/stubArray.d.ts +0 -2
- package/types/lodash/ts3.1/fp/stubFalse.d.ts +0 -2
- package/types/lodash/ts3.1/fp/stubObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/stubString.d.ts +0 -2
- package/types/lodash/ts3.1/fp/stubTrue.d.ts +0 -2
- package/types/lodash/ts3.1/fp/subtract.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sum.d.ts +0 -2
- package/types/lodash/ts3.1/fp/sumBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/symmetricDifference.d.ts +0 -2
- package/types/lodash/ts3.1/fp/symmetricDifferenceBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/symmetricDifferenceWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/tail.d.ts +0 -2
- package/types/lodash/ts3.1/fp/take.d.ts +0 -2
- package/types/lodash/ts3.1/fp/takeLast.d.ts +0 -2
- package/types/lodash/ts3.1/fp/takeLastWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/takeRight.d.ts +0 -2
- package/types/lodash/ts3.1/fp/takeRightWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/takeWhile.d.ts +0 -2
- package/types/lodash/ts3.1/fp/tap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/template.d.ts +0 -2
- package/types/lodash/ts3.1/fp/throttle.d.ts +0 -2
- package/types/lodash/ts3.1/fp/thru.d.ts +0 -2
- package/types/lodash/ts3.1/fp/times.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toArray.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toFinite.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toInteger.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toLength.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toLower.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toNumber.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toPairs.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toPairsIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toPath.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toPlainObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toSafeInteger.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toString.d.ts +0 -2
- package/types/lodash/ts3.1/fp/toUpper.d.ts +0 -2
- package/types/lodash/ts3.1/fp/transform.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trim.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trimChars.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trimCharsEnd.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trimCharsStart.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trimEnd.d.ts +0 -2
- package/types/lodash/ts3.1/fp/trimStart.d.ts +0 -2
- package/types/lodash/ts3.1/fp/truncate.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unapply.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unary.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unescape.d.ts +0 -2
- package/types/lodash/ts3.1/fp/union.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unionBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unionWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/uniq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/uniqBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/uniqWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/uniqueId.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unnest.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unset.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unzip.d.ts +0 -2
- package/types/lodash/ts3.1/fp/unzipWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/update.d.ts +0 -2
- package/types/lodash/ts3.1/fp/updateWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/upperCase.d.ts +0 -2
- package/types/lodash/ts3.1/fp/upperFirst.d.ts +0 -2
- package/types/lodash/ts3.1/fp/useWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/values.d.ts +0 -2
- package/types/lodash/ts3.1/fp/valuesIn.d.ts +0 -2
- package/types/lodash/ts3.1/fp/where.d.ts +0 -2
- package/types/lodash/ts3.1/fp/whereEq.d.ts +0 -2
- package/types/lodash/ts3.1/fp/without.d.ts +0 -2
- package/types/lodash/ts3.1/fp/words.d.ts +0 -2
- package/types/lodash/ts3.1/fp/wrap.d.ts +0 -2
- package/types/lodash/ts3.1/fp/xor.d.ts +0 -2
- package/types/lodash/ts3.1/fp/xorBy.d.ts +0 -2
- package/types/lodash/ts3.1/fp/xorWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zip.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zipAll.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zipObj.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zipObject.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zipObjectDeep.d.ts +0 -2
- package/types/lodash/ts3.1/fp/zipWith.d.ts +0 -2
- package/types/lodash/ts3.1/fp.d.ts +0 -4938
- package/types/lodash/ts3.1/fromPairs.d.ts +0 -2
- package/types/lodash/ts3.1/functions.d.ts +0 -2
- package/types/lodash/ts3.1/functionsIn.d.ts +0 -2
- package/types/lodash/ts3.1/get.d.ts +0 -2
- package/types/lodash/ts3.1/groupBy.d.ts +0 -2
- package/types/lodash/ts3.1/gt.d.ts +0 -2
- package/types/lodash/ts3.1/gte.d.ts +0 -2
- package/types/lodash/ts3.1/has.d.ts +0 -2
- package/types/lodash/ts3.1/hasIn.d.ts +0 -2
- package/types/lodash/ts3.1/head.d.ts +0 -2
- package/types/lodash/ts3.1/identity.d.ts +0 -2
- package/types/lodash/ts3.1/inRange.d.ts +0 -2
- package/types/lodash/ts3.1/includes.d.ts +0 -2
- package/types/lodash/ts3.1/index.d.ts +0 -33
- package/types/lodash/ts3.1/indexOf.d.ts +0 -2
- package/types/lodash/ts3.1/initial.d.ts +0 -2
- package/types/lodash/ts3.1/intersection.d.ts +0 -2
- package/types/lodash/ts3.1/intersectionBy.d.ts +0 -2
- package/types/lodash/ts3.1/intersectionWith.d.ts +0 -2
- package/types/lodash/ts3.1/invert.d.ts +0 -2
- package/types/lodash/ts3.1/invertBy.d.ts +0 -2
- package/types/lodash/ts3.1/invoke.d.ts +0 -2
- package/types/lodash/ts3.1/invokeMap.d.ts +0 -2
- package/types/lodash/ts3.1/isArguments.d.ts +0 -2
- package/types/lodash/ts3.1/isArray.d.ts +0 -2
- package/types/lodash/ts3.1/isArrayBuffer.d.ts +0 -2
- package/types/lodash/ts3.1/isArrayLike.d.ts +0 -2
- package/types/lodash/ts3.1/isArrayLikeObject.d.ts +0 -2
- package/types/lodash/ts3.1/isBoolean.d.ts +0 -2
- package/types/lodash/ts3.1/isBuffer.d.ts +0 -2
- package/types/lodash/ts3.1/isDate.d.ts +0 -2
- package/types/lodash/ts3.1/isElement.d.ts +0 -2
- package/types/lodash/ts3.1/isEmpty.d.ts +0 -2
- package/types/lodash/ts3.1/isEqual.d.ts +0 -2
- package/types/lodash/ts3.1/isEqualWith.d.ts +0 -2
- package/types/lodash/ts3.1/isError.d.ts +0 -2
- package/types/lodash/ts3.1/isFinite.d.ts +0 -2
- package/types/lodash/ts3.1/isFunction.d.ts +0 -2
- package/types/lodash/ts3.1/isInteger.d.ts +0 -2
- package/types/lodash/ts3.1/isLength.d.ts +0 -2
- package/types/lodash/ts3.1/isMap.d.ts +0 -2
- package/types/lodash/ts3.1/isMatch.d.ts +0 -2
- package/types/lodash/ts3.1/isMatchWith.d.ts +0 -2
- package/types/lodash/ts3.1/isNaN.d.ts +0 -2
- package/types/lodash/ts3.1/isNative.d.ts +0 -2
- package/types/lodash/ts3.1/isNil.d.ts +0 -2
- package/types/lodash/ts3.1/isNull.d.ts +0 -2
- package/types/lodash/ts3.1/isNumber.d.ts +0 -2
- package/types/lodash/ts3.1/isObject.d.ts +0 -2
- package/types/lodash/ts3.1/isObjectLike.d.ts +0 -2
- package/types/lodash/ts3.1/isPlainObject.d.ts +0 -2
- package/types/lodash/ts3.1/isRegExp.d.ts +0 -2
- package/types/lodash/ts3.1/isSafeInteger.d.ts +0 -2
- package/types/lodash/ts3.1/isSet.d.ts +0 -2
- package/types/lodash/ts3.1/isString.d.ts +0 -2
- package/types/lodash/ts3.1/isSymbol.d.ts +0 -2
- package/types/lodash/ts3.1/isTypedArray.d.ts +0 -2
- package/types/lodash/ts3.1/isUndefined.d.ts +0 -2
- package/types/lodash/ts3.1/isWeakMap.d.ts +0 -2
- package/types/lodash/ts3.1/isWeakSet.d.ts +0 -2
- package/types/lodash/ts3.1/iteratee.d.ts +0 -2
- package/types/lodash/ts3.1/join.d.ts +0 -2
- package/types/lodash/ts3.1/kebabCase.d.ts +0 -2
- package/types/lodash/ts3.1/keyBy.d.ts +0 -2
- package/types/lodash/ts3.1/keys.d.ts +0 -2
- package/types/lodash/ts3.1/keysIn.d.ts +0 -2
- package/types/lodash/ts3.1/last.d.ts +0 -2
- package/types/lodash/ts3.1/lastIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/lowerCase.d.ts +0 -2
- package/types/lodash/ts3.1/lowerFirst.d.ts +0 -2
- package/types/lodash/ts3.1/lt.d.ts +0 -2
- package/types/lodash/ts3.1/lte.d.ts +0 -2
- package/types/lodash/ts3.1/map.d.ts +0 -2
- package/types/lodash/ts3.1/mapKeys.d.ts +0 -2
- package/types/lodash/ts3.1/mapValues.d.ts +0 -2
- package/types/lodash/ts3.1/matches.d.ts +0 -2
- package/types/lodash/ts3.1/matchesProperty.d.ts +0 -2
- package/types/lodash/ts3.1/max.d.ts +0 -2
- package/types/lodash/ts3.1/maxBy.d.ts +0 -2
- package/types/lodash/ts3.1/mean.d.ts +0 -2
- package/types/lodash/ts3.1/meanBy.d.ts +0 -2
- package/types/lodash/ts3.1/memoize.d.ts +0 -2
- package/types/lodash/ts3.1/merge.d.ts +0 -2
- package/types/lodash/ts3.1/mergeWith.d.ts +0 -2
- package/types/lodash/ts3.1/method.d.ts +0 -2
- package/types/lodash/ts3.1/methodOf.d.ts +0 -2
- package/types/lodash/ts3.1/min.d.ts +0 -2
- package/types/lodash/ts3.1/minBy.d.ts +0 -2
- package/types/lodash/ts3.1/mixin.d.ts +0 -2
- package/types/lodash/ts3.1/multiply.d.ts +0 -2
- package/types/lodash/ts3.1/negate.d.ts +0 -2
- package/types/lodash/ts3.1/noConflict.d.ts +0 -2
- package/types/lodash/ts3.1/noop.d.ts +0 -2
- package/types/lodash/ts3.1/now.d.ts +0 -2
- package/types/lodash/ts3.1/nth.d.ts +0 -2
- package/types/lodash/ts3.1/nthArg.d.ts +0 -2
- package/types/lodash/ts3.1/omit.d.ts +0 -2
- package/types/lodash/ts3.1/omitBy.d.ts +0 -2
- package/types/lodash/ts3.1/once.d.ts +0 -2
- package/types/lodash/ts3.1/orderBy.d.ts +0 -2
- package/types/lodash/ts3.1/over.d.ts +0 -2
- package/types/lodash/ts3.1/overArgs.d.ts +0 -2
- package/types/lodash/ts3.1/overEvery.d.ts +0 -2
- package/types/lodash/ts3.1/overSome.d.ts +0 -2
- package/types/lodash/ts3.1/pad.d.ts +0 -2
- package/types/lodash/ts3.1/padEnd.d.ts +0 -2
- package/types/lodash/ts3.1/padStart.d.ts +0 -2
- package/types/lodash/ts3.1/parseInt.d.ts +0 -2
- package/types/lodash/ts3.1/partial.d.ts +0 -2
- package/types/lodash/ts3.1/partialRight.d.ts +0 -2
- package/types/lodash/ts3.1/partition.d.ts +0 -2
- package/types/lodash/ts3.1/pick.d.ts +0 -2
- package/types/lodash/ts3.1/pickBy.d.ts +0 -2
- package/types/lodash/ts3.1/property.d.ts +0 -2
- package/types/lodash/ts3.1/propertyOf.d.ts +0 -2
- package/types/lodash/ts3.1/pull.d.ts +0 -2
- package/types/lodash/ts3.1/pullAll.d.ts +0 -2
- package/types/lodash/ts3.1/pullAllBy.d.ts +0 -2
- package/types/lodash/ts3.1/pullAllWith.d.ts +0 -2
- package/types/lodash/ts3.1/pullAt.d.ts +0 -2
- package/types/lodash/ts3.1/random.d.ts +0 -2
- package/types/lodash/ts3.1/range.d.ts +0 -2
- package/types/lodash/ts3.1/rangeRight.d.ts +0 -2
- package/types/lodash/ts3.1/rearg.d.ts +0 -2
- package/types/lodash/ts3.1/reduce.d.ts +0 -2
- package/types/lodash/ts3.1/reduceRight.d.ts +0 -2
- package/types/lodash/ts3.1/reject.d.ts +0 -2
- package/types/lodash/ts3.1/remove.d.ts +0 -2
- package/types/lodash/ts3.1/repeat.d.ts +0 -2
- package/types/lodash/ts3.1/replace.d.ts +0 -2
- package/types/lodash/ts3.1/rest.d.ts +0 -2
- package/types/lodash/ts3.1/result.d.ts +0 -2
- package/types/lodash/ts3.1/reverse.d.ts +0 -2
- package/types/lodash/ts3.1/round.d.ts +0 -2
- package/types/lodash/ts3.1/runInContext.d.ts +0 -2
- package/types/lodash/ts3.1/sample.d.ts +0 -2
- package/types/lodash/ts3.1/sampleSize.d.ts +0 -2
- package/types/lodash/ts3.1/set.d.ts +0 -2
- package/types/lodash/ts3.1/setWith.d.ts +0 -2
- package/types/lodash/ts3.1/shuffle.d.ts +0 -2
- package/types/lodash/ts3.1/size.d.ts +0 -2
- package/types/lodash/ts3.1/slice.d.ts +0 -2
- package/types/lodash/ts3.1/snakeCase.d.ts +0 -2
- package/types/lodash/ts3.1/some.d.ts +0 -2
- package/types/lodash/ts3.1/sortBy.d.ts +0 -2
- package/types/lodash/ts3.1/sortedIndex.d.ts +0 -2
- package/types/lodash/ts3.1/sortedIndexBy.d.ts +0 -2
- package/types/lodash/ts3.1/sortedIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/sortedLastIndex.d.ts +0 -2
- package/types/lodash/ts3.1/sortedLastIndexBy.d.ts +0 -2
- package/types/lodash/ts3.1/sortedLastIndexOf.d.ts +0 -2
- package/types/lodash/ts3.1/sortedUniq.d.ts +0 -2
- package/types/lodash/ts3.1/sortedUniqBy.d.ts +0 -2
- package/types/lodash/ts3.1/split.d.ts +0 -2
- package/types/lodash/ts3.1/spread.d.ts +0 -2
- package/types/lodash/ts3.1/startCase.d.ts +0 -2
- package/types/lodash/ts3.1/startsWith.d.ts +0 -2
- package/types/lodash/ts3.1/stubFalse.d.ts +0 -2
- package/types/lodash/ts3.1/stubTrue.d.ts +0 -2
- package/types/lodash/ts3.1/subtract.d.ts +0 -2
- package/types/lodash/ts3.1/sum.d.ts +0 -2
- package/types/lodash/ts3.1/sumBy.d.ts +0 -2
- package/types/lodash/ts3.1/tail.d.ts +0 -2
- package/types/lodash/ts3.1/take.d.ts +0 -2
- package/types/lodash/ts3.1/takeRight.d.ts +0 -2
- package/types/lodash/ts3.1/takeRightWhile.d.ts +0 -2
- package/types/lodash/ts3.1/takeWhile.d.ts +0 -2
- package/types/lodash/ts3.1/tap.d.ts +0 -2
- package/types/lodash/ts3.1/template.d.ts +0 -2
- package/types/lodash/ts3.1/throttle.d.ts +0 -2
- package/types/lodash/ts3.1/thru.d.ts +0 -2
- package/types/lodash/ts3.1/times.d.ts +0 -2
- package/types/lodash/ts3.1/toArray.d.ts +0 -2
- package/types/lodash/ts3.1/toFinite.d.ts +0 -2
- package/types/lodash/ts3.1/toInteger.d.ts +0 -2
- package/types/lodash/ts3.1/toLength.d.ts +0 -2
- package/types/lodash/ts3.1/toLower.d.ts +0 -2
- package/types/lodash/ts3.1/toNumber.d.ts +0 -2
- package/types/lodash/ts3.1/toPairs.d.ts +0 -2
- package/types/lodash/ts3.1/toPairsIn.d.ts +0 -2
- package/types/lodash/ts3.1/toPath.d.ts +0 -2
- package/types/lodash/ts3.1/toPlainObject.d.ts +0 -2
- package/types/lodash/ts3.1/toSafeInteger.d.ts +0 -2
- package/types/lodash/ts3.1/toString.d.ts +0 -2
- package/types/lodash/ts3.1/toUpper.d.ts +0 -2
- package/types/lodash/ts3.1/transform.d.ts +0 -2
- package/types/lodash/ts3.1/trim.d.ts +0 -2
- package/types/lodash/ts3.1/trimEnd.d.ts +0 -2
- package/types/lodash/ts3.1/trimStart.d.ts +0 -2
- package/types/lodash/ts3.1/truncate.d.ts +0 -2
- package/types/lodash/ts3.1/unary.d.ts +0 -2
- package/types/lodash/ts3.1/unescape.d.ts +0 -2
- package/types/lodash/ts3.1/union.d.ts +0 -2
- package/types/lodash/ts3.1/unionBy.d.ts +0 -2
- package/types/lodash/ts3.1/unionWith.d.ts +0 -2
- package/types/lodash/ts3.1/uniq.d.ts +0 -2
- package/types/lodash/ts3.1/uniqBy.d.ts +0 -2
- package/types/lodash/ts3.1/uniqWith.d.ts +0 -2
- package/types/lodash/ts3.1/uniqueId.d.ts +0 -2
- package/types/lodash/ts3.1/unset.d.ts +0 -2
- package/types/lodash/ts3.1/unzip.d.ts +0 -2
- package/types/lodash/ts3.1/unzipWith.d.ts +0 -2
- package/types/lodash/ts3.1/update.d.ts +0 -2
- package/types/lodash/ts3.1/updateWith.d.ts +0 -2
- package/types/lodash/ts3.1/upperCase.d.ts +0 -2
- package/types/lodash/ts3.1/upperFirst.d.ts +0 -2
- package/types/lodash/ts3.1/values.d.ts +0 -2
- package/types/lodash/ts3.1/valuesIn.d.ts +0 -2
- package/types/lodash/ts3.1/without.d.ts +0 -2
- package/types/lodash/ts3.1/words.d.ts +0 -2
- package/types/lodash/ts3.1/wrap.d.ts +0 -2
- package/types/lodash/ts3.1/xor.d.ts +0 -2
- package/types/lodash/ts3.1/xorBy.d.ts +0 -2
- package/types/lodash/ts3.1/xorWith.d.ts +0 -2
- package/types/lodash/ts3.1/zip.d.ts +0 -2
- package/types/lodash/ts3.1/zipObject.d.ts +0 -2
- package/types/lodash/ts3.1/zipObjectDeep.d.ts +0 -2
- package/types/lodash/ts3.1/zipWith.d.ts +0 -2
package/types/sinon/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// Type definitions for Sinon
|
|
1
|
+
// Type definitions for Sinon 7.5
|
|
2
2
|
// Project: https://sinonjs.org
|
|
3
3
|
// Definitions by: William Sears <https://github.com/mrbigdog2u>
|
|
4
|
+
// Jonathan Little <https://github.com/rationull>
|
|
4
5
|
// Lukas Spieß <https://github.com/lumaxis>
|
|
5
6
|
// Nico Jansen <https://github.com/nicojs>
|
|
6
7
|
// James Garbutt <https://github.com/43081j>
|
|
@@ -9,27 +10,23 @@
|
|
|
9
10
|
// John Wood <https://github.com/johnjesse>
|
|
10
11
|
// Alec Flett <https://github.com/alecf>
|
|
11
12
|
// Simon Schick <https://github.com/SimonSchick>
|
|
13
|
+
// Roey Berman <https://github.com/bergundy>
|
|
12
14
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
13
|
-
|
|
14
|
-
import * as FakeTimers from '@sinonjs/fake-timers';
|
|
15
|
+
// TypeScript Version: 2.8
|
|
15
16
|
|
|
16
17
|
// sinon uses DOM dependencies which are absent in browser-less environment like node.js
|
|
17
18
|
// to avoid compiler errors this monkey patch is used
|
|
18
19
|
// see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351
|
|
19
|
-
interface Event {} // tslint:disable-line no-empty-interface
|
|
20
|
-
interface Document {} // tslint:disable-line no-empty-interface
|
|
20
|
+
interface Event { } // tslint:disable-line no-empty-interface
|
|
21
|
+
interface Document { } // tslint:disable-line no-empty-interface
|
|
21
22
|
|
|
22
23
|
declare namespace Sinon {
|
|
23
|
-
|
|
24
|
-
[K in keyof T]: SinonMatcher | (T[K] extends object ? MatchArguments<T[K]> : never) | T[K];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
interface SinonSpyCallApi<TArgs extends any[] = any[], TReturnValue = any> {
|
|
24
|
+
interface SinonSpyCallApi {
|
|
28
25
|
// Properties
|
|
29
26
|
/**
|
|
30
27
|
* Array of received arguments.
|
|
31
28
|
*/
|
|
32
|
-
args:
|
|
29
|
+
args: any[];
|
|
33
30
|
|
|
34
31
|
// Methods
|
|
35
32
|
/**
|
|
@@ -44,11 +41,11 @@ declare namespace Sinon {
|
|
|
44
41
|
* so a call that received the provided arguments (in the same spots) and possibly others as well will return true.
|
|
45
42
|
* @param args
|
|
46
43
|
*/
|
|
47
|
-
calledWith(...args:
|
|
44
|
+
calledWith(...args: any[]): boolean;
|
|
48
45
|
/**
|
|
49
46
|
* Returns true if spy was called at least once with the provided arguments and no others.
|
|
50
47
|
*/
|
|
51
|
-
calledWithExactly(...args:
|
|
48
|
+
calledWithExactly(...args: any[]): boolean;
|
|
52
49
|
/**
|
|
53
50
|
* Returns true if spy/stub was called the new operator.
|
|
54
51
|
* Beware that this is inferred based on the value of the this object and the spy function’s prototype,
|
|
@@ -59,31 +56,31 @@ declare namespace Sinon {
|
|
|
59
56
|
* Returns true if spy was called at exactly once with the provided arguments.
|
|
60
57
|
* @param args
|
|
61
58
|
*/
|
|
62
|
-
calledOnceWith(...args:
|
|
63
|
-
calledOnceWithExactly(...args:
|
|
59
|
+
calledOnceWith(...args: any[]): boolean;
|
|
60
|
+
calledOnceWithExactly(...args: any[]): boolean;
|
|
64
61
|
/**
|
|
65
62
|
* Returns true if spy was called with matching arguments (and possibly others).
|
|
66
63
|
* This behaves the same as spy.calledWith(sinon.match(arg1), sinon.match(arg2), ...).
|
|
67
64
|
* @param args
|
|
68
65
|
*/
|
|
69
|
-
calledWithMatch(...args:
|
|
66
|
+
calledWithMatch(...args: any[]): boolean;
|
|
70
67
|
/**
|
|
71
68
|
* Returns true if call did not receive provided arguments.
|
|
72
69
|
* @param args
|
|
73
70
|
*/
|
|
74
|
-
notCalledWith(...args:
|
|
71
|
+
notCalledWith(...args: any[]): boolean;
|
|
75
72
|
/**
|
|
76
73
|
* Returns true if call did not receive matching arguments.
|
|
77
74
|
* This behaves the same as spyCall.notCalledWith(sinon.match(arg1), sinon.match(arg2), ...).
|
|
78
75
|
* @param args
|
|
79
76
|
*/
|
|
80
|
-
notCalledWithMatch(...args:
|
|
77
|
+
notCalledWithMatch(...args: any[]): boolean;
|
|
81
78
|
/**
|
|
82
79
|
* Returns true if spy returned the provided value at least once.
|
|
83
80
|
* Uses deep comparison for objects and arrays. Use spy.returned(sinon.match.same(obj)) for strict comparison (see matchers).
|
|
84
81
|
* @param value
|
|
85
82
|
*/
|
|
86
|
-
returned(value:
|
|
83
|
+
returned(value: any): boolean;
|
|
87
84
|
/**
|
|
88
85
|
* Returns true if spy threw an exception at least once.
|
|
89
86
|
*/
|
|
@@ -124,8 +121,7 @@ declare namespace Sinon {
|
|
|
124
121
|
yieldToOn(property: string, obj: any, ...args: any[]): void;
|
|
125
122
|
}
|
|
126
123
|
|
|
127
|
-
interface SinonSpyCall
|
|
128
|
-
extends SinonSpyCallApi<TArgs, TReturnValue> {
|
|
124
|
+
interface SinonSpyCall extends SinonSpyCallApi {
|
|
129
125
|
/**
|
|
130
126
|
* The call’s this value.
|
|
131
127
|
*/
|
|
@@ -137,18 +133,12 @@ declare namespace Sinon {
|
|
|
137
133
|
/**
|
|
138
134
|
* Return value.
|
|
139
135
|
*/
|
|
140
|
-
returnValue:
|
|
136
|
+
returnValue: any;
|
|
141
137
|
/**
|
|
142
138
|
* This property is a convenience for a call’s callback.
|
|
143
139
|
* When the last argument in a call is a Function, then callback will reference that. Otherwise it will be undefined.
|
|
144
140
|
*/
|
|
145
141
|
callback: Function | undefined;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* This property is a convenience for the first argument of the call.
|
|
149
|
-
*/
|
|
150
|
-
firstArg: any;
|
|
151
|
-
|
|
152
142
|
/**
|
|
153
143
|
* This property is a convenience for the last argument of the call.
|
|
154
144
|
*/
|
|
@@ -157,21 +147,16 @@ declare namespace Sinon {
|
|
|
157
147
|
/**
|
|
158
148
|
* Returns true if the spy call occurred before another spy call.
|
|
159
149
|
* @param call
|
|
160
|
-
*
|
|
161
150
|
*/
|
|
162
|
-
calledBefore(call: SinonSpyCall
|
|
151
|
+
calledBefore(call: SinonSpyCall): boolean;
|
|
163
152
|
/**
|
|
164
153
|
* Returns true if the spy call occurred after another spy call.
|
|
165
154
|
* @param call
|
|
166
155
|
*/
|
|
167
|
-
calledAfter(call: SinonSpyCall
|
|
156
|
+
calledAfter(call: SinonSpyCall): boolean;
|
|
168
157
|
}
|
|
169
158
|
|
|
170
|
-
interface SinonSpy
|
|
171
|
-
extends Pick<
|
|
172
|
-
SinonSpyCallApi<TArgs, TReturnValue>,
|
|
173
|
-
Exclude<keyof SinonSpyCallApi<TArgs, TReturnValue>, 'args'>
|
|
174
|
-
> {
|
|
159
|
+
interface SinonSpy extends SinonSpyCallApi {
|
|
175
160
|
// Properties
|
|
176
161
|
/**
|
|
177
162
|
* The number of recorded calls.
|
|
@@ -200,19 +185,19 @@ declare namespace Sinon {
|
|
|
200
185
|
/**
|
|
201
186
|
* The first call
|
|
202
187
|
*/
|
|
203
|
-
firstCall: SinonSpyCall
|
|
188
|
+
firstCall: SinonSpyCall;
|
|
204
189
|
/**
|
|
205
190
|
* The second call
|
|
206
191
|
*/
|
|
207
|
-
secondCall: SinonSpyCall
|
|
192
|
+
secondCall: SinonSpyCall;
|
|
208
193
|
/**
|
|
209
194
|
* The third call
|
|
210
195
|
*/
|
|
211
|
-
thirdCall: SinonSpyCall
|
|
196
|
+
thirdCall: SinonSpyCall;
|
|
212
197
|
/**
|
|
213
198
|
* The last call
|
|
214
199
|
*/
|
|
215
|
-
lastCall: SinonSpyCall
|
|
200
|
+
lastCall: SinonSpyCall;
|
|
216
201
|
/**
|
|
217
202
|
* Array of this objects, spy.thisValues[0] is the this object for the first call.
|
|
218
203
|
*/
|
|
@@ -220,7 +205,7 @@ declare namespace Sinon {
|
|
|
220
205
|
/**
|
|
221
206
|
* Array of arguments received, spy.args[0] is an array of arguments received in the first call.
|
|
222
207
|
*/
|
|
223
|
-
args:
|
|
208
|
+
args: any[][];
|
|
224
209
|
/**
|
|
225
210
|
* Array of exception objects thrown, spy.exceptions[0] is the exception thrown by the first call.
|
|
226
211
|
* If the call did not throw an error, the value at the call’s location in .exceptions will be undefined.
|
|
@@ -230,43 +215,36 @@ declare namespace Sinon {
|
|
|
230
215
|
* Array of return values, spy.returnValues[0] is the return value of the first call.
|
|
231
216
|
* If the call did not explicitly return a value, the value at the call’s location in .returnValues will be undefined.
|
|
232
217
|
*/
|
|
233
|
-
returnValues:
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Holds a reference to the original method/function this stub has wrapped.
|
|
237
|
-
*/
|
|
238
|
-
wrappedMethod: (...args: TArgs) => TReturnValue;
|
|
218
|
+
returnValues: any[];
|
|
239
219
|
|
|
240
220
|
// Methods
|
|
241
|
-
(...args:
|
|
242
|
-
|
|
221
|
+
(...args: any[]): any;
|
|
243
222
|
/**
|
|
244
223
|
* Returns true if the spy was called before @param anotherSpy
|
|
245
224
|
* @param anotherSpy
|
|
246
225
|
*/
|
|
247
|
-
calledBefore(anotherSpy: SinonSpy
|
|
226
|
+
calledBefore(anotherSpy: SinonSpy): boolean;
|
|
248
227
|
/**
|
|
249
228
|
* Returns true if the spy was called after @param anotherSpy
|
|
250
229
|
* @param anotherSpy
|
|
251
230
|
*/
|
|
252
|
-
calledAfter(anotherSpy: SinonSpy
|
|
231
|
+
calledAfter(anotherSpy: SinonSpy): boolean;
|
|
253
232
|
/**
|
|
254
233
|
* Returns true if spy was called before @param anotherSpy, and no spy calls occurred between spy and @param anotherSpy.
|
|
255
234
|
* @param anotherSpy
|
|
256
235
|
*/
|
|
257
|
-
calledImmediatelyBefore(anotherSpy: SinonSpy
|
|
236
|
+
calledImmediatelyBefore(anotherSpy: SinonSpy): boolean;
|
|
258
237
|
/**
|
|
259
238
|
* Returns true if spy was called after @param anotherSpy, and no spy calls occurred between @param anotherSpy and spy.
|
|
260
239
|
* @param anotherSpy
|
|
261
240
|
*/
|
|
262
|
-
calledImmediatelyAfter(anotherSpy: SinonSpy
|
|
263
|
-
|
|
241
|
+
calledImmediatelyAfter(anotherSpy: SinonSpy): boolean;
|
|
264
242
|
/**
|
|
265
243
|
* Creates a spy that only records calls when the received arguments match those passed to withArgs.
|
|
266
244
|
* This is useful to be more expressive in your assertions, where you can access the spy with the same call.
|
|
267
245
|
* @param args Expected args
|
|
268
246
|
*/
|
|
269
|
-
withArgs(...args:
|
|
247
|
+
withArgs(...args: any[]): SinonSpy;
|
|
270
248
|
/**
|
|
271
249
|
* Returns true if the spy was always called with @param obj as this.
|
|
272
250
|
* @param obj
|
|
@@ -275,29 +253,29 @@ declare namespace Sinon {
|
|
|
275
253
|
/**
|
|
276
254
|
* Returns true if spy was always called with the provided arguments (and possibly others).
|
|
277
255
|
*/
|
|
278
|
-
alwaysCalledWith(...args:
|
|
256
|
+
alwaysCalledWith(...args: any[]): boolean;
|
|
279
257
|
/**
|
|
280
258
|
* Returns true if spy was always called with the exact provided arguments.
|
|
281
259
|
* @param args
|
|
282
260
|
*/
|
|
283
|
-
alwaysCalledWithExactly(...args:
|
|
261
|
+
alwaysCalledWithExactly(...args: any[]): boolean;
|
|
284
262
|
/**
|
|
285
263
|
* Returns true if spy was always called with matching arguments (and possibly others).
|
|
286
264
|
* This behaves the same as spy.alwaysCalledWith(sinon.match(arg1), sinon.match(arg2), ...).
|
|
287
265
|
* @param args
|
|
288
266
|
*/
|
|
289
|
-
alwaysCalledWithMatch(...args:
|
|
267
|
+
alwaysCalledWithMatch(...args: any[]): boolean;
|
|
290
268
|
/**
|
|
291
269
|
* Returns true if the spy/stub was never called with the provided arguments.
|
|
292
270
|
* @param args
|
|
293
271
|
*/
|
|
294
|
-
neverCalledWith(...args:
|
|
272
|
+
neverCalledWith(...args: any[]): boolean;
|
|
295
273
|
/**
|
|
296
274
|
* Returns true if the spy/stub was never called with matching arguments.
|
|
297
275
|
* This behaves the same as spy.neverCalledWith(sinon.match(arg1), sinon.match(arg2), ...).
|
|
298
276
|
* @param args
|
|
299
277
|
*/
|
|
300
|
-
neverCalledWithMatch(...args:
|
|
278
|
+
neverCalledWithMatch(...args: any[]): boolean;
|
|
301
279
|
/**
|
|
302
280
|
* Returns true if spy always threw an exception.
|
|
303
281
|
*/
|
|
@@ -320,22 +298,22 @@ declare namespace Sinon {
|
|
|
320
298
|
* If the stub was never called with a function argument, yield throws an error.
|
|
321
299
|
* Returns an Array with all callbacks return values in the order they were called, if no error is thrown.
|
|
322
300
|
*/
|
|
323
|
-
invokeCallback(...args:
|
|
301
|
+
invokeCallback(...args: any[]): void;
|
|
324
302
|
/**
|
|
325
303
|
* Set the displayName of the spy or stub.
|
|
326
304
|
* @param name
|
|
327
305
|
*/
|
|
328
|
-
named(name: string): SinonSpy
|
|
306
|
+
named(name: string): SinonSpy;
|
|
329
307
|
/**
|
|
330
308
|
* Returns the nth call.
|
|
331
309
|
* Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
|
|
332
|
-
* @param n
|
|
310
|
+
* @param n
|
|
333
311
|
*/
|
|
334
|
-
getCall(n: number): SinonSpyCall
|
|
312
|
+
getCall(n: number): SinonSpyCall;
|
|
335
313
|
/**
|
|
336
314
|
* Returns an Array of all calls recorded by the spy.
|
|
337
315
|
*/
|
|
338
|
-
getCalls():
|
|
316
|
+
getCalls(): SinonSpyCall[];
|
|
339
317
|
/**
|
|
340
318
|
* Resets the state of a spy.
|
|
341
319
|
*/
|
|
@@ -367,7 +345,7 @@ declare namespace Sinon {
|
|
|
367
345
|
/**
|
|
368
346
|
* Spies on the provided function
|
|
369
347
|
*/
|
|
370
|
-
|
|
348
|
+
(func: Function): SinonSpy;
|
|
371
349
|
/**
|
|
372
350
|
* Creates a spy for object.method and replaces the original method with the spy.
|
|
373
351
|
* An exception is thrown if the property is not already a function.
|
|
@@ -375,17 +353,10 @@ declare namespace Sinon {
|
|
|
375
353
|
* The original method can be restored by calling object.method.restore().
|
|
376
354
|
* The returned spy is the function object which replaced the original method. spy === object.method.
|
|
377
355
|
*/
|
|
378
|
-
<T
|
|
379
|
-
? SinonSpy<TArgs, TReturnValue>
|
|
380
|
-
: SinonSpy;
|
|
381
|
-
|
|
382
|
-
<T, K extends keyof T>(obj: T, method: K, types: Array<'get' | 'set'>): PropertyDescriptor & {
|
|
383
|
-
get: SinonSpy<[], T[K]>;
|
|
384
|
-
set: SinonSpy<[T[K]], void>;
|
|
385
|
-
};
|
|
356
|
+
<T>(obj: T, method: keyof T, types?: string[]): SinonSpy;
|
|
386
357
|
}
|
|
387
358
|
|
|
388
|
-
interface SinonStub
|
|
359
|
+
interface SinonStub extends SinonSpy {
|
|
389
360
|
/**
|
|
390
361
|
* Resets the stub’s behaviour to the default behaviour
|
|
391
362
|
* You can reset behaviour of all stubs using sinon.resetBehavior()
|
|
@@ -403,13 +374,13 @@ declare namespace Sinon {
|
|
|
403
374
|
* Causes the stub to return promises using a specific Promise library instead of the global one when using stub.rejects or stub.resolves.
|
|
404
375
|
* Returns the stub to allow chaining.
|
|
405
376
|
*/
|
|
406
|
-
usingPromise(promiseLibrary: any): SinonStub
|
|
377
|
+
usingPromise(promiseLibrary: any): SinonStub;
|
|
407
378
|
|
|
408
379
|
/**
|
|
409
380
|
* Makes the stub return the provided @param obj value.
|
|
410
381
|
* @param obj
|
|
411
382
|
*/
|
|
412
|
-
returns(obj:
|
|
383
|
+
returns(obj: any): SinonStub;
|
|
413
384
|
/**
|
|
414
385
|
* Causes the stub to return the argument at the provided @param index.
|
|
415
386
|
* stub.returnsArg(0); causes the stub to return the first argument.
|
|
@@ -417,12 +388,12 @@ declare namespace Sinon {
|
|
|
417
388
|
* starting from sinon@6.1.2, a TypeError will be thrown.
|
|
418
389
|
* @param index
|
|
419
390
|
*/
|
|
420
|
-
returnsArg(index: number): SinonStub
|
|
391
|
+
returnsArg(index: number): SinonStub;
|
|
421
392
|
/**
|
|
422
393
|
* Causes the stub to return its this value.
|
|
423
394
|
* Useful for stubbing jQuery-style fluent APIs.
|
|
424
395
|
*/
|
|
425
|
-
returnsThis(): SinonStub
|
|
396
|
+
returnsThis(): SinonStub;
|
|
426
397
|
/**
|
|
427
398
|
* Causes the stub to return a Promise which resolves to the provided value.
|
|
428
399
|
* When constructing the Promise, sinon uses the Promise.resolve method.
|
|
@@ -430,28 +401,26 @@ declare namespace Sinon {
|
|
|
430
401
|
* The Promise library can be overwritten using the usingPromise method.
|
|
431
402
|
* Since sinon@2.0.0
|
|
432
403
|
*/
|
|
433
|
-
resolves(
|
|
434
|
-
value?: TReturnValue extends PromiseLike<infer TResolveValue> ? TResolveValue : any,
|
|
435
|
-
): SinonStub<TArgs, TReturnValue>;
|
|
404
|
+
resolves(value?: any): SinonStub;
|
|
436
405
|
/**
|
|
437
406
|
* Causes the stub to return a Promise which resolves to the argument at the provided index.
|
|
438
407
|
* stub.resolvesArg(0); causes the stub to return a Promise which resolves to the first argument.
|
|
439
408
|
* If the argument at the provided index is not available, a TypeError will be thrown.
|
|
440
409
|
*/
|
|
441
|
-
resolvesArg(index: number): SinonStub
|
|
410
|
+
resolvesArg(index: number): SinonStub;
|
|
442
411
|
/**
|
|
443
412
|
* Causes the stub to return a Promise which resolves to its this value.
|
|
444
413
|
*/
|
|
445
|
-
resolvesThis(): SinonStub
|
|
414
|
+
resolvesThis(): SinonStub;
|
|
446
415
|
/**
|
|
447
416
|
* Causes the stub to throw an exception (Error).
|
|
448
417
|
* @param type
|
|
449
418
|
*/
|
|
450
|
-
throws(type?: string): SinonStub
|
|
419
|
+
throws(type?: string): SinonStub;
|
|
451
420
|
/**
|
|
452
421
|
* Causes the stub to throw the provided exception object.
|
|
453
422
|
*/
|
|
454
|
-
throws(obj: any): SinonStub
|
|
423
|
+
throws(obj: any): SinonStub;
|
|
455
424
|
/**
|
|
456
425
|
* Causes the stub to throw the argument at the provided index.
|
|
457
426
|
* stub.throwsArg(0); causes the stub to throw the first argument as the exception.
|
|
@@ -459,9 +428,9 @@ declare namespace Sinon {
|
|
|
459
428
|
* Since sinon@2.3.0
|
|
460
429
|
* @param index
|
|
461
430
|
*/
|
|
462
|
-
throwsArg(index: number): SinonStub
|
|
463
|
-
throwsException(type?: string): SinonStub
|
|
464
|
-
throwsException(obj: any): SinonStub
|
|
431
|
+
throwsArg(index: number): SinonStub;
|
|
432
|
+
throwsException(type?: string): SinonStub;
|
|
433
|
+
throwsException(obj: any): SinonStub;
|
|
465
434
|
/**
|
|
466
435
|
* Causes the stub to return a Promise which rejects with an exception (Error).
|
|
467
436
|
* When constructing the Promise, sinon uses the Promise.reject method.
|
|
@@ -469,53 +438,53 @@ declare namespace Sinon {
|
|
|
469
438
|
* The Promise library can be overwritten using the usingPromise method.
|
|
470
439
|
* Since sinon@2.0.0
|
|
471
440
|
*/
|
|
472
|
-
rejects(): SinonStub
|
|
441
|
+
rejects(): SinonStub;
|
|
473
442
|
/**
|
|
474
443
|
* Causes the stub to return a Promise which rejects with an exception of the provided type.
|
|
475
444
|
* Since sinon@2.0.0
|
|
476
445
|
*/
|
|
477
|
-
rejects(errorType: string): SinonStub
|
|
446
|
+
rejects(errorType: string): SinonStub;
|
|
478
447
|
/**
|
|
479
448
|
* Causes the stub to return a Promise which rejects with the provided exception object.
|
|
480
449
|
* Since sinon@2.0.0
|
|
481
450
|
*/
|
|
482
|
-
rejects(value: any): SinonStub
|
|
451
|
+
rejects(value: any): SinonStub;
|
|
483
452
|
/**
|
|
484
453
|
* Causes the stub to call the argument at the provided index as a callback function.
|
|
485
454
|
* stub.callsArg(0); causes the stub to call the first argument as a callback.
|
|
486
455
|
* If the argument at the provided index is not available or is not a function, a TypeError will be thrown.
|
|
487
456
|
*/
|
|
488
|
-
callsArg(index: number): SinonStub
|
|
457
|
+
callsArg(index: number): SinonStub;
|
|
489
458
|
/**
|
|
490
459
|
* Causes the original method wrapped into the stub to be called when none of the conditional stubs are matched.
|
|
491
460
|
*/
|
|
492
|
-
callThrough(): SinonStub
|
|
461
|
+
callThrough(): SinonStub;
|
|
493
462
|
/**
|
|
494
463
|
* Like stub.callsArg(index); but with an additional parameter to pass the this context.
|
|
495
464
|
* @param index
|
|
496
465
|
* @param context
|
|
497
466
|
*/
|
|
498
|
-
callsArgOn(index: number, context: any): SinonStub
|
|
467
|
+
callsArgOn(index: number, context: any): SinonStub;
|
|
499
468
|
/**
|
|
500
469
|
* Like callsArg, but with arguments to pass to the callback.
|
|
501
470
|
* @param index
|
|
502
471
|
* @param args
|
|
503
472
|
*/
|
|
504
|
-
callsArgWith(index: number, ...args: any[]): SinonStub
|
|
473
|
+
callsArgWith(index: number, ...args: any[]): SinonStub;
|
|
505
474
|
/**
|
|
506
475
|
* Like above but with an additional parameter to pass the this context.
|
|
507
476
|
* @param index
|
|
508
477
|
* @param context
|
|
509
478
|
* @param args
|
|
510
479
|
*/
|
|
511
|
-
callsArgOnWith(index: number, context: any, ...args: any[]): SinonStub
|
|
480
|
+
callsArgOnWith(index: number, context: any, ...args: any[]): SinonStub;
|
|
512
481
|
/**
|
|
513
482
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
514
483
|
* In Node environment the callback is deferred with process.nextTick.
|
|
515
484
|
* In a browser the callback is deferred with setTimeout(callback, 0).
|
|
516
485
|
* @param index
|
|
517
486
|
*/
|
|
518
|
-
callsArgAsync(index: number): SinonStub
|
|
487
|
+
callsArgAsync(index: number): SinonStub;
|
|
519
488
|
/**
|
|
520
489
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
521
490
|
* In Node environment the callback is deferred with process.nextTick.
|
|
@@ -523,91 +492,91 @@ declare namespace Sinon {
|
|
|
523
492
|
* @param index
|
|
524
493
|
* @param context
|
|
525
494
|
*/
|
|
526
|
-
callsArgOnAsync(index: number, context: any): SinonStub
|
|
495
|
+
callsArgOnAsync(index: number, context: any): SinonStub;
|
|
527
496
|
/**
|
|
528
497
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
529
498
|
* In Node environment the callback is deferred with process.nextTick.
|
|
530
499
|
* In a browser the callback is deferred with setTimeout(callback, 0).
|
|
531
500
|
*/
|
|
532
|
-
callsArgWithAsync(index: number, ...args: any[]): SinonStub
|
|
501
|
+
callsArgWithAsync(index: number, ...args: any[]): SinonStub;
|
|
533
502
|
/**
|
|
534
503
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
535
504
|
* In Node environment the callback is deferred with process.nextTick.
|
|
536
505
|
* In a browser the callback is deferred with setTimeout(callback, 0).
|
|
537
506
|
*/
|
|
538
|
-
callsArgOnWithAsync(index: number, context: any, ...args: any[]): SinonStub
|
|
507
|
+
callsArgOnWithAsync(index: number, context: any, ...args: any[]): SinonStub;
|
|
539
508
|
/**
|
|
540
509
|
* Makes the stub call the provided @param func when invoked.
|
|
541
510
|
* @param func
|
|
542
511
|
*/
|
|
543
|
-
callsFake(func: (...args:
|
|
512
|
+
callsFake(func: (...args: any[]) => any): SinonStub;
|
|
544
513
|
/**
|
|
545
514
|
* Replaces a new getter for this stub.
|
|
546
515
|
*/
|
|
547
|
-
get(func: () => any): SinonStub
|
|
516
|
+
get(func: () => any): SinonStub;
|
|
548
517
|
/**
|
|
549
518
|
* Defines a new setter for this stub.
|
|
550
519
|
* @param func
|
|
551
520
|
*/
|
|
552
|
-
set(func: (v: any) => void): SinonStub
|
|
521
|
+
set(func: (v: any) => void): SinonStub;
|
|
553
522
|
/**
|
|
554
523
|
* Defines the behavior of the stub on the @param n call. Useful for testing sequential interactions.
|
|
555
524
|
* There are methods onFirstCall, onSecondCall,onThirdCall to make stub definitions read more naturally.
|
|
556
525
|
* onCall can be combined with all of the behavior defining methods in this section. In particular, it can be used together with withArgs.
|
|
557
526
|
* @param n
|
|
558
527
|
*/
|
|
559
|
-
onCall(n: number): SinonStub
|
|
528
|
+
onCall(n: number): SinonStub;
|
|
560
529
|
/**
|
|
561
530
|
* Alias for stub.onCall(0);
|
|
562
531
|
*/
|
|
563
|
-
onFirstCall(): SinonStub
|
|
532
|
+
onFirstCall(): SinonStub;
|
|
564
533
|
/**
|
|
565
534
|
* Alias for stub.onCall(1);
|
|
566
535
|
*/
|
|
567
|
-
onSecondCall(): SinonStub
|
|
536
|
+
onSecondCall(): SinonStub;
|
|
568
537
|
/**
|
|
569
538
|
* Alias for stub.onCall(2);
|
|
570
539
|
*/
|
|
571
|
-
onThirdCall(): SinonStub
|
|
540
|
+
onThirdCall(): SinonStub;
|
|
572
541
|
/**
|
|
573
542
|
* Defines a new value for this stub.
|
|
574
543
|
* @param val
|
|
575
544
|
*/
|
|
576
|
-
value(val: any): SinonStub
|
|
545
|
+
value(val: any): SinonStub;
|
|
577
546
|
/**
|
|
578
547
|
* Set the displayName of the spy or stub.
|
|
579
548
|
* @param name
|
|
580
549
|
*/
|
|
581
|
-
named(name: string): SinonStub
|
|
550
|
+
named(name: string): SinonStub;
|
|
582
551
|
/**
|
|
583
552
|
* Similar to callsArg.
|
|
584
553
|
* Causes the stub to call the first callback it receives with the provided arguments (if any).
|
|
585
554
|
* If a method accepts more than one callback, you need to use callsArg to have the stub invoke other callbacks than the first one.
|
|
586
555
|
*/
|
|
587
|
-
yields(...args: any[]): SinonStub
|
|
556
|
+
yields(...args: any[]): SinonStub;
|
|
588
557
|
/**
|
|
589
558
|
* Like above but with an additional parameter to pass the this context.
|
|
590
559
|
*/
|
|
591
|
-
yieldsOn(context: any, ...args: any[]): SinonStub
|
|
592
|
-
yieldsRight(...args: any[]): SinonStub
|
|
560
|
+
yieldsOn(context: any, ...args: any[]): SinonStub;
|
|
561
|
+
yieldsRight(...args: any[]): SinonStub;
|
|
593
562
|
/**
|
|
594
563
|
* Causes the spy to invoke a callback passed as a property of an object to the spy.
|
|
595
564
|
* Like yields, yieldsTo grabs the first matching argument, finds the callback and calls it with the (optional) arguments.
|
|
596
565
|
* @param property
|
|
597
566
|
* @param args
|
|
598
567
|
*/
|
|
599
|
-
yieldsTo(property: string, ...args: any[]): SinonStub
|
|
568
|
+
yieldsTo(property: string, ...args: any[]): SinonStub;
|
|
600
569
|
/**
|
|
601
570
|
* Like above but with an additional parameter to pass the this context.
|
|
602
571
|
*/
|
|
603
|
-
yieldsToOn(property: string, context: any, ...args: any[]): SinonStub
|
|
572
|
+
yieldsToOn(property: string, context: any, ...args: any[]): SinonStub;
|
|
604
573
|
/**
|
|
605
574
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
606
575
|
* In Node environment the callback is deferred with process.nextTick.
|
|
607
576
|
* In a browser the callback is deferred with setTimeout(callback, 0).
|
|
608
577
|
* @param args
|
|
609
578
|
*/
|
|
610
|
-
yieldsAsync(...args: any[]): SinonStub
|
|
579
|
+
yieldsAsync(...args: any[]): SinonStub;
|
|
611
580
|
/**
|
|
612
581
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
613
582
|
* In Node environment the callback is deferred with process.nextTick.
|
|
@@ -615,7 +584,7 @@ declare namespace Sinon {
|
|
|
615
584
|
* @param context
|
|
616
585
|
* @param args
|
|
617
586
|
*/
|
|
618
|
-
yieldsOnAsync(context: any, ...args: any[]): SinonStub
|
|
587
|
+
yieldsOnAsync(context: any, ...args: any[]): SinonStub;
|
|
619
588
|
/**
|
|
620
589
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
621
590
|
* In Node environment the callback is deferred with process.nextTick.
|
|
@@ -623,7 +592,7 @@ declare namespace Sinon {
|
|
|
623
592
|
* @param property
|
|
624
593
|
* @param args
|
|
625
594
|
*/
|
|
626
|
-
yieldsToAsync(property: string, ...args: any[]): SinonStub
|
|
595
|
+
yieldsToAsync(property: string, ...args: any[]): SinonStub;
|
|
627
596
|
/**
|
|
628
597
|
* Same as their corresponding non-Async counterparts, but with callback being deferred at called after all instructions in the current call stack are processed.
|
|
629
598
|
* In Node environment the callback is deferred with process.nextTick.
|
|
@@ -632,26 +601,21 @@ declare namespace Sinon {
|
|
|
632
601
|
* @param context
|
|
633
602
|
* @param args
|
|
634
603
|
*/
|
|
635
|
-
yieldsToOnAsync(property: string, context: any, ...args: any[]): SinonStub
|
|
604
|
+
yieldsToOnAsync(property: string, context: any, ...args: any[]): SinonStub;
|
|
636
605
|
/**
|
|
637
606
|
* Stubs the method only for the provided arguments.
|
|
638
607
|
* This is useful to be more expressive in your assertions, where you can access the spy with the same call.
|
|
639
608
|
* It is also useful to create a stub that can act differently in response to different arguments.
|
|
640
609
|
* @param args
|
|
641
610
|
*/
|
|
642
|
-
withArgs(...args:
|
|
611
|
+
withArgs(...args: any[]): SinonStub;
|
|
643
612
|
}
|
|
644
613
|
|
|
645
614
|
interface SinonStubStatic {
|
|
646
|
-
/* tslint:disable:no-unnecessary-generics */
|
|
647
|
-
|
|
648
615
|
/**
|
|
649
616
|
* Creates an anonymous stub function
|
|
650
617
|
*/
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
/* tslint:enable:no-unnecessary-generics */
|
|
654
|
-
|
|
618
|
+
(): SinonStub;
|
|
655
619
|
/**
|
|
656
620
|
* Stubs all the object’s methods.
|
|
657
621
|
* Note that it’s usually better practice to stub individual methods, particularly on objects that you don’t understand or control all the methods for (e.g. library dependencies).
|
|
@@ -664,9 +628,7 @@ declare namespace Sinon {
|
|
|
664
628
|
* An exception is thrown if the property is not already a function.
|
|
665
629
|
* The original function can be restored by calling object.method.restore(); (or stub.restore();).
|
|
666
630
|
*/
|
|
667
|
-
<T
|
|
668
|
-
? SinonStub<TArgs, TReturnValue>
|
|
669
|
-
: SinonStub;
|
|
631
|
+
<T>(obj: T, method: keyof T): SinonStub;
|
|
670
632
|
}
|
|
671
633
|
|
|
672
634
|
interface SinonExpectation extends SinonStub {
|
|
@@ -763,17 +725,84 @@ declare namespace Sinon {
|
|
|
763
725
|
(obj: any): SinonMock;
|
|
764
726
|
}
|
|
765
727
|
|
|
766
|
-
type SinonTimerId =
|
|
728
|
+
type SinonTimerId = number | { id: number };
|
|
767
729
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
730
|
+
interface SinonFakeTimers {
|
|
731
|
+
now: number;
|
|
732
|
+
loopLimit: number;
|
|
733
|
+
|
|
734
|
+
setTimeout(callback: (...args: any[]) => void, timeout: number, ...args: any[]): SinonTimerId;
|
|
735
|
+
clearTimeout(id: SinonTimerId): void;
|
|
736
|
+
|
|
737
|
+
setInterval(callback: (...args: any[]) => void, timeout: number, ...args: any[]): SinonTimerId;
|
|
738
|
+
clearInterval(id: SinonTimerId): void;
|
|
739
|
+
|
|
740
|
+
setImmediate(callback: (...args: any[]) => void, ...args: any[]): SinonTimerId;
|
|
741
|
+
clearImmediate(id: SinonTimerId): void;
|
|
742
|
+
|
|
743
|
+
requestAnimationFrame(callback: (time: number) => void): SinonTimerId;
|
|
744
|
+
cancelAnimationFrame(id: SinonTimerId): void;
|
|
745
|
+
|
|
746
|
+
nextTick(callback: (...args: any[]) => void, ...args: any[]): void;
|
|
747
|
+
queueMicrotask(callback: () => void): void;
|
|
748
|
+
|
|
749
|
+
requestIdleCallback(func: (...args: any[]) => void, timeout?: number, ...args: any[]): SinonTimerId;
|
|
750
|
+
cancelIdleCallback(timerId: SinonTimerId): void;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Tick the clock ahead time milliseconds.
|
|
754
|
+
* Causes all timers scheduled within the affected time range to be called.
|
|
755
|
+
* time may be the number of milliseconds to advance the clock by or a human-readable string.
|
|
756
|
+
* Valid string formats are “08” for eight seconds, “01:00” for one minute and “02:34:10” for two hours, 34 minutes and ten seconds.
|
|
757
|
+
* time may be negative, which causes the clock to change but won’t fire any callbacks.
|
|
758
|
+
* @param ms
|
|
759
|
+
*/
|
|
760
|
+
tick(ms: number | string): number;
|
|
761
|
+
/**
|
|
762
|
+
* Advances the clock to the the moment of the first scheduled timer, firing it.
|
|
763
|
+
*/
|
|
764
|
+
next(): number;
|
|
765
|
+
/**
|
|
766
|
+
* This runs all pending timers until there are none remaining. If new timers are added while it is executing they will be run as well.
|
|
767
|
+
* This makes it easier to run asynchronous tests to completion without worrying about the number of timers they use, or the delays in those timers.
|
|
768
|
+
*/
|
|
769
|
+
runAll(): number;
|
|
770
|
+
runToLast(): number;
|
|
771
|
+
reset(): void;
|
|
772
|
+
runMicrotasks(): void;
|
|
773
|
+
runToFrame(): number;
|
|
774
|
+
|
|
775
|
+
Date(): Date;
|
|
776
|
+
Date(year: number): Date;
|
|
777
|
+
Date(year: number, month: number): Date;
|
|
778
|
+
Date(year: number, month: number, day: number): Date;
|
|
779
|
+
Date(year: number, month: number, day: number, hour: number): Date;
|
|
780
|
+
Date(year: number, month: number, day: number, hour: number, minute: number): Date;
|
|
781
|
+
Date(year: number, month: number, day: number, hour: number, minute: number, second: number): Date;
|
|
782
|
+
Date(year: number, month: number, day: number, hour: number, minute: number, second: number, ms: number): Date;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Restore the faked methods.
|
|
786
|
+
* Call in e.g. tearDown.
|
|
787
|
+
*/
|
|
788
|
+
restore(): void;
|
|
789
|
+
uninstall(): void;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Simulate the user changing the system clock while your program is running. It changes the 'now' timestamp
|
|
793
|
+
* without affecting timers, intervals or immediates.
|
|
794
|
+
* @param now The new 'now' in unix milliseconds
|
|
795
|
+
*/
|
|
796
|
+
setSystemTime(now: number): void;
|
|
797
|
+
/**
|
|
798
|
+
* Simulate the user changing the system clock while your program is running. It changes the 'now' timestamp
|
|
799
|
+
* without affecting timers, intervals or immediates.
|
|
800
|
+
* @param now The new 'now' as a JavaScript Date
|
|
801
|
+
*/
|
|
802
|
+
setSystemTime(date: Date): void;
|
|
803
|
+
|
|
804
|
+
countTimers(): number;
|
|
805
|
+
}
|
|
777
806
|
|
|
778
807
|
interface SinonFakeTimersConfig {
|
|
779
808
|
now: number | Date;
|
|
@@ -873,7 +902,7 @@ declare namespace Sinon {
|
|
|
873
902
|
}
|
|
874
903
|
|
|
875
904
|
interface SinonFakeXMLHttpRequestStatic {
|
|
876
|
-
new
|
|
905
|
+
new(): SinonFakeXMLHttpRequest;
|
|
877
906
|
/**
|
|
878
907
|
* Default false.
|
|
879
908
|
* When set to true, Sinon will check added filters if certain requests should be “unfaked”
|
|
@@ -885,9 +914,7 @@ declare namespace Sinon {
|
|
|
885
914
|
* If the filter returns true, the request will not be faked.
|
|
886
915
|
* @param filter
|
|
887
916
|
*/
|
|
888
|
-
addFilter(
|
|
889
|
-
filter: (method: string, url: string, async: boolean, username: string, password: string) => boolean,
|
|
890
|
-
): void;
|
|
917
|
+
addFilter(filter: (method: string, url: string, async: boolean, username: string, password: string) => boolean): void;
|
|
891
918
|
/**
|
|
892
919
|
* By assigning a function to the onCreate property of the returned object from useFakeXMLHttpRequest()
|
|
893
920
|
* you can subscribe to newly created FakeXMLHttpRequest objects. See below for the fake xhr object API.
|
|
@@ -1060,155 +1087,127 @@ declare namespace Sinon {
|
|
|
1060
1087
|
pass(assertion: any): void; // Overridable
|
|
1061
1088
|
|
|
1062
1089
|
// Methods
|
|
1063
|
-
|
|
1064
1090
|
/**
|
|
1065
1091
|
* Passes if spy was never called
|
|
1066
1092
|
* @param spy
|
|
1067
1093
|
*/
|
|
1068
|
-
notCalled(spy: SinonSpy
|
|
1094
|
+
notCalled(spy: SinonSpy): void;
|
|
1069
1095
|
/**
|
|
1070
1096
|
* Passes if spy was called at least once.
|
|
1071
1097
|
*/
|
|
1072
|
-
called(spy: SinonSpy
|
|
1098
|
+
called(spy: SinonSpy): void;
|
|
1073
1099
|
/**
|
|
1074
1100
|
* Passes if spy was called once and only once.
|
|
1075
1101
|
*/
|
|
1076
|
-
calledOnce(spy: SinonSpy
|
|
1102
|
+
calledOnce(spy: SinonSpy): void;
|
|
1077
1103
|
/**
|
|
1078
1104
|
* Passes if spy was called exactly twice.
|
|
1079
1105
|
*/
|
|
1080
|
-
calledTwice(spy: SinonSpy
|
|
1106
|
+
calledTwice(spy: SinonSpy): void;
|
|
1081
1107
|
/**
|
|
1082
1108
|
* Passes if spy was called exactly three times.
|
|
1083
1109
|
*/
|
|
1084
|
-
calledThrice(spy: SinonSpy
|
|
1110
|
+
calledThrice(spy: SinonSpy): void;
|
|
1085
1111
|
/**
|
|
1086
1112
|
* Passes if spy was called exactly num times.
|
|
1087
1113
|
*/
|
|
1088
|
-
callCount(spy: SinonSpy
|
|
1114
|
+
callCount(spy: SinonSpy, count: number): void;
|
|
1089
1115
|
/**
|
|
1090
1116
|
* Passes if provided spies were called in the specified order.
|
|
1091
1117
|
* @param spies
|
|
1092
1118
|
*/
|
|
1093
|
-
callOrder(...spies:
|
|
1119
|
+
callOrder(...spies: SinonSpy[]): void;
|
|
1094
1120
|
/**
|
|
1095
1121
|
* Passes if spy was ever called with obj as its this value.
|
|
1096
1122
|
* It’s possible to assert on a dedicated spy call: sinon.assert.calledOn(spy.firstCall, arg1, arg2, ...);.
|
|
1097
1123
|
*/
|
|
1098
|
-
calledOn(spyOrSpyCall: SinonSpy
|
|
1124
|
+
calledOn(spyOrSpyCall: SinonSpy | SinonSpyCall, obj: any): void;
|
|
1099
1125
|
/**
|
|
1100
1126
|
* Passes if spy was always called with obj as its this value.
|
|
1101
1127
|
*/
|
|
1102
|
-
alwaysCalledOn(spy: SinonSpy
|
|
1103
|
-
|
|
1128
|
+
alwaysCalledOn(spy: SinonSpy, obj: any): void;
|
|
1104
1129
|
/**
|
|
1105
1130
|
* Passes if spy was called with the provided arguments.
|
|
1106
1131
|
* It’s possible to assert on a dedicated spy call: sinon.assert.calledWith(spy.firstCall, arg1, arg2, ...);.
|
|
1107
1132
|
* @param spyOrSpyCall
|
|
1108
1133
|
* @param args
|
|
1109
1134
|
*/
|
|
1110
|
-
calledWith
|
|
1111
|
-
spyOrSpyCall: SinonSpy<TArgs> | SinonSpyCall<TArgs>,
|
|
1112
|
-
...args: MatchArguments<TArgs>
|
|
1113
|
-
): void;
|
|
1135
|
+
calledWith(spyOrSpyCall: SinonSpy | SinonSpyCall, ...args: any[]): void;
|
|
1114
1136
|
/**
|
|
1115
1137
|
* Passes if spy was always called with the provided arguments.
|
|
1116
1138
|
* @param spy
|
|
1117
1139
|
* @param args
|
|
1118
1140
|
*/
|
|
1119
|
-
alwaysCalledWith
|
|
1141
|
+
alwaysCalledWith(spy: SinonSpy, ...args: any[]): void;
|
|
1120
1142
|
/**
|
|
1121
1143
|
* Passes if spy was never called with the provided arguments.
|
|
1122
1144
|
* @param spy
|
|
1123
1145
|
* @param args
|
|
1124
1146
|
*/
|
|
1125
|
-
neverCalledWith
|
|
1147
|
+
neverCalledWith(spy: SinonSpy, ...args: any[]): void;
|
|
1126
1148
|
/**
|
|
1127
1149
|
* Passes if spy was called with the provided arguments and no others.
|
|
1128
1150
|
* It’s possible to assert on a dedicated spy call: sinon.assert.calledWithExactly(spy.getCall(1), arg1, arg2, ...);.
|
|
1129
1151
|
* @param spyOrSpyCall
|
|
1130
1152
|
* @param args
|
|
1131
1153
|
*/
|
|
1132
|
-
calledWithExactly
|
|
1133
|
-
spyOrSpyCall: SinonSpy<TArgs> | SinonSpyCall<TArgs>,
|
|
1134
|
-
...args: MatchArguments<TArgs>
|
|
1135
|
-
): void;
|
|
1136
|
-
/**
|
|
1137
|
-
* Passes if spy was called at exactly once with the provided arguments and no others.
|
|
1138
|
-
* @param spyOrSpyCall
|
|
1139
|
-
* @param args
|
|
1140
|
-
*/
|
|
1141
|
-
calledOnceWithExactly<TArgs extends any[]>(
|
|
1142
|
-
spyOrSpyCall: SinonSpy<TArgs> | SinonSpyCall<TArgs>,
|
|
1143
|
-
...args: MatchArguments<TArgs>
|
|
1144
|
-
): void;
|
|
1154
|
+
calledWithExactly(spyOrSpyCall: SinonSpy | SinonSpyCall, ...args: any[]): void;
|
|
1145
1155
|
/**
|
|
1146
1156
|
* Passes if spy was always called with the provided arguments and no others.
|
|
1147
1157
|
*/
|
|
1148
|
-
alwaysCalledWithExactly
|
|
1158
|
+
alwaysCalledWithExactly(spy: SinonSpy, ...args: any[]): void;
|
|
1149
1159
|
/**
|
|
1150
1160
|
* Passes if spy was called with matching arguments.
|
|
1151
1161
|
* This behaves the same way as sinon.assert.calledWith(spy, sinon.match(arg1), sinon.match(arg2), ...).
|
|
1152
|
-
* It
|
|
1153
|
-
*/
|
|
1154
|
-
calledWithMatch<TArgs extends any[]>(spyOrSpyCall: SinonSpy<TArgs> | SinonSpyCall<TArgs>, ...args: TArgs): void;
|
|
1155
|
-
/**
|
|
1156
|
-
* Passes if spy was called once with matching arguments.
|
|
1157
|
-
* This behaves the same way as calling both sinon.assert.calledOnce(spy) and
|
|
1158
|
-
* sinon.assert.calledWithMatch(spy, ...).
|
|
1162
|
+
* It’s possible to assert on a dedicated spy call: sinon.assert.calledWithMatch(spy.secondCall, arg1, arg2, ...);.
|
|
1159
1163
|
*/
|
|
1160
|
-
|
|
1161
|
-
spyOrSpyCall: SinonSpy<TArgs> | SinonSpyCall<TArgs>,
|
|
1162
|
-
...args: TArgs
|
|
1163
|
-
): void;
|
|
1164
|
+
calledWithMatch(spyOrSpyCall: SinonSpy | SinonSpyCall, ...args: any[]): void;
|
|
1164
1165
|
/**
|
|
1165
1166
|
* Passes if spy was always called with matching arguments.
|
|
1166
1167
|
* This behaves the same way as sinon.assert.alwaysCalledWith(spy, sinon.match(arg1), sinon.match(arg2), ...).
|
|
1167
1168
|
*/
|
|
1168
|
-
alwaysCalledWithMatch
|
|
1169
|
+
alwaysCalledWithMatch(spy: SinonSpy, ...args: any[]): void;
|
|
1169
1170
|
/**
|
|
1170
1171
|
* Passes if spy was never called with matching arguments.
|
|
1171
1172
|
* This behaves the same way as sinon.assert.neverCalledWith(spy, sinon.match(arg1), sinon.match(arg2), ...).
|
|
1172
1173
|
* @param spy
|
|
1173
1174
|
* @param args
|
|
1174
1175
|
*/
|
|
1175
|
-
neverCalledWithMatch
|
|
1176
|
+
neverCalledWithMatch(spy: SinonSpy, ...args: any[]): void;
|
|
1176
1177
|
/**
|
|
1177
1178
|
* Passes if spy was called with the new operator.
|
|
1178
1179
|
* It’s possible to assert on a dedicated spy call: sinon.assert.calledWithNew(spy.secondCall, arg1, arg2, ...);.
|
|
1179
1180
|
* @param spyOrSpyCall
|
|
1180
1181
|
*/
|
|
1181
|
-
calledWithNew(spyOrSpyCall: SinonSpy
|
|
1182
|
+
calledWithNew(spyOrSpyCall: SinonSpy | SinonSpyCall): void;
|
|
1182
1183
|
/**
|
|
1183
1184
|
* Passes if spy threw any exception.
|
|
1184
1185
|
*/
|
|
1185
|
-
threw(spyOrSpyCall: SinonSpy
|
|
1186
|
+
threw(spyOrSpyCall: SinonSpy | SinonSpyCall): void;
|
|
1186
1187
|
/**
|
|
1187
1188
|
* Passes if spy threw the given exception.
|
|
1188
1189
|
* The exception is an actual object.
|
|
1189
1190
|
* It’s possible to assert on a dedicated spy call: sinon.assert.threw(spy.thirdCall, exception);.
|
|
1190
1191
|
*/
|
|
1191
|
-
threw(spyOrSpyCall: SinonSpy
|
|
1192
|
+
threw(spyOrSpyCall: SinonSpy | SinonSpyCall, exception: string): void;
|
|
1192
1193
|
/**
|
|
1193
1194
|
* Passes if spy threw the given exception.
|
|
1194
1195
|
* The exception is a String denoting its type.
|
|
1195
1196
|
* It’s possible to assert on a dedicated spy call: sinon.assert.threw(spy.thirdCall, exception);.
|
|
1196
1197
|
*/
|
|
1197
|
-
threw(spyOrSpyCall: SinonSpy
|
|
1198
|
-
|
|
1198
|
+
threw(spyOrSpyCall: SinonSpy | SinonSpyCall, exception: any): void;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Like threw, only required for all calls to the spy.
|
|
1201
1201
|
*/
|
|
1202
|
-
alwaysThrew(spy: SinonSpy
|
|
1202
|
+
alwaysThrew(spy: SinonSpy): void;
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Like threw, only required for all calls to the spy.
|
|
1205
1205
|
*/
|
|
1206
|
-
alwaysThrew(spy: SinonSpy
|
|
1206
|
+
alwaysThrew(spy: SinonSpy, exception: string): void;
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Like threw, only required for all calls to the spy.
|
|
1209
1209
|
*/
|
|
1210
|
-
alwaysThrew(spy: SinonSpy
|
|
1211
|
-
|
|
1210
|
+
alwaysThrew(spy: SinonSpy, exception: any): void;
|
|
1212
1211
|
/**
|
|
1213
1212
|
* Uses sinon.match to test if the arguments can be considered a match.
|
|
1214
1213
|
*/
|
|
@@ -1464,9 +1463,7 @@ declare namespace Sinon {
|
|
|
1464
1463
|
/**
|
|
1465
1464
|
* Replaces a type with a Sinon stub if it's a function.
|
|
1466
1465
|
*/
|
|
1467
|
-
type SinonStubbedMember<T> = T extends
|
|
1468
|
-
? SinonStub<TArgs, TReturnValue>
|
|
1469
|
-
: T;
|
|
1466
|
+
type SinonStubbedMember<T> = T extends Function ? SinonStub : T;
|
|
1470
1467
|
|
|
1471
1468
|
interface SinonFake {
|
|
1472
1469
|
/**
|
|
@@ -1520,7 +1517,6 @@ declare namespace Sinon {
|
|
|
1520
1517
|
clock: SinonFakeTimers;
|
|
1521
1518
|
requests: SinonFakeXMLHttpRequest[];
|
|
1522
1519
|
server: SinonFakeServer;
|
|
1523
|
-
match: SinonMatch;
|
|
1524
1520
|
/**
|
|
1525
1521
|
* Works exactly like sinon.spy
|
|
1526
1522
|
*/
|
|
@@ -1534,8 +1530,6 @@ declare namespace Sinon {
|
|
|
1534
1530
|
*/
|
|
1535
1531
|
mock: SinonMockStatic;
|
|
1536
1532
|
|
|
1537
|
-
fake: SinonFake;
|
|
1538
|
-
|
|
1539
1533
|
/**
|
|
1540
1534
|
* * No param : Causes Sinon to replace the global setTimeout, clearTimeout, setInterval, clearInterval, setImmediate, clearImmediate, process.hrtime, performance.now(when available)
|
|
1541
1535
|
* and Date with a custom implementation which is bound to the returned clock object.
|
|
@@ -1604,7 +1598,10 @@ declare namespace Sinon {
|
|
|
1604
1598
|
* replacement can be any value, including spies, stubs and fakes.
|
|
1605
1599
|
* This method only works on non-accessor properties, for replacing accessors, use sandbox.replaceGetter() and sandbox.replaceSetter().
|
|
1606
1600
|
*/
|
|
1607
|
-
replace<T, TKey extends keyof T>(
|
|
1601
|
+
replace<T, TKey extends keyof T>(
|
|
1602
|
+
obj: T,
|
|
1603
|
+
prop: TKey,
|
|
1604
|
+
replacement: T[TKey]): T[TKey];
|
|
1608
1605
|
/**
|
|
1609
1606
|
* Replaces getter for property on object with replacement argument. Attempts to replace an already replaced getter cause an exception.
|
|
1610
1607
|
* replacement must be a Function, and can be instances of spies, stubs and fakes.
|
|
@@ -1612,7 +1609,10 @@ declare namespace Sinon {
|
|
|
1612
1609
|
* @param prop
|
|
1613
1610
|
* @param replacement
|
|
1614
1611
|
*/
|
|
1615
|
-
replaceGetter<T, TKey extends keyof T>(
|
|
1612
|
+
replaceGetter<T, TKey extends keyof T>(
|
|
1613
|
+
obj: T,
|
|
1614
|
+
prop: TKey,
|
|
1615
|
+
replacement: () => T[TKey]): () => T[TKey];
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Replaces setter for property on object with replacement argument. Attempts to replace an already replaced setter cause an exception.
|
|
1618
1618
|
* replacement must be a Function, and can be instances of spies, stubs and fakes.
|
|
@@ -1623,8 +1623,7 @@ declare namespace Sinon {
|
|
|
1623
1623
|
replaceSetter<T, TKey extends keyof T>(
|
|
1624
1624
|
obj: T,
|
|
1625
1625
|
prop: TKey,
|
|
1626
|
-
replacement: (val: T[TKey]) => void
|
|
1627
|
-
): (val: T[TKey]) => void;
|
|
1626
|
+
replacement: (val: T[TKey]) => void): (val: T[TKey]) => void;
|
|
1628
1627
|
|
|
1629
1628
|
/**
|
|
1630
1629
|
* Creates a new object with the given functions as the prototype and stubs all implemented functions.
|
|
@@ -1637,15 +1636,14 @@ declare namespace Sinon {
|
|
|
1637
1636
|
*/
|
|
1638
1637
|
createStubInstance<TType>(
|
|
1639
1638
|
constructor: StubbableType<TType>,
|
|
1640
|
-
overrides?: {
|
|
1641
|
-
[K in keyof TType]?:
|
|
1642
|
-
| SinonStubbedMember<TType[K]>
|
|
1643
|
-
| (TType[K] extends (...args: any[]) => infer R ? R : TType[K]);
|
|
1644
|
-
},
|
|
1639
|
+
overrides?: { [K in keyof TType]?: any }
|
|
1645
1640
|
): SinonStubbedInstance<TType>;
|
|
1646
1641
|
}
|
|
1647
1642
|
|
|
1648
1643
|
interface SinonApi {
|
|
1644
|
+
fake: SinonFake;
|
|
1645
|
+
match: SinonMatch;
|
|
1646
|
+
spyCall(...args: any[]): SinonSpyCall;
|
|
1649
1647
|
expectation: SinonExpectationStatic;
|
|
1650
1648
|
|
|
1651
1649
|
clock: {
|
|
@@ -1663,25 +1661,18 @@ declare namespace Sinon {
|
|
|
1663
1661
|
*/
|
|
1664
1662
|
createSandbox(config?: Partial<SinonSandboxConfig>): SinonSandbox;
|
|
1665
1663
|
defaultConfig: Partial<SinonSandboxConfig>;
|
|
1664
|
+
}
|
|
1666
1665
|
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
addBehavior: (name: string, fn: (fake: SinonStub, ...userArgs: any[]) => void) => void;
|
|
1675
|
-
|
|
1676
|
-
/**
|
|
1677
|
-
* Replace the default formatter used when formatting ECMAScript object
|
|
1678
|
-
* An example converts a basic object, such as {id: 42 }, to a string
|
|
1679
|
-
* on a format of your choosing, such as "{ id: 42 }"
|
|
1680
|
-
*/
|
|
1681
|
-
setFormatter: (customFormatter: (...args: any[]) => string) => void;
|
|
1666
|
+
interface LegacySandbox {
|
|
1667
|
+
sandbox: {
|
|
1668
|
+
/**
|
|
1669
|
+
* @deprecated Since 5.0, use `sinon.createSandbox` instead
|
|
1670
|
+
*/
|
|
1671
|
+
create(config?: Partial<SinonSandboxConfig>): SinonSandbox;
|
|
1672
|
+
};
|
|
1682
1673
|
}
|
|
1683
1674
|
|
|
1684
|
-
type SinonStatic = SinonSandbox & SinonApi;
|
|
1675
|
+
type SinonStatic = SinonSandbox & LegacySandbox & SinonApi;
|
|
1685
1676
|
}
|
|
1686
1677
|
|
|
1687
1678
|
declare const Sinon: Sinon.SinonStatic;
|