@dxyl/utils 1.0.1 → 1.1.1
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/dist/index.es.js +13039 -0
- package/dist/index.umd.js +63 -0
- package/lib/glslang/glslang.d.ts +14 -0
- package/lib/glslang/glslang.js +113 -0
- package/lib/glslang/glslang.wasm +0 -0
- package/lib/twgsl/twgsl.js +53 -0
- package/lib/twgsl/twgsl.wasm +0 -0
- package/package.json +27 -31
- package/readme.md +0 -0
- package/types/Color.d.ts +69 -0
- package/types/Options.d.ts +70 -0
- package/types/antv-util/color/arr2rgb.d.ts +12 -0
- package/types/antv-util/color/gradient.d.ts +6 -0
- package/types/antv-util/color/index.d.ts +4 -0
- package/types/antv-util/color/rgb2arr.d.ts +6 -0
- package/types/antv-util/color/tocssgradient.d.ts +1 -0
- package/types/antv-util/color/torgb.d.ts +6 -0
- package/types/antv-util/helper/index.d.ts +2 -0
- package/types/antv-util/helper/mod.d.ts +1 -0
- package/types/antv-util/helper/to-radian.d.ts +1 -0
- package/types/antv-util/index.d.ts +3 -0
- package/types/antv-util/matrix/index.d.ts +27 -0
- package/types/antv-util/path/convert/path-2-absolute.d.ts +2 -0
- package/types/antv-util/path/convert/path-2-curve.d.ts +2 -0
- package/types/antv-util/path/convert/path-2-string.d.ts +6 -0
- package/types/antv-util/path/index.d.ts +17 -0
- package/types/antv-util/path/parser/finalize-segment.d.ts +5 -0
- package/types/antv-util/path/parser/is-arc-command.d.ts +4 -0
- package/types/antv-util/path/parser/is-digit-start.d.ts +6 -0
- package/types/antv-util/path/parser/is-path-command.d.ts +4 -0
- package/types/antv-util/path/parser/is-space.d.ts +4 -0
- package/types/antv-util/path/parser/params-count.d.ts +13 -0
- package/types/antv-util/path/parser/params-parser.d.ts +10 -0
- package/types/antv-util/path/parser/parse-path-string.d.ts +6 -0
- package/types/antv-util/path/parser/path-parser.d.ts +16 -0
- package/types/antv-util/path/parser/scan-flag.d.ts +6 -0
- package/types/antv-util/path/parser/scan-param.d.ts +6 -0
- package/types/antv-util/path/parser/scan-segment.d.ts +6 -0
- package/types/antv-util/path/parser/skip-spaces.d.ts +7 -0
- package/types/antv-util/path/process/arc-2-cubic.d.ts +7 -0
- package/types/antv-util/path/process/clone-path.d.ts +2 -0
- package/types/antv-util/path/process/fix-arc.d.ts +2 -0
- package/types/antv-util/path/process/line-2-cubic.d.ts +1 -0
- package/types/antv-util/path/process/normalize-path.d.ts +8 -0
- package/types/antv-util/path/process/normalize-segment.d.ts +6 -0
- package/types/antv-util/path/process/quad-2-cubic.d.ts +1 -0
- package/types/antv-util/path/process/reverse-curve.d.ts +2 -0
- package/types/antv-util/path/process/round-path.d.ts +6 -0
- package/types/antv-util/path/process/segment-2-cubic.d.ts +2 -0
- package/types/antv-util/path/types.d.ts +122 -0
- package/types/antv-util/path/util/distance-square-root.d.ts +1 -0
- package/types/antv-util/path/util/equalize-segments.d.ts +2 -0
- package/types/antv-util/path/util/get-draw-direction.d.ts +2 -0
- package/types/antv-util/path/util/get-path-area.d.ts +8 -0
- package/types/antv-util/path/util/get-path-bbox-total-length.d.ts +5 -0
- package/types/antv-util/path/util/get-path-bbox.d.ts +5 -0
- package/types/antv-util/path/util/get-point-at-length.d.ts +5 -0
- package/types/antv-util/path/util/get-properties-at-length.d.ts +6 -0
- package/types/antv-util/path/util/get-properties-at-point.d.ts +7 -0
- package/types/antv-util/path/util/get-rotated-curve.d.ts +2 -0
- package/types/antv-util/path/util/get-total-length.d.ts +8 -0
- package/types/antv-util/path/util/is-absolute-array.d.ts +6 -0
- package/types/antv-util/path/util/is-curve-array.d.ts +9 -0
- package/types/antv-util/path/util/is-normalized-array.d.ts +7 -0
- package/types/antv-util/path/util/is-path-array.d.ts +5 -0
- package/types/antv-util/path/util/is-point-in-stroke.d.ts +5 -0
- package/types/antv-util/path/util/mid-point.d.ts +1 -0
- package/types/antv-util/path/util/path-length-factory.d.ts +7 -0
- package/types/antv-util/path/util/rotate-vector.d.ts +4 -0
- package/types/antv-util/path/util/segment-arc-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-cubic-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-line-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-quad-factory.d.ts +6 -0
- package/types/callbacks.d.ts +30 -0
- package/types/color/colord/src/colorModels/cmyk.d.ts +23 -0
- package/types/color/colord/src/colorModels/cmykString.d.ts +7 -0
- package/types/color/colord/src/colorModels/hex.d.ts +5 -0
- package/types/color/colord/src/colorModels/hsl.d.ts +8 -0
- package/types/color/colord/src/colorModels/hslString.d.ts +7 -0
- package/types/color/colord/src/colorModels/hsv.d.ts +6 -0
- package/types/color/colord/src/colorModels/hwb.d.ts +6 -0
- package/types/color/colord/src/colorModels/hwbString.d.ts +7 -0
- package/types/color/colord/src/colorModels/lab.d.ts +18 -0
- package/types/color/colord/src/colorModels/lch.d.ts +19 -0
- package/types/color/colord/src/colorModels/lchString.d.ts +7 -0
- package/types/color/colord/src/colorModels/rgb.d.ts +13 -0
- package/types/color/colord/src/colorModels/rgbString.d.ts +7 -0
- package/types/color/colord/src/colorModels/xyz.d.ts +30 -0
- package/types/color/colord/src/colord.d.ts +103 -0
- package/types/color/colord/src/constants.d.ts +10 -0
- package/types/color/colord/src/extend.d.ts +4 -0
- package/types/color/colord/src/get/getBrightness.d.ts +7 -0
- package/types/color/colord/src/get/getContrast.d.ts +6 -0
- package/types/color/colord/src/get/getLuminance.d.ts +6 -0
- package/types/color/colord/src/get/getPerceivedDifference.d.ts +24 -0
- package/types/color/colord/src/helpers.d.ts +20 -0
- package/types/color/colord/src/index.d.ts +5 -0
- package/types/color/colord/src/manipulate/changeAlpha.d.ts +2 -0
- package/types/color/colord/src/manipulate/invert.d.ts +2 -0
- package/types/color/colord/src/manipulate/lighten.d.ts +2 -0
- package/types/color/colord/src/manipulate/mix.d.ts +2 -0
- package/types/color/colord/src/manipulate/saturate.d.ts +2 -0
- package/types/color/colord/src/parse.d.ts +8 -0
- package/types/color/colord/src/plugins/a11y.d.ts +38 -0
- package/types/color/colord/src/plugins/cmyk.d.ts +24 -0
- package/types/color/colord/src/plugins/harmonies.d.ts +16 -0
- package/types/color/colord/src/plugins/hwb.d.ts +23 -0
- package/types/color/colord/src/plugins/lab.d.ts +23 -0
- package/types/color/colord/src/plugins/lch.d.ts +24 -0
- package/types/color/colord/src/plugins/minify.d.ts +20 -0
- package/types/color/colord/src/plugins/mix.d.ts +27 -0
- package/types/color/colord/src/plugins/names.d.ts +19 -0
- package/types/color/colord/src/plugins/xyz.d.ts +14 -0
- package/types/color/colord/src/random.d.ts +2 -0
- package/types/color/colord/src/types.d.ts +67 -0
- package/types/data/immer.d.ts +262 -0
- package/types/data/immutable.d.ts +5127 -0
- package/types/data/mobx.d.ts +154 -0
- package/types/data/reactivity.d.ts +755 -0
- package/types/data/signals.d.ts +144 -0
- package/types/deepmerge.d.ts +16 -0
- package/types/events/eventTarget.d.ts +93 -0
- package/types/events/event_emiter.d.ts +43 -0
- package/types/events/eventemitter3.d.ts +135 -0
- package/types/events/mitt.d.ts +21 -0
- package/types/fast-deep-equal.d.ts +1 -0
- package/types/index.d.ts +20 -0
- package/types/ismobilejs.d.ts +46 -0
- package/types/lodash/_DataView.d.ts +2 -0
- package/types/lodash/_Hash.d.ts +29 -0
- package/types/lodash/_LazyWrapper.d.ts +26 -0
- package/types/lodash/_ListCache.d.ts +29 -0
- package/types/lodash/_LodashWrapper.d.ts +24 -0
- package/types/lodash/_Map.d.ts +2 -0
- package/types/lodash/_MapCache.d.ts +29 -0
- package/types/lodash/_Promise.d.ts +2 -0
- package/types/lodash/_Set.d.ts +2 -0
- package/types/lodash/_SetCache.d.ts +28 -0
- package/types/lodash/_Stack.d.ts +32 -0
- package/types/lodash/_Symbol.d.ts +3 -0
- package/types/lodash/_Uint8Array.d.ts +3 -0
- package/types/lodash/_WeakMap.d.ts +2 -0
- package/types/lodash/_addMapEntry.d.ts +10 -0
- package/types/lodash/_addSetEntry.d.ts +10 -0
- package/types/lodash/_apply.d.ts +12 -0
- package/types/lodash/_arrayAggregator.d.ts +12 -0
- package/types/lodash/_arrayEach.d.ts +11 -0
- package/types/lodash/_arrayEachRight.d.ts +11 -0
- package/types/lodash/_arrayEvery.d.ts +12 -0
- package/types/lodash/_arrayFilter.d.ts +11 -0
- package/types/lodash/_arrayIncludes.d.ts +11 -0
- package/types/lodash/_arrayIncludesWith.d.ts +11 -0
- package/types/lodash/_arrayLikeKeys.d.ts +10 -0
- package/types/lodash/_arrayMap.d.ts +11 -0
- package/types/lodash/_arrayPush.d.ts +10 -0
- package/types/lodash/_arrayReduce.d.ts +14 -0
- package/types/lodash/_arrayReduceRight.d.ts +14 -0
- package/types/lodash/_arraySample.d.ts +9 -0
- package/types/lodash/_arraySampleSize.d.ts +10 -0
- package/types/lodash/_arrayShuffle.d.ts +9 -0
- package/types/lodash/_arraySome.d.ts +12 -0
- package/types/lodash/_asciiSize.d.ts +9 -0
- package/types/lodash/_asciiToArray.d.ts +9 -0
- package/types/lodash/_asciiWords.d.ts +9 -0
- package/types/lodash/_assignMergeValue.d.ts +11 -0
- package/types/lodash/_assignValue.d.ts +12 -0
- package/types/lodash/_assocIndexOf.d.ts +10 -0
- package/types/lodash/_baseAggregator.d.ts +13 -0
- package/types/lodash/_baseAssign.d.ts +11 -0
- package/types/lodash/_baseAssignIn.d.ts +11 -0
- package/types/lodash/_baseAssignValue.d.ts +11 -0
- package/types/lodash/_baseAt.d.ts +10 -0
- package/types/lodash/_baseClamp.d.ts +11 -0
- package/types/lodash/_baseClone.d.ts +18 -0
- package/types/lodash/_baseConforms.d.ts +9 -0
- package/types/lodash/_baseConformsTo.d.ts +10 -0
- package/types/lodash/_baseCreate.d.ts +2 -0
- package/types/lodash/_baseDelay.d.ts +12 -0
- package/types/lodash/_baseDifference.d.ts +13 -0
- package/types/lodash/_baseEach.d.ts +10 -0
- package/types/lodash/_baseEachRight.d.ts +10 -0
- package/types/lodash/_baseEvery.d.ts +11 -0
- package/types/lodash/_baseExtremum.d.ts +12 -0
- package/types/lodash/_baseFill.d.ts +12 -0
- package/types/lodash/_baseFilter.d.ts +10 -0
- package/types/lodash/_baseFindIndex.d.ts +13 -0
- package/types/lodash/_baseFindKey.d.ts +13 -0
- package/types/lodash/_baseFlatten.d.ts +13 -0
- package/types/lodash/_baseFor.d.ts +13 -0
- package/types/lodash/_baseForOwn.d.ts +10 -0
- package/types/lodash/_baseForOwnRight.d.ts +10 -0
- package/types/lodash/_baseForRight.d.ts +12 -0
- package/types/lodash/_baseFunctions.d.ts +11 -0
- package/types/lodash/_baseGet.d.ts +10 -0
- package/types/lodash/_baseGetAllKeys.d.ts +13 -0
- package/types/lodash/_baseGetTag.d.ts +9 -0
- package/types/lodash/_baseGt.d.ts +11 -0
- package/types/lodash/_baseHas.d.ts +10 -0
- package/types/lodash/_baseHasIn.d.ts +10 -0
- package/types/lodash/_baseInRange.d.ts +11 -0
- package/types/lodash/_baseIndexOf.d.ts +11 -0
- package/types/lodash/_baseIndexOfWith.d.ts +12 -0
- package/types/lodash/_baseIntersection.d.ts +12 -0
- package/types/lodash/_baseInverter.d.ts +13 -0
- package/types/lodash/_baseInvoke.d.ts +12 -0
- package/types/lodash/_baseIsArguments.d.ts +9 -0
- package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
- package/types/lodash/_baseIsDate.d.ts +9 -0
- package/types/lodash/_baseIsEqual.d.ts +16 -0
- package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
- package/types/lodash/_baseIsMap.d.ts +9 -0
- package/types/lodash/_baseIsMatch.d.ts +12 -0
- package/types/lodash/_baseIsNaN.d.ts +9 -0
- package/types/lodash/_baseIsNative.d.ts +10 -0
- package/types/lodash/_baseIsRegExp.d.ts +9 -0
- package/types/lodash/_baseIsSet.d.ts +9 -0
- package/types/lodash/_baseIsTypedArray.d.ts +9 -0
- package/types/lodash/_baseIteratee.d.ts +9 -0
- package/types/lodash/_baseKeys.d.ts +9 -0
- package/types/lodash/_baseKeysIn.d.ts +9 -0
- package/types/lodash/_baseLodash.d.ts +7 -0
- package/types/lodash/_baseLt.d.ts +11 -0
- package/types/lodash/_baseMap.d.ts +10 -0
- package/types/lodash/_baseMatches.d.ts +9 -0
- package/types/lodash/_baseMatchesProperty.d.ts +10 -0
- package/types/lodash/_baseMean.d.ts +11 -0
- package/types/lodash/_baseMerge.d.ts +13 -0
- package/types/lodash/_baseMergeDeep.d.ts +17 -0
- package/types/lodash/_baseNth.d.ts +10 -0
- package/types/lodash/_baseOrderBy.d.ts +11 -0
- package/types/lodash/_basePick.d.ts +11 -0
- package/types/lodash/_basePickBy.d.ts +11 -0
- package/types/lodash/_baseProperty.d.ts +9 -0
- package/types/lodash/_basePropertyDeep.d.ts +9 -0
- package/types/lodash/_basePropertyOf.d.ts +9 -0
- package/types/lodash/_basePullAll.d.ts +13 -0
- package/types/lodash/_basePullAt.d.ts +11 -0
- package/types/lodash/_baseRandom.d.ts +11 -0
- package/types/lodash/_baseRange.d.ts +13 -0
- package/types/lodash/_baseReduce.d.ts +15 -0
- package/types/lodash/_baseRepeat.d.ts +10 -0
- package/types/lodash/_baseRest.d.ts +10 -0
- package/types/lodash/_baseSample.d.ts +9 -0
- package/types/lodash/_baseSampleSize.d.ts +10 -0
- package/types/lodash/_baseSet.d.ts +12 -0
- package/types/lodash/_baseSetData.d.ts +10 -0
- package/types/lodash/_baseSetToString.d.ts +10 -0
- package/types/lodash/_baseShuffle.d.ts +9 -0
- package/types/lodash/_baseSlice.d.ts +11 -0
- package/types/lodash/_baseSome.d.ts +11 -0
- package/types/lodash/_baseSortBy.d.ts +12 -0
- package/types/lodash/_baseSortedIndex.d.ts +14 -0
- package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
- package/types/lodash/_baseSortedUniq.d.ts +11 -0
- package/types/lodash/_baseSum.d.ts +11 -0
- package/types/lodash/_baseTimes.d.ts +11 -0
- package/types/lodash/_baseToNumber.d.ts +10 -0
- package/types/lodash/_baseToPairs.d.ts +11 -0
- package/types/lodash/_baseToString.d.ts +10 -0
- package/types/lodash/_baseTrim.d.ts +9 -0
- package/types/lodash/_baseUnary.d.ts +9 -0
- package/types/lodash/_baseUniq.d.ts +11 -0
- package/types/lodash/_baseUnset.d.ts +10 -0
- package/types/lodash/_baseUpdate.d.ts +12 -0
- package/types/lodash/_baseValues.d.ts +12 -0
- package/types/lodash/_baseWhile.d.ts +13 -0
- package/types/lodash/_baseWrapperValue.d.ts +12 -0
- package/types/lodash/_baseXor.d.ts +12 -0
- package/types/lodash/_baseZipObject.d.ts +11 -0
- package/types/lodash/_cacheHas.d.ts +10 -0
- package/types/lodash/_castArrayLikeObject.d.ts +9 -0
- package/types/lodash/_castFunction.d.ts +9 -0
- package/types/lodash/_castPath.d.ts +10 -0
- package/types/lodash/_castRest.d.ts +11 -0
- package/types/lodash/_castSlice.d.ts +11 -0
- package/types/lodash/_charsEndIndex.d.ts +11 -0
- package/types/lodash/_charsStartIndex.d.ts +11 -0
- package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
- package/types/lodash/_cloneBuffer.d.ts +10 -0
- package/types/lodash/_cloneDataView.d.ts +10 -0
- package/types/lodash/_cloneMap.d.ts +11 -0
- package/types/lodash/_cloneRegExp.d.ts +9 -0
- package/types/lodash/_cloneSet.d.ts +11 -0
- package/types/lodash/_cloneSymbol.d.ts +9 -0
- package/types/lodash/_cloneTypedArray.d.ts +10 -0
- package/types/lodash/_compareAscending.d.ts +10 -0
- package/types/lodash/_compareMultiple.d.ts +16 -0
- package/types/lodash/_composeArgs.d.ts +13 -0
- package/types/lodash/_composeArgsRight.d.ts +13 -0
- package/types/lodash/_copyArray.d.ts +10 -0
- package/types/lodash/_copyObject.d.ts +12 -0
- package/types/lodash/_copySymbols.d.ts +10 -0
- package/types/lodash/_copySymbolsIn.d.ts +10 -0
- package/types/lodash/_coreJsData.d.ts +3 -0
- package/types/lodash/_countHolders.d.ts +10 -0
- package/types/lodash/_createAggregator.d.ts +10 -0
- package/types/lodash/_createAssigner.d.ts +9 -0
- package/types/lodash/_createBaseEach.d.ts +10 -0
- package/types/lodash/_createBaseFor.d.ts +9 -0
- package/types/lodash/_createBind.d.ts +12 -0
- package/types/lodash/_createCaseFirst.d.ts +9 -0
- package/types/lodash/_createCompounder.d.ts +9 -0
- package/types/lodash/_createCtor.d.ts +10 -0
- package/types/lodash/_createCurry.d.ts +11 -0
- package/types/lodash/_createFind.d.ts +9 -0
- package/types/lodash/_createFlow.d.ts +9 -0
- package/types/lodash/_createHybrid.d.ts +21 -0
- package/types/lodash/_createInverter.d.ts +10 -0
- package/types/lodash/_createMathOperation.d.ts +10 -0
- package/types/lodash/_createOver.d.ts +9 -0
- package/types/lodash/_createPadding.d.ts +11 -0
- package/types/lodash/_createPartial.d.ts +14 -0
- package/types/lodash/_createRange.d.ts +9 -0
- package/types/lodash/_createRecurry.d.ts +19 -0
- package/types/lodash/_createRelationalOperation.d.ts +9 -0
- package/types/lodash/_createRound.d.ts +9 -0
- package/types/lodash/_createSet.d.ts +9 -0
- package/types/lodash/_createToPairs.d.ts +9 -0
- package/types/lodash/_createWrap.d.ts +27 -0
- package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
- package/types/lodash/_customDefaultsMerge.d.ts +16 -0
- package/types/lodash/_customOmitClone.d.ts +11 -0
- package/types/lodash/_deburrLetter.d.ts +10 -0
- package/types/lodash/_defineProperty.d.ts +2 -0
- package/types/lodash/_equalArrays.d.ts +15 -0
- package/types/lodash/_equalByTag.d.ts +19 -0
- package/types/lodash/_equalObjects.d.ts +15 -0
- package/types/lodash/_escapeHtmlChar.d.ts +9 -0
- package/types/lodash/_escapeStringChar.d.ts +9 -0
- package/types/lodash/_flatRest.d.ts +9 -0
- package/types/lodash/_freeGlobal.d.ts +3 -0
- package/types/lodash/_getAllKeys.d.ts +9 -0
- package/types/lodash/_getAllKeysIn.d.ts +10 -0
- package/types/lodash/_getData.d.ts +9 -0
- package/types/lodash/_getFuncName.d.ts +9 -0
- package/types/lodash/_getHolder.d.ts +9 -0
- package/types/lodash/_getMapData.d.ts +10 -0
- package/types/lodash/_getMatchData.d.ts +9 -0
- package/types/lodash/_getNative.d.ts +10 -0
- package/types/lodash/_getPrototype.d.ts +3 -0
- package/types/lodash/_getRawTag.d.ts +9 -0
- package/types/lodash/_getSymbols.d.ts +9 -0
- package/types/lodash/_getSymbolsIn.d.ts +9 -0
- package/types/lodash/_getTag.d.ts +10 -0
- package/types/lodash/_getValue.d.ts +10 -0
- package/types/lodash/_getView.d.ts +12 -0
- package/types/lodash/_getWrapDetails.d.ts +9 -0
- package/types/lodash/_hasPath.d.ts +11 -0
- package/types/lodash/_hasUnicode.d.ts +9 -0
- package/types/lodash/_hasUnicodeWord.d.ts +9 -0
- package/types/lodash/_hashClear.d.ts +13 -0
- package/types/lodash/_hashDelete.d.ts +12 -0
- package/types/lodash/_hashGet.d.ts +11 -0
- package/types/lodash/_hashHas.d.ts +11 -0
- package/types/lodash/_hashSet.d.ts +12 -0
- package/types/lodash/_initCloneArray.d.ts +9 -0
- package/types/lodash/_initCloneByTag.d.ts +14 -0
- package/types/lodash/_initCloneObject.d.ts +9 -0
- package/types/lodash/_insertWrapDetails.d.ts +10 -0
- package/types/lodash/_isFlattenable.d.ts +9 -0
- package/types/lodash/_isIndex.d.ts +10 -0
- package/types/lodash/_isIterateeCall.d.ts +12 -0
- package/types/lodash/_isKey.d.ts +10 -0
- package/types/lodash/_isKeyable.d.ts +9 -0
- package/types/lodash/_isLaziable.d.ts +10 -0
- package/types/lodash/_isMaskable.d.ts +9 -0
- package/types/lodash/_isMasked.d.ts +9 -0
- package/types/lodash/_isPrototype.d.ts +9 -0
- package/types/lodash/_isStrictComparable.d.ts +10 -0
- package/types/lodash/_iteratorToArray.d.ts +9 -0
- package/types/lodash/_lazyClone.d.ts +10 -0
- package/types/lodash/_lazyReverse.d.ts +10 -0
- package/types/lodash/_lazyValue.d.ts +10 -0
- package/types/lodash/_listCacheClear.d.ts +13 -0
- package/types/lodash/_listCacheDelete.d.ts +11 -0
- package/types/lodash/_listCacheGet.d.ts +11 -0
- package/types/lodash/_listCacheHas.d.ts +11 -0
- package/types/lodash/_listCacheSet.d.ts +12 -0
- package/types/lodash/_mapCacheClear.d.ts +18 -0
- package/types/lodash/_mapCacheDelete.d.ts +11 -0
- package/types/lodash/_mapCacheGet.d.ts +11 -0
- package/types/lodash/_mapCacheHas.d.ts +11 -0
- package/types/lodash/_mapCacheSet.d.ts +12 -0
- package/types/lodash/_mapToArray.d.ts +9 -0
- package/types/lodash/_matchesStrictComparable.d.ts +11 -0
- package/types/lodash/_memoizeCapped.d.ts +10 -0
- package/types/lodash/_mergeData.d.ts +18 -0
- package/types/lodash/_metaMap.d.ts +3 -0
- package/types/lodash/_nativeCreate.d.ts +2 -0
- package/types/lodash/_nativeKeys.d.ts +2 -0
- package/types/lodash/_nativeKeysIn.d.ts +11 -0
- package/types/lodash/_nodeUtil.d.ts +3 -0
- package/types/lodash/_objectToString.d.ts +9 -0
- package/types/lodash/_overArg.d.ts +10 -0
- package/types/lodash/_overRest.d.ts +11 -0
- package/types/lodash/_parent.d.ts +10 -0
- package/types/lodash/_reEscape.d.ts +3 -0
- package/types/lodash/_reEvaluate.d.ts +3 -0
- package/types/lodash/_reInterpolate.d.ts +3 -0
- package/types/lodash/_realNames.d.ts +3 -0
- package/types/lodash/_reorder.d.ts +12 -0
- package/types/lodash/_replaceHolders.d.ts +11 -0
- package/types/lodash/_root.d.ts +3 -0
- package/types/lodash/_safeGet.d.ts +10 -0
- package/types/lodash/_setCacheAdd.d.ts +12 -0
- package/types/lodash/_setCacheHas.d.ts +11 -0
- package/types/lodash/_setData.d.ts +16 -0
- package/types/lodash/_setToArray.d.ts +9 -0
- package/types/lodash/_setToPairs.d.ts +9 -0
- package/types/lodash/_setToString.d.ts +10 -0
- package/types/lodash/_setWrapToString.d.ts +12 -0
- package/types/lodash/_shortOut.d.ts +11 -0
- package/types/lodash/_shuffleSelf.d.ts +10 -0
- package/types/lodash/_stackClear.d.ts +14 -0
- package/types/lodash/_stackDelete.d.ts +24 -0
- package/types/lodash/_stackGet.d.ts +11 -0
- package/types/lodash/_stackHas.d.ts +11 -0
- package/types/lodash/_stackSet.d.ts +28 -0
- package/types/lodash/_strictIndexOf.d.ts +12 -0
- package/types/lodash/_strictLastIndexOf.d.ts +12 -0
- package/types/lodash/_stringSize.d.ts +9 -0
- package/types/lodash/_stringToArray.d.ts +9 -0
- package/types/lodash/_stringToPath.d.ts +9 -0
- package/types/lodash/_toKey.d.ts +9 -0
- package/types/lodash/_toSource.d.ts +9 -0
- package/types/lodash/_trimmedEndIndex.d.ts +10 -0
- package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
- package/types/lodash/_unicodeSize.d.ts +9 -0
- package/types/lodash/_unicodeToArray.d.ts +9 -0
- package/types/lodash/_unicodeWords.d.ts +9 -0
- package/types/lodash/_updateWrapDetails.d.ts +10 -0
- package/types/lodash/_wrapperClone.d.ts +9 -0
- package/types/lodash/add.d.ts +2 -0
- package/types/lodash/after.d.ts +2 -0
- package/types/lodash/array.d.ts +66 -0
- package/types/lodash/array.default.d.ts +133 -0
- package/types/lodash/ary.d.ts +2 -0
- package/types/lodash/assign.d.ts +2 -0
- package/types/lodash/assignIn.d.ts +2 -0
- package/types/lodash/assignInWith.d.ts +2 -0
- package/types/lodash/assignWith.d.ts +2 -0
- package/types/lodash/at.d.ts +2 -0
- package/types/lodash/attempt.d.ts +2 -0
- package/types/lodash/augment.d.ts +2 -0
- package/types/lodash/before.d.ts +2 -0
- package/types/lodash/bind.d.ts +2 -0
- package/types/lodash/bindAll.d.ts +2 -0
- package/types/lodash/bindKey.d.ts +2 -0
- package/types/lodash/cache.d.ts +14 -0
- package/types/lodash/camelCase.d.ts +2 -0
- package/types/lodash/capitalize.d.ts +2 -0
- package/types/lodash/castArray.d.ts +2 -0
- package/types/lodash/ceil.d.ts +2 -0
- package/types/lodash/chain.d.ts +2 -0
- package/types/lodash/chunk.d.ts +2 -0
- package/types/lodash/clamp.d.ts +2 -0
- package/types/lodash/clear-animation-frame.d.ts +1 -0
- package/types/lodash/clone.d.ts +2 -0
- package/types/lodash/cloneDeep.d.ts +2 -0
- package/types/lodash/cloneDeepWith.d.ts +2 -0
- package/types/lodash/cloneWith.d.ts +2 -0
- package/types/lodash/collection.d.ts +29 -0
- package/types/lodash/collection.default.d.ts +59 -0
- package/types/lodash/commit.d.ts +28 -0
- package/types/lodash/compact.d.ts +2 -0
- package/types/lodash/concat.d.ts +2 -0
- package/types/lodash/cond.d.ts +2 -0
- package/types/lodash/conforms.d.ts +2 -0
- package/types/lodash/conformsTo.d.ts +2 -0
- package/types/lodash/constant.d.ts +2 -0
- package/types/lodash/contains.d.ts +2 -0
- package/types/lodash/countBy.d.ts +2 -0
- package/types/lodash/create.d.ts +2 -0
- package/types/lodash/curry.d.ts +2 -0
- package/types/lodash/curryRight.d.ts +2 -0
- package/types/lodash/date.d.ts +2 -0
- package/types/lodash/date.default.d.ts +5 -0
- package/types/lodash/debounce.d.ts +3 -0
- package/types/lodash/deburr.d.ts +2 -0
- package/types/lodash/deep-mix.d.ts +2 -0
- package/types/lodash/defaultTo.d.ts +2 -0
- package/types/lodash/defaults.d.ts +2 -0
- package/types/lodash/defaultsDeep.d.ts +2 -0
- package/types/lodash/defer.d.ts +2 -0
- package/types/lodash/delay.d.ts +2 -0
- package/types/lodash/difference.d.ts +2 -0
- package/types/lodash/differenceBy.d.ts +2 -0
- package/types/lodash/differenceWith.d.ts +2 -0
- package/types/lodash/divide.d.ts +2 -0
- package/types/lodash/drop.d.ts +2 -0
- package/types/lodash/dropRight.d.ts +2 -0
- package/types/lodash/dropRightWhile.d.ts +2 -0
- package/types/lodash/dropWhile.d.ts +2 -0
- package/types/lodash/each.d.ts +2 -0
- package/types/lodash/eachRight.d.ts +2 -0
- package/types/lodash/ends-with.d.ts +3 -0
- package/types/lodash/endsWith.d.ts +2 -0
- package/types/lodash/entries.d.ts +2 -0
- package/types/lodash/entriesIn.d.ts +2 -0
- package/types/lodash/eq.d.ts +2 -0
- package/types/lodash/escape.d.ts +2 -0
- package/types/lodash/escapeRegExp.d.ts +2 -0
- package/types/lodash/every.d.ts +2 -0
- package/types/lodash/extend.d.ts +2 -0
- package/types/lodash/extendWith.d.ts +2 -0
- package/types/lodash/fill.d.ts +2 -0
- package/types/lodash/filter.d.ts +2 -0
- package/types/lodash/find-index.d.ts +2 -0
- package/types/lodash/find.d.ts +2 -0
- package/types/lodash/findIndex.d.ts +2 -0
- package/types/lodash/findKey.d.ts +2 -0
- package/types/lodash/findLast.d.ts +2 -0
- package/types/lodash/findLastIndex.d.ts +2 -0
- package/types/lodash/findLastKey.d.ts +2 -0
- package/types/lodash/first-value.d.ts +2 -0
- package/types/lodash/first.d.ts +2 -0
- package/types/lodash/fixed-base.d.ts +2 -0
- package/types/lodash/flatMap.d.ts +2 -0
- package/types/lodash/flatMapDeep.d.ts +2 -0
- package/types/lodash/flatMapDepth.d.ts +2 -0
- package/types/lodash/flatten-deep.d.ts +12 -0
- package/types/lodash/flatten.d.ts +2 -0
- package/types/lodash/flattenDeep.d.ts +2 -0
- package/types/lodash/flattenDepth.d.ts +2 -0
- package/types/lodash/flip.d.ts +2 -0
- package/types/lodash/floor.d.ts +2 -0
- package/types/lodash/flow.d.ts +2 -0
- package/types/lodash/flowRight.d.ts +2 -0
- package/types/lodash/for-in.d.ts +2 -0
- package/types/lodash/forEach.d.ts +2 -0
- package/types/lodash/forEachRight.d.ts +2 -0
- package/types/lodash/forIn.d.ts +2 -0
- package/types/lodash/forInRight.d.ts +2 -0
- package/types/lodash/forOwn.d.ts +2 -0
- package/types/lodash/forOwnRight.d.ts +2 -0
- package/types/lodash/fromPairs.d.ts +2 -0
- package/types/lodash/function.d.ts +24 -0
- package/types/lodash/function.default.d.ts +49 -0
- package/types/lodash/functions.d.ts +2 -0
- package/types/lodash/functionsIn.d.ts +2 -0
- package/types/lodash/get-range.d.ts +6 -0
- package/types/lodash/get-type.d.ts +2 -0
- package/types/lodash/get-wrap-behavior.d.ts +9 -0
- package/types/lodash/get.d.ts +2 -0
- package/types/lodash/group-by.d.ts +6 -0
- package/types/lodash/group-to-map.d.ts +8 -0
- package/types/lodash/group.d.ts +2 -0
- package/types/lodash/groupBy.d.ts +2 -0
- package/types/lodash/gt.d.ts +2 -0
- package/types/lodash/gte.d.ts +2 -0
- package/types/lodash/has-key.d.ts +2 -0
- package/types/lodash/has-value.d.ts +2 -0
- package/types/lodash/has.d.ts +2 -0
- package/types/lodash/hasIn.d.ts +2 -0
- package/types/lodash/head.d.ts +2 -0
- package/types/lodash/identity.d.ts +2 -0
- package/types/lodash/inRange.d.ts +2 -0
- package/types/lodash/includes.d.ts +2 -0
- package/types/lodash/index-of.d.ts +2 -0
- package/types/lodash/index.d.ts +304 -0
- package/types/lodash/indexOf.d.ts +2 -0
- package/types/lodash/initial.d.ts +2 -0
- package/types/lodash/intersection.d.ts +2 -0
- package/types/lodash/intersectionBy.d.ts +2 -0
- package/types/lodash/intersectionWith.d.ts +2 -0
- package/types/lodash/invert.d.ts +2 -0
- package/types/lodash/invertBy.d.ts +2 -0
- package/types/lodash/invoke.d.ts +2 -0
- package/types/lodash/invokeMap.d.ts +2 -0
- package/types/lodash/is-arguments.d.ts +2 -0
- package/types/lodash/is-array-like.d.ts +2 -0
- package/types/lodash/is-array.d.ts +2 -0
- package/types/lodash/is-boolean.d.ts +2 -0
- package/types/lodash/is-date.d.ts +2 -0
- package/types/lodash/is-decimal.d.ts +2 -0
- package/types/lodash/is-element.d.ts +6 -0
- package/types/lodash/is-empty.d.ts +2 -0
- package/types/lodash/is-equal-with.d.ts +24 -0
- package/types/lodash/is-equal.d.ts +2 -0
- package/types/lodash/is-error.d.ts +2 -0
- package/types/lodash/is-even.d.ts +2 -0
- package/types/lodash/is-finite.d.ts +1 -0
- package/types/lodash/is-function.d.ts +2 -0
- package/types/lodash/is-integer.d.ts +2 -0
- package/types/lodash/is-match.d.ts +2 -0
- package/types/lodash/is-negative.d.ts +2 -0
- package/types/lodash/is-nil.d.ts +2 -0
- package/types/lodash/is-null.d.ts +2 -0
- package/types/lodash/is-number-equal.d.ts +1 -0
- package/types/lodash/is-number.d.ts +2 -0
- package/types/lodash/is-object-like.d.ts +2 -0
- package/types/lodash/is-object.d.ts +2 -0
- package/types/lodash/is-odd.d.ts +2 -0
- package/types/lodash/is-plain-object.d.ts +2 -0
- package/types/lodash/is-positive.d.ts +2 -0
- package/types/lodash/is-prototype.d.ts +2 -0
- package/types/lodash/is-reg-exp.d.ts +2 -0
- package/types/lodash/is-segment-equal.d.ts +2 -0
- package/types/lodash/is-string.d.ts +2 -0
- package/types/lodash/is-type.d.ts +2 -0
- package/types/lodash/is-undefined.d.ts +2 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +2 -0
- package/types/lodash/isArrayBuffer.d.ts +2 -0
- package/types/lodash/isArrayLike.d.ts +2 -0
- package/types/lodash/isArrayLikeObject.d.ts +2 -0
- package/types/lodash/isBoolean.d.ts +2 -0
- package/types/lodash/isBuffer.d.ts +2 -0
- package/types/lodash/isDate.d.ts +2 -0
- package/types/lodash/isElement.d.ts +2 -0
- package/types/lodash/isEmpty.d.ts +2 -0
- package/types/lodash/isEqual.d.ts +2 -0
- package/types/lodash/isEqualWith.d.ts +2 -0
- package/types/lodash/isError.d.ts +2 -0
- package/types/lodash/isFinite.d.ts +2 -0
- package/types/lodash/isFunction.d.ts +2 -0
- package/types/lodash/isInteger.d.ts +2 -0
- package/types/lodash/isLength.d.ts +2 -0
- package/types/lodash/isMap.d.ts +2 -0
- package/types/lodash/isMatch.d.ts +2 -0
- package/types/lodash/isMatchWith.d.ts +2 -0
- package/types/lodash/isNaN.d.ts +2 -0
- package/types/lodash/isNative.d.ts +2 -0
- package/types/lodash/isNil.d.ts +2 -0
- package/types/lodash/isNull.d.ts +2 -0
- package/types/lodash/isNumber.d.ts +2 -0
- package/types/lodash/isObject.d.ts +2 -0
- package/types/lodash/isObjectLike.d.ts +2 -0
- package/types/lodash/isPlainObject.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +2 -0
- package/types/lodash/isSafeInteger.d.ts +2 -0
- package/types/lodash/isSet.d.ts +2 -0
- package/types/lodash/isString.d.ts +2 -0
- package/types/lodash/isSymbol.d.ts +2 -0
- package/types/lodash/isTypedArray.d.ts +2 -0
- package/types/lodash/isUndefined.d.ts +2 -0
- package/types/lodash/isWeakMap.d.ts +2 -0
- package/types/lodash/isWeakSet.d.ts +2 -0
- package/types/lodash/iteratee.d.ts +2 -0
- package/types/lodash/join.d.ts +2 -0
- package/types/lodash/kebabCase.d.ts +2 -0
- package/types/lodash/keyBy.d.ts +2 -0
- package/types/lodash/keys.d.ts +2 -0
- package/types/lodash/keysIn.d.ts +2 -0
- package/types/lodash/lang.d.ts +57 -0
- package/types/lodash/lang.default.d.ts +115 -0
- package/types/lodash/last.d.ts +2 -0
- package/types/lodash/lastIndexOf.d.ts +2 -0
- package/types/lodash/lodash.d.ts +317 -0
- package/types/lodash/lodash.default.d.ts +2 -0
- package/types/lodash/lower-case.d.ts +2 -0
- package/types/lodash/lower-first.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +2 -0
- package/types/lodash/lowerFirst.d.ts +2 -0
- package/types/lodash/lt.d.ts +2 -0
- package/types/lodash/lte.d.ts +2 -0
- package/types/lodash/map-values.d.ts +6 -0
- package/types/lodash/map.d.ts +2 -0
- package/types/lodash/mapKeys.d.ts +2 -0
- package/types/lodash/mapValues.d.ts +2 -0
- package/types/lodash/matches.d.ts +2 -0
- package/types/lodash/matchesProperty.d.ts +2 -0
- package/types/lodash/math.d.ts +16 -0
- package/types/lodash/math.default.d.ts +33 -0
- package/types/lodash/max-by.d.ts +16 -0
- package/types/lodash/max.d.ts +2 -0
- package/types/lodash/maxBy.d.ts +2 -0
- package/types/lodash/mean.d.ts +2 -0
- package/types/lodash/meanBy.d.ts +2 -0
- package/types/lodash/memoize.d.ts +2 -0
- package/types/lodash/merge.d.ts +2 -0
- package/types/lodash/mergeWith.d.ts +2 -0
- package/types/lodash/method.d.ts +2 -0
- package/types/lodash/methodOf.d.ts +2 -0
- package/types/lodash/min-by.d.ts +16 -0
- package/types/lodash/min.d.ts +2 -0
- package/types/lodash/minBy.d.ts +2 -0
- package/types/lodash/mix.d.ts +1 -0
- package/types/lodash/mixin.d.ts +2 -0
- package/types/lodash/mod.d.ts +2 -0
- package/types/lodash/multiply.d.ts +2 -0
- package/types/lodash/negate.d.ts +2 -0
- package/types/lodash/next.d.ts +27 -0
- package/types/lodash/noop.d.ts +2 -0
- package/types/lodash/now.d.ts +2 -0
- package/types/lodash/nth.d.ts +2 -0
- package/types/lodash/nthArg.d.ts +2 -0
- package/types/lodash/number.d.ts +4 -0
- package/types/lodash/number.default.d.ts +9 -0
- package/types/lodash/number2color.d.ts +2 -0
- package/types/lodash/object.d.ts +48 -0
- package/types/lodash/object.default.d.ts +97 -0
- package/types/lodash/omit.d.ts +2 -0
- package/types/lodash/omitBy.d.ts +2 -0
- package/types/lodash/once.d.ts +2 -0
- package/types/lodash/orderBy.d.ts +2 -0
- package/types/lodash/over.d.ts +2 -0
- package/types/lodash/overArgs.d.ts +2 -0
- package/types/lodash/overEvery.d.ts +2 -0
- package/types/lodash/overSome.d.ts +2 -0
- package/types/lodash/pad.d.ts +2 -0
- package/types/lodash/padEnd.d.ts +2 -0
- package/types/lodash/padStart.d.ts +2 -0
- package/types/lodash/parse-radius.d.ts +9 -0
- package/types/lodash/parseInt.d.ts +2 -0
- package/types/lodash/partial.d.ts +2 -0
- package/types/lodash/partialRight.d.ts +2 -0
- package/types/lodash/partition.d.ts +2 -0
- package/types/lodash/pick.d.ts +2 -0
- package/types/lodash/pickBy.d.ts +2 -0
- package/types/lodash/plant.d.ts +26 -0
- package/types/lodash/property.d.ts +3 -0
- package/types/lodash/propertyOf.d.ts +2 -0
- package/types/lodash/pull-at.d.ts +2 -0
- package/types/lodash/pull.d.ts +2 -0
- package/types/lodash/pullAll.d.ts +2 -0
- package/types/lodash/pullAllBy.d.ts +2 -0
- package/types/lodash/pullAllWith.d.ts +2 -0
- package/types/lodash/pullAt.d.ts +2 -0
- package/types/lodash/random.d.ts +2 -0
- package/types/lodash/range.d.ts +2 -0
- package/types/lodash/rangeRight.d.ts +2 -0
- package/types/lodash/rearg.d.ts +2 -0
- package/types/lodash/reduce.d.ts +2 -0
- package/types/lodash/reduceRight.d.ts +2 -0
- package/types/lodash/reject.d.ts +2 -0
- package/types/lodash/remove.d.ts +2 -0
- package/types/lodash/repeat.d.ts +2 -0
- package/types/lodash/replace.d.ts +2 -0
- package/types/lodash/request-animation-frame.d.ts +1 -0
- package/types/lodash/rest.d.ts +2 -0
- package/types/lodash/result.d.ts +2 -0
- package/types/lodash/reverse.d.ts +2 -0
- package/types/lodash/round.d.ts +2 -0
- package/types/lodash/sample.d.ts +2 -0
- package/types/lodash/sampleSize.d.ts +2 -0
- package/types/lodash/seq.d.ts +15 -0
- package/types/lodash/seq.default.d.ts +31 -0
- package/types/lodash/set.d.ts +2 -0
- package/types/lodash/setWith.d.ts +2 -0
- package/types/lodash/shuffle.d.ts +2 -0
- package/types/lodash/size.d.ts +2 -0
- package/types/lodash/slice.d.ts +2 -0
- package/types/lodash/snakeCase.d.ts +2 -0
- package/types/lodash/some.d.ts +2 -0
- package/types/lodash/sort-by.d.ts +7 -0
- package/types/lodash/sortBy.d.ts +2 -0
- package/types/lodash/sortedIndex.d.ts +2 -0
- package/types/lodash/sortedIndexBy.d.ts +2 -0
- package/types/lodash/sortedIndexOf.d.ts +2 -0
- package/types/lodash/sortedLastIndex.d.ts +2 -0
- package/types/lodash/sortedLastIndexBy.d.ts +2 -0
- package/types/lodash/sortedLastIndexOf.d.ts +2 -0
- package/types/lodash/sortedUniq.d.ts +2 -0
- package/types/lodash/sortedUniqBy.d.ts +2 -0
- package/types/lodash/split.d.ts +2 -0
- package/types/lodash/spread.d.ts +2 -0
- package/types/lodash/startCase.d.ts +2 -0
- package/types/lodash/starts-with.d.ts +3 -0
- package/types/lodash/startsWith.d.ts +2 -0
- package/types/lodash/string.d.ts +32 -0
- package/types/lodash/string.default.d.ts +65 -0
- package/types/lodash/stubArray.d.ts +2 -0
- package/types/lodash/stubFalse.d.ts +2 -0
- package/types/lodash/stubObject.d.ts +2 -0
- package/types/lodash/stubString.d.ts +2 -0
- package/types/lodash/stubTrue.d.ts +2 -0
- package/types/lodash/substitute.d.ts +5 -0
- package/types/lodash/subtract.d.ts +2 -0
- package/types/lodash/sum.d.ts +2 -0
- package/types/lodash/sumBy.d.ts +2 -0
- package/types/lodash/tail.d.ts +2 -0
- package/types/lodash/take.d.ts +2 -0
- package/types/lodash/takeRight.d.ts +2 -0
- package/types/lodash/takeRightWhile.d.ts +2 -0
- package/types/lodash/takeWhile.d.ts +2 -0
- package/types/lodash/tap.d.ts +2 -0
- package/types/lodash/template.d.ts +2 -0
- package/types/lodash/templateSettings.d.ts +2 -0
- package/types/lodash/throttle.d.ts +3 -0
- package/types/lodash/thru.d.ts +2 -0
- package/types/lodash/times.d.ts +2 -0
- package/types/lodash/to-array.d.ts +2 -0
- package/types/lodash/to-degree.d.ts +2 -0
- package/types/lodash/to-integer.d.ts +1 -0
- package/types/lodash/to-radian.d.ts +2 -0
- package/types/lodash/to-string.d.ts +2 -0
- package/types/lodash/toArray.d.ts +2 -0
- package/types/lodash/toFinite.d.ts +2 -0
- package/types/lodash/toInteger.d.ts +2 -0
- package/types/lodash/toIterator.d.ts +20 -0
- package/types/lodash/toJSON.d.ts +1 -0
- package/types/lodash/toLength.d.ts +2 -0
- package/types/lodash/toLower.d.ts +2 -0
- package/types/lodash/toNumber.d.ts +2 -0
- package/types/lodash/toPairs.d.ts +2 -0
- package/types/lodash/toPairsIn.d.ts +2 -0
- package/types/lodash/toPath.d.ts +2 -0
- package/types/lodash/toPlainObject.d.ts +2 -0
- package/types/lodash/toSafeInteger.d.ts +2 -0
- package/types/lodash/toString.d.ts +2 -0
- package/types/lodash/toUpper.d.ts +2 -0
- package/types/lodash/transform.d.ts +2 -0
- package/types/lodash/trim.d.ts +2 -0
- package/types/lodash/trimEnd.d.ts +2 -0
- package/types/lodash/trimStart.d.ts +2 -0
- package/types/lodash/truncate.d.ts +2 -0
- package/types/lodash/types/index.d.ts +3 -0
- package/types/lodash/unary.d.ts +2 -0
- package/types/lodash/unescape.d.ts +2 -0
- package/types/lodash/union.d.ts +2 -0
- package/types/lodash/unionBy.d.ts +2 -0
- package/types/lodash/unionWith.d.ts +2 -0
- package/types/lodash/uniq.d.ts +2 -0
- package/types/lodash/uniqBy.d.ts +2 -0
- package/types/lodash/uniqWith.d.ts +2 -0
- package/types/lodash/unique-id.d.ts +2 -0
- package/types/lodash/uniqueId.d.ts +2 -0
- package/types/lodash/unset.d.ts +2 -0
- package/types/lodash/unzip.d.ts +2 -0
- package/types/lodash/unzipWith.d.ts +2 -0
- package/types/lodash/update.d.ts +2 -0
- package/types/lodash/updateWith.d.ts +2 -0
- package/types/lodash/upper-case.d.ts +2 -0
- package/types/lodash/upper-first.d.ts +2 -0
- package/types/lodash/upperCase.d.ts +2 -0
- package/types/lodash/upperFirst.d.ts +2 -0
- package/types/lodash/util.d.ts +33 -0
- package/types/lodash/util.default.d.ts +67 -0
- package/types/lodash/value.d.ts +1 -0
- package/types/lodash/valueOf.d.ts +1 -0
- package/types/lodash/values-of-key.d.ts +2 -0
- package/types/lodash/values.d.ts +2 -0
- package/types/lodash/valuesIn.d.ts +2 -0
- package/types/lodash/without.d.ts +2 -0
- package/types/lodash/words.d.ts +2 -0
- package/types/lodash/wrap-behavior.d.ts +9 -0
- package/types/lodash/wrap.d.ts +2 -0
- package/types/lodash/wrapperAt.d.ts +18 -0
- package/types/lodash/wrapperChain.d.ts +29 -0
- package/types/lodash/wrapperLodash.d.ts +239 -0
- package/types/lodash/wrapperReverse.d.ts +22 -0
- package/types/lodash/wrapperValue.d.ts +16 -0
- package/types/lodash/xor.d.ts +2 -0
- package/types/lodash/xorBy.d.ts +2 -0
- package/types/lodash/xorWith.d.ts +2 -0
- package/types/lodash/zip.d.ts +2 -0
- package/types/lodash/zipObject.d.ts +2 -0
- package/types/lodash/zipObjectDeep.d.ts +2 -0
- package/types/lodash/zipWith.d.ts +2 -0
- package/types/parse-svg-path.d.ts +19 -0
- package/types/priority_queue.d.ts +41 -0
- package/types/radash/array.d.ts +209 -0
- package/types/radash/async.d.ts +99 -0
- package/types/radash/curry.d.ts +113 -0
- package/types/radash/index.d.ts +10 -0
- package/types/radash/number.d.ts +27 -0
- package/types/radash/object.d.ts +112 -0
- package/types/radash/random.d.ts +11 -0
- package/types/radash/series.d.ts +13 -0
- package/types/radash/string.d.ts +71 -0
- package/types/radash/typed.d.ts +26 -0
- package/types/stats.module.d.ts +3 -0
- package/README.md +0 -1
- package/dist/cjs/index.js +0 -19
- package/dist/umd/index.js +0 -23
- package/esm/extend.js +0 -3
- package/esm/index.js +0 -3
- package/lib/extend.js +0 -6
- package/lib/index.js +0 -6
- package/src/extend.ts +0 -6
- package/src/index.ts +0 -6
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export default lodash;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
4
|
+
* chain sequences. Methods that operate on and return arrays, collections,
|
|
5
|
+
* and functions can be chained together. Methods that retrieve a single value
|
|
6
|
+
* or may return a primitive value will automatically end the chain sequence
|
|
7
|
+
* and return the unwrapped value. Otherwise, the value must be unwrapped
|
|
8
|
+
* with `_#value`.
|
|
9
|
+
*
|
|
10
|
+
* Explicit chain sequences, which must be unwrapped with `_#value`, may be
|
|
11
|
+
* enabled using `_.chain`.
|
|
12
|
+
*
|
|
13
|
+
* The execution of chained methods is lazy, that is, it's deferred until
|
|
14
|
+
* `_#value` is implicitly or explicitly called.
|
|
15
|
+
*
|
|
16
|
+
* Lazy evaluation allows several methods to support shortcut fusion.
|
|
17
|
+
* Shortcut fusion is an optimization to merge iteratee calls; this avoids
|
|
18
|
+
* the creation of intermediate arrays and can greatly reduce the number of
|
|
19
|
+
* iteratee executions. Sections of a chain sequence qualify for shortcut
|
|
20
|
+
* fusion if the section is applied to an array and iteratees accept only
|
|
21
|
+
* one argument. The heuristic for whether a section qualifies for shortcut
|
|
22
|
+
* fusion is subject to change.
|
|
23
|
+
*
|
|
24
|
+
* Chaining is supported in custom builds as long as the `_#value` method is
|
|
25
|
+
* directly or indirectly included in the build.
|
|
26
|
+
*
|
|
27
|
+
* In addition to lodash methods, wrappers have `Array` and `String` methods.
|
|
28
|
+
*
|
|
29
|
+
* The wrapper `Array` methods are:
|
|
30
|
+
* `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
|
|
31
|
+
*
|
|
32
|
+
* The wrapper `String` methods are:
|
|
33
|
+
* `replace` and `split`
|
|
34
|
+
*
|
|
35
|
+
* The wrapper methods that support shortcut fusion are:
|
|
36
|
+
* `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
|
|
37
|
+
* `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
|
|
38
|
+
* `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
|
|
39
|
+
*
|
|
40
|
+
* The chainable wrapper methods are:
|
|
41
|
+
* `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
|
|
42
|
+
* `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
|
|
43
|
+
* `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
|
|
44
|
+
* `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
|
|
45
|
+
* `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
|
|
46
|
+
* `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
|
|
47
|
+
* `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
|
|
48
|
+
* `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
|
|
49
|
+
* `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
|
|
50
|
+
* `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
|
|
51
|
+
* `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
|
|
52
|
+
* `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
|
|
53
|
+
* `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
|
|
54
|
+
* `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
|
|
55
|
+
* `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
|
|
56
|
+
* `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
|
|
57
|
+
* `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
|
|
58
|
+
* `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
|
|
59
|
+
* `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
|
|
60
|
+
* `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
|
|
61
|
+
* `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
|
|
62
|
+
* `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
|
|
63
|
+
* `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
|
|
64
|
+
* `zipObject`, `zipObjectDeep`, and `zipWith`
|
|
65
|
+
*
|
|
66
|
+
* The wrapper methods that are **not** chainable by default are:
|
|
67
|
+
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
|
|
68
|
+
* `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
|
|
69
|
+
* `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
|
|
70
|
+
* `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
|
|
71
|
+
* `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
|
|
72
|
+
* `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
|
|
73
|
+
* `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
|
|
74
|
+
* `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
|
|
75
|
+
* `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
|
|
76
|
+
* `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
|
|
77
|
+
* `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
|
|
78
|
+
* `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
|
|
79
|
+
* `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
|
|
80
|
+
* `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
|
|
81
|
+
* `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
|
|
82
|
+
* `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
|
|
83
|
+
* `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
|
|
84
|
+
* `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
|
|
85
|
+
* `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
|
|
86
|
+
* `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
|
|
87
|
+
* `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
|
|
88
|
+
* `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
|
|
89
|
+
* `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
|
|
90
|
+
* `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
|
|
91
|
+
* `upperFirst`, `value`, and `words`
|
|
92
|
+
*
|
|
93
|
+
* @name _
|
|
94
|
+
* @constructor
|
|
95
|
+
* @category Seq
|
|
96
|
+
* @param {*} value The value to wrap in a `lodash` instance.
|
|
97
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
|
98
|
+
* @example
|
|
99
|
+
*
|
|
100
|
+
* function square(n) {
|
|
101
|
+
* return n * n;
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* var wrapped = _([1, 2, 3]);
|
|
105
|
+
*
|
|
106
|
+
* // Returns an unwrapped value.
|
|
107
|
+
* wrapped.reduce(_.add);
|
|
108
|
+
* // => 6
|
|
109
|
+
*
|
|
110
|
+
* // Returns a wrapped value.
|
|
111
|
+
* var squares = wrapped.map(square);
|
|
112
|
+
*
|
|
113
|
+
* _.isArray(squares);
|
|
114
|
+
* // => false
|
|
115
|
+
*
|
|
116
|
+
* _.isArray(squares.value());
|
|
117
|
+
* // => true
|
|
118
|
+
*/
|
|
119
|
+
declare function lodash(value: any): Object;
|
|
120
|
+
declare class lodash {
|
|
121
|
+
/**
|
|
122
|
+
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
123
|
+
* chain sequences. Methods that operate on and return arrays, collections,
|
|
124
|
+
* and functions can be chained together. Methods that retrieve a single value
|
|
125
|
+
* or may return a primitive value will automatically end the chain sequence
|
|
126
|
+
* and return the unwrapped value. Otherwise, the value must be unwrapped
|
|
127
|
+
* with `_#value`.
|
|
128
|
+
*
|
|
129
|
+
* Explicit chain sequences, which must be unwrapped with `_#value`, may be
|
|
130
|
+
* enabled using `_.chain`.
|
|
131
|
+
*
|
|
132
|
+
* The execution of chained methods is lazy, that is, it's deferred until
|
|
133
|
+
* `_#value` is implicitly or explicitly called.
|
|
134
|
+
*
|
|
135
|
+
* Lazy evaluation allows several methods to support shortcut fusion.
|
|
136
|
+
* Shortcut fusion is an optimization to merge iteratee calls; this avoids
|
|
137
|
+
* the creation of intermediate arrays and can greatly reduce the number of
|
|
138
|
+
* iteratee executions. Sections of a chain sequence qualify for shortcut
|
|
139
|
+
* fusion if the section is applied to an array and iteratees accept only
|
|
140
|
+
* one argument. The heuristic for whether a section qualifies for shortcut
|
|
141
|
+
* fusion is subject to change.
|
|
142
|
+
*
|
|
143
|
+
* Chaining is supported in custom builds as long as the `_#value` method is
|
|
144
|
+
* directly or indirectly included in the build.
|
|
145
|
+
*
|
|
146
|
+
* In addition to lodash methods, wrappers have `Array` and `String` methods.
|
|
147
|
+
*
|
|
148
|
+
* The wrapper `Array` methods are:
|
|
149
|
+
* `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
|
|
150
|
+
*
|
|
151
|
+
* The wrapper `String` methods are:
|
|
152
|
+
* `replace` and `split`
|
|
153
|
+
*
|
|
154
|
+
* The wrapper methods that support shortcut fusion are:
|
|
155
|
+
* `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
|
|
156
|
+
* `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
|
|
157
|
+
* `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
|
|
158
|
+
*
|
|
159
|
+
* The chainable wrapper methods are:
|
|
160
|
+
* `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
|
|
161
|
+
* `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
|
|
162
|
+
* `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
|
|
163
|
+
* `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
|
|
164
|
+
* `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
|
|
165
|
+
* `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
|
|
166
|
+
* `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
|
|
167
|
+
* `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
|
|
168
|
+
* `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
|
|
169
|
+
* `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
|
|
170
|
+
* `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
|
|
171
|
+
* `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
|
|
172
|
+
* `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
|
|
173
|
+
* `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
|
|
174
|
+
* `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
|
|
175
|
+
* `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
|
|
176
|
+
* `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
|
|
177
|
+
* `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
|
|
178
|
+
* `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
|
|
179
|
+
* `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
|
|
180
|
+
* `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
|
|
181
|
+
* `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
|
|
182
|
+
* `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
|
|
183
|
+
* `zipObject`, `zipObjectDeep`, and `zipWith`
|
|
184
|
+
*
|
|
185
|
+
* The wrapper methods that are **not** chainable by default are:
|
|
186
|
+
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
|
|
187
|
+
* `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
|
|
188
|
+
* `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
|
|
189
|
+
* `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
|
|
190
|
+
* `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
|
|
191
|
+
* `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
|
|
192
|
+
* `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
|
|
193
|
+
* `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
|
|
194
|
+
* `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
|
|
195
|
+
* `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
|
|
196
|
+
* `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
|
|
197
|
+
* `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
|
|
198
|
+
* `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
|
|
199
|
+
* `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
|
|
200
|
+
* `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
|
|
201
|
+
* `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
|
|
202
|
+
* `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
|
|
203
|
+
* `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
|
|
204
|
+
* `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
|
|
205
|
+
* `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
|
|
206
|
+
* `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
|
|
207
|
+
* `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
|
|
208
|
+
* `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
|
|
209
|
+
* `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
|
|
210
|
+
* `upperFirst`, `value`, and `words`
|
|
211
|
+
*
|
|
212
|
+
* @name _
|
|
213
|
+
* @constructor
|
|
214
|
+
* @category Seq
|
|
215
|
+
* @param {*} value The value to wrap in a `lodash` instance.
|
|
216
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
|
217
|
+
* @example
|
|
218
|
+
*
|
|
219
|
+
* function square(n) {
|
|
220
|
+
* return n * n;
|
|
221
|
+
* }
|
|
222
|
+
*
|
|
223
|
+
* var wrapped = _([1, 2, 3]);
|
|
224
|
+
*
|
|
225
|
+
* // Returns an unwrapped value.
|
|
226
|
+
* wrapped.reduce(_.add);
|
|
227
|
+
* // => 6
|
|
228
|
+
*
|
|
229
|
+
* // Returns a wrapped value.
|
|
230
|
+
* var squares = wrapped.map(square);
|
|
231
|
+
*
|
|
232
|
+
* _.isArray(squares);
|
|
233
|
+
* // => false
|
|
234
|
+
*
|
|
235
|
+
* _.isArray(squares.value());
|
|
236
|
+
* // => true
|
|
237
|
+
*/
|
|
238
|
+
constructor(value: any);
|
|
239
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default wrapperReverse;
|
|
2
|
+
/**
|
|
3
|
+
* This method is the wrapper version of `_.reverse`.
|
|
4
|
+
*
|
|
5
|
+
* **Note:** This method mutates the wrapped array.
|
|
6
|
+
*
|
|
7
|
+
* @name reverse
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @category Seq
|
|
11
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* var array = [1, 2, 3];
|
|
15
|
+
*
|
|
16
|
+
* _(array).reverse().value()
|
|
17
|
+
* // => [3, 2, 1]
|
|
18
|
+
*
|
|
19
|
+
* console.log(array);
|
|
20
|
+
* // => [3, 2, 1]
|
|
21
|
+
*/
|
|
22
|
+
declare function wrapperReverse(): Object;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default wrapperValue;
|
|
2
|
+
/**
|
|
3
|
+
* Executes the chain sequence to resolve the unwrapped value.
|
|
4
|
+
*
|
|
5
|
+
* @name value
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 0.1.0
|
|
8
|
+
* @alias toJSON, valueOf
|
|
9
|
+
* @category Seq
|
|
10
|
+
* @returns {*} Returns the resolved unwrapped value.
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* _([1, 2, 3]).value();
|
|
14
|
+
* // => [1, 2, 3]
|
|
15
|
+
*/
|
|
16
|
+
declare function wrapperValue(): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a single SVG path command
|
|
3
|
+
* First element is the command letter (e.g. 'M' for moveto, 'L' for lineto, etc)
|
|
4
|
+
* Remaining elements are the numeric parameters for that command
|
|
5
|
+
* @example ['M', 10, 20] // Move to x=10, y=20
|
|
6
|
+
* @example ['L', 30, 40] // Line to x=30, y=40
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export type Command = [string, ...number[]];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Parses an SVG path data string into an array of commands
|
|
13
|
+
* @param path - The SVG path data string to parse
|
|
14
|
+
* @returns Array of parsed commands, each containing a command letter and parameters
|
|
15
|
+
* @example
|
|
16
|
+
* parse('M10 20L30 40')
|
|
17
|
+
* // Returns: [['M', 10, 20], ['L', 30, 40]]
|
|
18
|
+
*/
|
|
19
|
+
export default function parse(path: string): Command[];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare class PriorityQueue<T> {
|
|
2
|
+
private heap;
|
|
3
|
+
private compare;
|
|
4
|
+
/**
|
|
5
|
+
* 创建优先队列
|
|
6
|
+
* @param compare 比较函数 (a, b) => 负数表示a应排在b前面
|
|
7
|
+
*/
|
|
8
|
+
constructor(compare: (a: T, b: T) => number);
|
|
9
|
+
/**
|
|
10
|
+
* 获取队列元素数量
|
|
11
|
+
*/
|
|
12
|
+
get size(): number;
|
|
13
|
+
/**
|
|
14
|
+
* 判断队列是否为空
|
|
15
|
+
*/
|
|
16
|
+
isEmpty(): boolean;
|
|
17
|
+
top(): T | null;
|
|
18
|
+
/**
|
|
19
|
+
* 查看队首元素
|
|
20
|
+
*/
|
|
21
|
+
peek(): T | null;
|
|
22
|
+
/**
|
|
23
|
+
* 入队
|
|
24
|
+
* @param value 要添加的元素
|
|
25
|
+
*/
|
|
26
|
+
enqueue(value: T): void;
|
|
27
|
+
push(value: T): void;
|
|
28
|
+
pop(): T | null;
|
|
29
|
+
/**
|
|
30
|
+
* 出队
|
|
31
|
+
* @returns 队首元素或null(空队列时)
|
|
32
|
+
*/
|
|
33
|
+
dequeue(): T | null;
|
|
34
|
+
private siftUp;
|
|
35
|
+
private siftDown;
|
|
36
|
+
private swap;
|
|
37
|
+
/**
|
|
38
|
+
* 清空队列
|
|
39
|
+
*/
|
|
40
|
+
clear(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sorts an array of items into groups. The return value is a map where the keys are
|
|
3
|
+
* the group ids the given getGroupId function produced and the value is an array of
|
|
4
|
+
* each item in that group.
|
|
5
|
+
*/
|
|
6
|
+
export declare const group: <T, Key extends string | number | symbol>(array: readonly T[], getGroupId: (item: T) => Key) => Partial<Record<Key, T[]>>;
|
|
7
|
+
/**
|
|
8
|
+
* Creates an array of grouped elements, the first of which contains the
|
|
9
|
+
* first elements of the given arrays, the second of which contains the
|
|
10
|
+
* second elements of the given arrays, and so on.
|
|
11
|
+
*
|
|
12
|
+
* Ex. const zipped = zip(['a', 'b'], [1, 2], [true, false]) // [['a', 1, true], ['b', 2, false]]
|
|
13
|
+
*/
|
|
14
|
+
export declare function zip<T1, T2, T3, T4, T5>(array1: T1[], array2: T2[], array3: T3[], array4: T4[], array5: T5[]): [T1, T2, T3, T4, T5][];
|
|
15
|
+
export declare function zip<T1, T2, T3, T4>(array1: T1[], array2: T2[], array3: T3[], array4: T4[]): [T1, T2, T3, T4][];
|
|
16
|
+
export declare function zip<T1, T2, T3>(array1: T1[], array2: T2[], array3: T3[]): [T1, T2, T3][];
|
|
17
|
+
export declare function zip<T1, T2>(array1: T1[], array2: T2[]): [T1, T2][];
|
|
18
|
+
/**
|
|
19
|
+
* Creates an object mapping the specified keys to their corresponding values
|
|
20
|
+
*
|
|
21
|
+
* Ex. const zipped = zipToObject(['a', 'b'], [1, 2]) // { a: 1, b: 2 }
|
|
22
|
+
* Ex. const zipped = zipToObject(['a', 'b'], (k, i) => k + i) // { a: 'a0', b: 'b1' }
|
|
23
|
+
* Ex. const zipped = zipToObject(['a', 'b'], 1) // { a: 1, b: 1 }
|
|
24
|
+
*/
|
|
25
|
+
export declare function zipToObject<K extends string | number | symbol, V>(keys: K[], values: V | ((key: K, idx: number) => V) | V[]): Record<K, V>;
|
|
26
|
+
/**
|
|
27
|
+
* Go through a list of items, starting with the first item,
|
|
28
|
+
* and comparing with the second. Keep the one you want then
|
|
29
|
+
* compare that to the next item in the list with the same
|
|
30
|
+
*
|
|
31
|
+
* Ex. const greatest = () => boil(numbers, (a, b) => a > b)
|
|
32
|
+
*/
|
|
33
|
+
export declare const boil: <T>(array: readonly T[], compareFunc: (a: T, b: T) => T) => T | null;
|
|
34
|
+
/**
|
|
35
|
+
* Sum all numbers in an array. Optionally provide a function
|
|
36
|
+
* to convert objects in the array to number values.
|
|
37
|
+
*/
|
|
38
|
+
export declare function sum<T extends number>(array: readonly T[]): number;
|
|
39
|
+
export declare function sum<T extends object>(array: readonly T[], fn: (item: T) => number): number;
|
|
40
|
+
/**
|
|
41
|
+
* Get the first item in an array or a default value
|
|
42
|
+
*/
|
|
43
|
+
export declare const first: <T>(array: readonly T[], defaultValue?: T | null | undefined) => T | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Get the last item in an array or a default value
|
|
46
|
+
*/
|
|
47
|
+
export declare const last: <T>(array: readonly T[], defaultValue?: T | null | undefined) => T | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Sort an array without modifying it and return
|
|
50
|
+
* the newly sorted value
|
|
51
|
+
*/
|
|
52
|
+
export declare const sort: <T>(array: readonly T[], getter: (item: T) => number, desc?: boolean) => T[];
|
|
53
|
+
/**
|
|
54
|
+
* Sort an array without modifying it and return
|
|
55
|
+
* the newly sorted value. Allows for a string
|
|
56
|
+
* sorting value.
|
|
57
|
+
*/
|
|
58
|
+
export declare const alphabetical: <T>(array: readonly T[], getter: (item: T) => string, dir?: "asc" | "desc") => T[];
|
|
59
|
+
export declare const counting: <T, TId extends string | number | symbol>(list: readonly T[], identity: (item: T) => TId) => Record<TId, number>;
|
|
60
|
+
/**
|
|
61
|
+
* Replace an element in an array with a new
|
|
62
|
+
* item without modifying the array and return
|
|
63
|
+
* the new value
|
|
64
|
+
*/
|
|
65
|
+
export declare const replace: <T>(list: readonly T[], newItem: T, match: (item: T, idx: number) => boolean) => T[];
|
|
66
|
+
/**
|
|
67
|
+
* Convert an array to a dictionary by mapping each item
|
|
68
|
+
* into a dictionary key & value
|
|
69
|
+
*/
|
|
70
|
+
export declare const objectify: <T, Key extends string | number | symbol, Value = T>(array: readonly T[], getKey: (item: T) => Key, getValue?: (item: T) => Value) => Record<Key, Value>;
|
|
71
|
+
/**
|
|
72
|
+
* Select performs a filter and a mapper inside of a reduce,
|
|
73
|
+
* only iterating the list one time.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* select([1, 2, 3, 4], x => x*x, x > 2) == [9, 16]
|
|
77
|
+
*/
|
|
78
|
+
export declare const select: <T, K>(array: readonly T[], mapper: (item: T, index: number) => K, condition: (item: T, index: number) => boolean) => K[];
|
|
79
|
+
/**
|
|
80
|
+
* Max gets the greatest value from a list
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* max([ 2, 3, 5]) == 5
|
|
84
|
+
* max([{ num: 1 }, { num: 2 }], x => x.num) == { num: 2 }
|
|
85
|
+
*/
|
|
86
|
+
export declare function max(array: readonly [number, ...number[]]): number;
|
|
87
|
+
export declare function max(array: readonly number[]): number | null;
|
|
88
|
+
export declare function max<T>(array: readonly T[], getter: (item: T) => number): T | null;
|
|
89
|
+
/**
|
|
90
|
+
* Min gets the smallest value from a list
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* min([1, 2, 3, 4]) == 1
|
|
94
|
+
* min([{ num: 1 }, { num: 2 }], x => x.num) == { num: 1 }
|
|
95
|
+
*/
|
|
96
|
+
export declare function min(array: readonly [number, ...number[]]): number;
|
|
97
|
+
export declare function min(array: readonly number[]): number | null;
|
|
98
|
+
export declare function min<T>(array: readonly T[], getter: (item: T) => number): T | null;
|
|
99
|
+
/**
|
|
100
|
+
* Splits a single list into many lists of the desired size. If
|
|
101
|
+
* given a list of 10 items and a size of 2, it will return 5
|
|
102
|
+
* lists with 2 items each
|
|
103
|
+
*/
|
|
104
|
+
export declare const cluster: <T>(list: readonly T[], size?: number) => T[][];
|
|
105
|
+
/**
|
|
106
|
+
* Given a list of items returns a new list with only
|
|
107
|
+
* unique items. Accepts an optional identity function
|
|
108
|
+
* to convert each item in the list to a comparable identity
|
|
109
|
+
* value
|
|
110
|
+
*/
|
|
111
|
+
export declare const unique: <T, K extends string | number | symbol>(array: readonly T[], toKey?: (item: T) => K) => T[];
|
|
112
|
+
/**
|
|
113
|
+
* Creates a generator that will produce an iteration through
|
|
114
|
+
* the range of number as requested.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* range(3) // yields 0, 1, 2, 3
|
|
118
|
+
* range(0, 3) // yields 0, 1, 2, 3
|
|
119
|
+
* range(0, 3, 'y') // yields y, y, y, y
|
|
120
|
+
* range(0, 3, () => 'y') // yields y, y, y, y
|
|
121
|
+
* range(0, 3, i => i) // yields 0, 1, 2, 3
|
|
122
|
+
* range(0, 3, i => `y${i}`) // yields y0, y1, y2, y3
|
|
123
|
+
* range(0, 3, obj) // yields obj, obj, obj, obj
|
|
124
|
+
* range(0, 6, i => i, 2) // yields 0, 2, 4, 6
|
|
125
|
+
*/
|
|
126
|
+
export declare function range<T = number>(startOrLength: number, end?: number, valueOrMapper?: T | ((i: number) => T), step?: number): Generator<T>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a list of given start, end, value, and
|
|
129
|
+
* step parameters.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* list(3) // 0, 1, 2, 3
|
|
133
|
+
* list(0, 3) // 0, 1, 2, 3
|
|
134
|
+
* list(0, 3, 'y') // y, y, y, y
|
|
135
|
+
* list(0, 3, () => 'y') // y, y, y, y
|
|
136
|
+
* list(0, 3, i => i) // 0, 1, 2, 3
|
|
137
|
+
* list(0, 3, i => `y${i}`) // y0, y1, y2, y3
|
|
138
|
+
* list(0, 3, obj) // obj, obj, obj, obj
|
|
139
|
+
* list(0, 6, i => i, 2) // 0, 2, 4, 6
|
|
140
|
+
*/
|
|
141
|
+
export declare const list: <T = number>(startOrLength: number, end?: number, valueOrMapper?: T | ((i: number) => T), step?: number) => T[];
|
|
142
|
+
/**
|
|
143
|
+
* Given an array of arrays, returns a single
|
|
144
|
+
* dimentional array with all items in it.
|
|
145
|
+
*/
|
|
146
|
+
export declare const flat: <T>(lists: readonly T[][]) => T[];
|
|
147
|
+
/**
|
|
148
|
+
* Given two arrays, returns true if any
|
|
149
|
+
* elements intersect
|
|
150
|
+
*/
|
|
151
|
+
export declare const intersects: <T, K extends string | number | symbol>(listA: readonly T[], listB: readonly T[], identity?: (t: T) => K) => boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Split an array into two array based on
|
|
154
|
+
* a true/false condition function
|
|
155
|
+
*/
|
|
156
|
+
export declare const fork: <T>(list: readonly T[], condition: (item: T) => boolean) => [T[], T[]];
|
|
157
|
+
/**
|
|
158
|
+
* Given two lists of the same type, iterate the first list
|
|
159
|
+
* and replace items matched by the matcher func in the
|
|
160
|
+
* first place.
|
|
161
|
+
*/
|
|
162
|
+
export declare const merge: <T>(root: readonly T[], others: readonly T[], matcher: (item: T) => any) => readonly T[];
|
|
163
|
+
/**
|
|
164
|
+
* Replace an item in an array by a match function condition. If
|
|
165
|
+
* no items match the function condition, appends the new item to
|
|
166
|
+
* the end of the list.
|
|
167
|
+
*/
|
|
168
|
+
export declare const replaceOrAppend: <T>(list: readonly T[], newItem: T, match: (a: T, idx: number) => boolean) => T[];
|
|
169
|
+
/**
|
|
170
|
+
* If the item matching the condition already exists
|
|
171
|
+
* in the list it will be removed. If it does not it
|
|
172
|
+
* will be added.
|
|
173
|
+
*/
|
|
174
|
+
export declare const toggle: <T>(list: readonly T[], item: T,
|
|
175
|
+
/**
|
|
176
|
+
* Converts an item of type T item into a value that
|
|
177
|
+
* can be checked for equality
|
|
178
|
+
*/
|
|
179
|
+
toKey?: null | ((item: T, idx: number) => number | string | symbol), options?: {
|
|
180
|
+
strategy?: "prepend" | "append";
|
|
181
|
+
}) => T[];
|
|
182
|
+
type Falsy = null | undefined | false | '' | 0 | 0n;
|
|
183
|
+
/**
|
|
184
|
+
* Given a list returns a new list with
|
|
185
|
+
* only truthy values
|
|
186
|
+
*/
|
|
187
|
+
export declare const sift: <T>(list: readonly (T | Falsy)[]) => T[];
|
|
188
|
+
/**
|
|
189
|
+
* Like a reduce but does not require an array.
|
|
190
|
+
* Only need a number and will iterate the function
|
|
191
|
+
* as many times as specified.
|
|
192
|
+
*
|
|
193
|
+
* NOTE: This is NOT zero indexed. If you pass count=5
|
|
194
|
+
* you will get 1, 2, 3, 4, 5 iteration in the callback
|
|
195
|
+
* function
|
|
196
|
+
*/
|
|
197
|
+
export declare const iterate: <T>(count: number, func: (currentValue: T, iteration: number) => T, initValue: T) => T;
|
|
198
|
+
/**
|
|
199
|
+
* Returns all items from the first list that
|
|
200
|
+
* do not exist in the second list.
|
|
201
|
+
*/
|
|
202
|
+
export declare const diff: <T>(root: readonly T[], other: readonly T[], identity?: (item: T) => string | number | symbol) => T[];
|
|
203
|
+
/**
|
|
204
|
+
* Shift array items by n steps
|
|
205
|
+
* If n > 0 items will shift n steps to the right
|
|
206
|
+
* If n < 0 items will shift n steps to the left
|
|
207
|
+
*/
|
|
208
|
+
export declare function shift<T>(arr: Array<T>, n: number): T[];
|
|
209
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An async reduce function. Works like the
|
|
3
|
+
* built-in Array.reduce function but handles
|
|
4
|
+
* an async reducer function
|
|
5
|
+
*/
|
|
6
|
+
export declare const reduce: <T, K>(array: readonly T[], asyncReducer: (acc: K, item: T, index: number) => Promise<K>, initValue?: K) => Promise<K>;
|
|
7
|
+
/**
|
|
8
|
+
* An async map function. Works like the
|
|
9
|
+
* built-in Array.map function but handles
|
|
10
|
+
* an async mapper function
|
|
11
|
+
*/
|
|
12
|
+
export declare const map: <T, K>(array: readonly T[], asyncMapFunc: (item: T, index: number) => Promise<K>) => Promise<K[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Useful when for script like things where cleanup
|
|
15
|
+
* should be done on fail or sucess no matter.
|
|
16
|
+
*
|
|
17
|
+
* You can call defer many times to register many
|
|
18
|
+
* defered functions that will all be called when
|
|
19
|
+
* the function exits in any state.
|
|
20
|
+
*/
|
|
21
|
+
export declare const defer: <TResponse>(func: (register: (fn: (error?: any) => any, options?: {
|
|
22
|
+
rethrow?: boolean;
|
|
23
|
+
}) => void) => Promise<TResponse>) => Promise<TResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Support for the built-in AggregateError
|
|
26
|
+
* is still new. Node < 15 doesn't have it
|
|
27
|
+
* so patching here.
|
|
28
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError#browser_compatibility
|
|
29
|
+
*/
|
|
30
|
+
export declare class AggregateError extends Error {
|
|
31
|
+
errors: Error[];
|
|
32
|
+
constructor(errors?: Error[]);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Executes many async functions in parallel. Returns the
|
|
36
|
+
* results from all functions as an array. After all functions
|
|
37
|
+
* have resolved, if any errors were thrown, they are rethrown
|
|
38
|
+
* in an instance of AggregateError
|
|
39
|
+
*/
|
|
40
|
+
export declare const parallel: <T, K>(limit: number, array: readonly T[], func: (item: T) => Promise<K>) => Promise<K[]>;
|
|
41
|
+
type PromiseValues<T extends Promise<any>[]> = {
|
|
42
|
+
[K in keyof T]: T[K] extends Promise<infer U> ? U : never;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Functionally similar to Promise.all or Promise.allSettled. If any
|
|
46
|
+
* errors are thrown, all errors are gathered and thrown in an
|
|
47
|
+
* AggregateError.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* const [user] = await all([
|
|
51
|
+
* api.users.create(...),
|
|
52
|
+
* s3.buckets.create(...),
|
|
53
|
+
* slack.customerSuccessChannel.sendMessage(...)
|
|
54
|
+
* ])
|
|
55
|
+
*/
|
|
56
|
+
export declare function all<T extends [Promise<any>, ...Promise<any>[]]>(promises: T): Promise<PromiseValues<T>>;
|
|
57
|
+
export declare function all<T extends Promise<any>[]>(promises: T): Promise<PromiseValues<T>>;
|
|
58
|
+
/**
|
|
59
|
+
* Functionally similar to Promise.all or Promise.allSettled. If any
|
|
60
|
+
* errors are thrown, all errors are gathered and thrown in an
|
|
61
|
+
* AggregateError.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* const { user } = await all({
|
|
65
|
+
* user: api.users.create(...),
|
|
66
|
+
* bucket: s3.buckets.create(...),
|
|
67
|
+
* message: slack.customerSuccessChannel.sendMessage(...)
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
export declare function all<T extends Record<string, Promise<any>>>(promises: T): Promise<{
|
|
71
|
+
[K in keyof T]: Awaited<T[K]>;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Retries the given function the specified number
|
|
75
|
+
* of times.
|
|
76
|
+
*/
|
|
77
|
+
export declare const retry: <TResponse>(options: {
|
|
78
|
+
times?: number;
|
|
79
|
+
delay?: number | null;
|
|
80
|
+
backoff?: (count: number) => number;
|
|
81
|
+
}, func: (exit: (err: any) => void) => Promise<TResponse>) => Promise<TResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Async wait
|
|
84
|
+
*/
|
|
85
|
+
export declare const sleep: (milliseconds: number) => Promise<unknown>;
|
|
86
|
+
/**
|
|
87
|
+
* A helper to try an async function without forking
|
|
88
|
+
* the control flow. Returns an error first callback _like_
|
|
89
|
+
* array response as [Error, result]
|
|
90
|
+
*/
|
|
91
|
+
export declare const tryit: <Args extends any[], Return>(func: (...args: Args) => Return) => (...args: Args) => Return extends Promise<any> ? Promise<[Error, undefined] | [undefined, Awaited<Return>]> : [Error, undefined] | [undefined, Return];
|
|
92
|
+
/**
|
|
93
|
+
* A helper to try an async function that returns undefined
|
|
94
|
+
* if it fails.
|
|
95
|
+
*
|
|
96
|
+
* e.g. const result = await guard(fetchUsers)() ?? [];
|
|
97
|
+
*/
|
|
98
|
+
export declare const guard: <TFunction extends () => any>(func: TFunction, shouldGuard?: (err: any) => boolean) => ReturnType<TFunction> extends Promise<any> ? Promise<Awaited<ReturnType<TFunction>> | undefined> : ReturnType<TFunction> | undefined;
|
|
99
|
+
export {};
|