@dxyl/utils 1.2.2 → 1.3.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 +11076 -9653
- package/dist/index.umd.js +33 -23
- package/lib/glslang/glslang.d.ts +14 -14
- package/lib/glslang/glslang.js +112 -112
- package/lib/twgsl/twgsl.js +53 -53
- package/package.json +51 -51
- package/types/Disposable.d.ts +21 -0
- package/types/PluginService.d.ts +65 -0
- package/types/Pool.d.ts +90 -0
- package/types/StackCursor.d.ts +6 -0
- package/types/Transaction.d.ts +25 -0
- package/types/antv-util/matrix/index.d.ts +1 -1
- package/types/antv-util/path/parser/params-parser.d.ts +2 -2
- package/types/data/immer.d.ts +262 -262
- package/types/data/immutable.d.ts +5127 -5127
- package/types/data/mobx.d.ts +2 -2
- package/types/data/reactivity.d.ts +2 -1
- package/types/events/eventTarget.d.ts +1 -1
- package/types/events/event_emiter.d.ts +43 -43
- package/types/fast/fast-deep-equal.d.ts +1 -0
- package/types/fast/fast-diff.d.ts +21 -0
- package/types/fast/fast-json-patch/core.d.ts +111 -0
- package/types/fast/fast-json-patch/duplex.d.ts +23 -0
- package/types/fast/fast-json-patch/helpers.d.ts +41 -0
- package/types/fast-deep-equal.d.ts +1 -1
- package/types/index.d.ts +9 -1
- package/types/laxer.d.ts +25 -1
- package/types/lodash/_freeGlobal.d.ts +1 -1
- package/types/lodash/_stackSet.d.ts +1 -1
- package/types/lodash/add.d.ts +2 -1
- package/types/lodash/after.d.ts +2 -1
- package/types/lodash/array.d.ts +3 -1
- package/types/lodash/array.default.d.ts +70 -68
- package/types/lodash/ary.d.ts +2 -1
- package/types/lodash/assign.d.ts +2 -1
- package/types/lodash/assignIn.d.ts +2 -1
- package/types/lodash/assignInWith.d.ts +2 -1
- package/types/lodash/assignWith.d.ts +2 -1
- package/types/lodash/at.d.ts +2 -1
- package/types/lodash/attempt.d.ts +2 -1
- package/types/lodash/augment.d.ts +2 -2
- package/types/lodash/before.d.ts +2 -1
- package/types/lodash/bind.d.ts +2 -1
- package/types/lodash/bindAll.d.ts +2 -1
- package/types/lodash/bindKey.d.ts +2 -1
- package/types/lodash/cache.d.ts +14 -14
- package/types/lodash/camelCase.d.ts +2 -1
- package/types/lodash/capitalize.d.ts +2 -1
- package/types/lodash/castArray.d.ts +2 -1
- package/types/lodash/ceil.d.ts +2 -1
- package/types/lodash/chain.d.ts +2 -1
- package/types/lodash/chunk.d.ts +2 -1
- package/types/lodash/clamp.d.ts +2 -1
- package/types/lodash/clear-animation-frame.d.ts +1 -1
- package/types/lodash/clone.d.ts +2 -1
- package/types/lodash/cloneDeep.d.ts +2 -1
- package/types/lodash/cloneDeepWith.d.ts +2 -1
- package/types/lodash/cloneWith.d.ts +2 -1
- package/types/lodash/collection.d.ts +3 -1
- package/types/lodash/collection.default.d.ts +33 -31
- package/types/lodash/compact.d.ts +2 -1
- package/types/lodash/concat.d.ts +2 -1
- package/types/lodash/cond.d.ts +2 -1
- package/types/lodash/conforms.d.ts +2 -1
- package/types/lodash/conformsTo.d.ts +2 -1
- package/types/lodash/constant.d.ts +2 -1
- package/types/lodash/contains.d.ts +2 -2
- package/types/lodash/countBy.d.ts +2 -1
- package/types/lodash/create.d.ts +2 -1
- package/types/lodash/curry.d.ts +2 -1
- package/types/lodash/curryRight.d.ts +2 -1
- package/types/lodash/date.d.ts +3 -1
- package/types/lodash/date.default.d.ts +6 -4
- package/types/lodash/debounce.d.ts +4 -2
- package/types/lodash/deburr.d.ts +2 -1
- package/types/lodash/deep-mix.d.ts +2 -2
- package/types/lodash/defaultTo.d.ts +2 -1
- package/types/lodash/defaults.d.ts +2 -1
- package/types/lodash/defaultsDeep.d.ts +2 -1
- package/types/lodash/defer.d.ts +2 -1
- package/types/lodash/delay.d.ts +2 -1
- package/types/lodash/difference.d.ts +2 -1
- package/types/lodash/differenceBy.d.ts +2 -1
- package/types/lodash/differenceWith.d.ts +2 -1
- package/types/lodash/divide.d.ts +2 -1
- package/types/lodash/drop.d.ts +2 -1
- package/types/lodash/dropRight.d.ts +2 -1
- package/types/lodash/dropRightWhile.d.ts +2 -1
- package/types/lodash/dropWhile.d.ts +2 -1
- package/types/lodash/each.d.ts +2 -1
- package/types/lodash/eachRight.d.ts +2 -1
- package/types/lodash/ends-with.d.ts +3 -3
- package/types/lodash/endsWith.d.ts +2 -1
- package/types/lodash/entries.d.ts +2 -1
- package/types/lodash/entriesIn.d.ts +2 -1
- package/types/lodash/eq.d.ts +2 -1
- package/types/lodash/escape.d.ts +2 -1
- package/types/lodash/escapeRegExp.d.ts +2 -1
- package/types/lodash/every.d.ts +2 -1
- package/types/lodash/extend.d.ts +2 -1
- package/types/lodash/extendWith.d.ts +2 -1
- package/types/lodash/fill.d.ts +2 -1
- package/types/lodash/filter.d.ts +2 -1
- package/types/lodash/find-index.d.ts +2 -2
- package/types/lodash/find.d.ts +2 -1
- package/types/lodash/findIndex.d.ts +2 -1
- package/types/lodash/findKey.d.ts +2 -1
- package/types/lodash/findLast.d.ts +2 -1
- package/types/lodash/findLastIndex.d.ts +2 -1
- package/types/lodash/findLastKey.d.ts +2 -1
- package/types/lodash/first-value.d.ts +2 -2
- package/types/lodash/first.d.ts +2 -1
- package/types/lodash/fixed-base.d.ts +2 -2
- package/types/lodash/flatMap.d.ts +2 -1
- package/types/lodash/flatMapDeep.d.ts +2 -1
- package/types/lodash/flatMapDepth.d.ts +2 -1
- package/types/lodash/flatten-deep.d.ts +12 -12
- package/types/lodash/flatten.d.ts +2 -1
- package/types/lodash/flattenDeep.d.ts +2 -1
- package/types/lodash/flattenDepth.d.ts +2 -1
- package/types/lodash/flip.d.ts +2 -1
- package/types/lodash/floor.d.ts +2 -1
- package/types/lodash/flow.d.ts +2 -1
- package/types/lodash/flowRight.d.ts +2 -1
- package/types/lodash/for-in.d.ts +2 -2
- package/types/lodash/forEach.d.ts +2 -1
- package/types/lodash/forEachRight.d.ts +2 -1
- package/types/lodash/forIn.d.ts +2 -1
- package/types/lodash/forInRight.d.ts +2 -1
- package/types/lodash/forOwn.d.ts +2 -1
- package/types/lodash/forOwnRight.d.ts +2 -1
- package/types/lodash/fromPairs.d.ts +2 -1
- package/types/lodash/function.d.ts +3 -1
- package/types/lodash/function.default.d.ts +28 -26
- package/types/lodash/functions.d.ts +2 -1
- package/types/lodash/functionsIn.d.ts +2 -1
- package/types/lodash/get-range.d.ts +6 -6
- package/types/lodash/get-type.d.ts +2 -2
- package/types/lodash/get-wrap-behavior.d.ts +9 -9
- package/types/lodash/get.d.ts +2 -1
- package/types/lodash/group-by.d.ts +6 -6
- package/types/lodash/group-to-map.d.ts +8 -8
- package/types/lodash/group.d.ts +2 -2
- package/types/lodash/groupBy.d.ts +2 -1
- package/types/lodash/gt.d.ts +2 -1
- package/types/lodash/gte.d.ts +2 -1
- package/types/lodash/has-key.d.ts +2 -2
- package/types/lodash/has-value.d.ts +2 -2
- package/types/lodash/has.d.ts +2 -1
- package/types/lodash/hasIn.d.ts +2 -1
- package/types/lodash/head.d.ts +2 -1
- package/types/lodash/identity.d.ts +2 -1
- package/types/lodash/inRange.d.ts +2 -1
- package/types/lodash/includes.d.ts +2 -1
- package/types/lodash/index-of.d.ts +2 -2
- package/types/lodash/index.d.ts +304 -304
- package/types/lodash/indexOf.d.ts +2 -1
- package/types/lodash/initial.d.ts +2 -1
- package/types/lodash/intersection.d.ts +2 -1
- package/types/lodash/intersectionBy.d.ts +2 -1
- package/types/lodash/intersectionWith.d.ts +2 -1
- package/types/lodash/invert.d.ts +2 -1
- package/types/lodash/invertBy.d.ts +2 -1
- package/types/lodash/invoke.d.ts +2 -1
- package/types/lodash/invokeMap.d.ts +2 -1
- package/types/lodash/is-arguments.d.ts +2 -2
- package/types/lodash/is-array-like.d.ts +2 -2
- package/types/lodash/is-array.d.ts +2 -2
- package/types/lodash/is-boolean.d.ts +2 -2
- package/types/lodash/is-date.d.ts +2 -2
- package/types/lodash/is-decimal.d.ts +2 -2
- package/types/lodash/is-element.d.ts +6 -6
- package/types/lodash/is-empty.d.ts +2 -2
- package/types/lodash/is-equal-with.d.ts +24 -24
- package/types/lodash/is-equal.d.ts +2 -2
- package/types/lodash/is-error.d.ts +2 -2
- package/types/lodash/is-even.d.ts +2 -2
- package/types/lodash/is-finite.d.ts +1 -1
- package/types/lodash/is-function.d.ts +2 -2
- package/types/lodash/is-integer.d.ts +2 -2
- package/types/lodash/is-match.d.ts +2 -2
- package/types/lodash/is-negative.d.ts +2 -2
- package/types/lodash/is-nil.d.ts +2 -2
- package/types/lodash/is-null.d.ts +2 -2
- package/types/lodash/is-number-equal.d.ts +1 -1
- package/types/lodash/is-number.d.ts +2 -2
- package/types/lodash/is-object-like.d.ts +2 -2
- package/types/lodash/is-object.d.ts +2 -2
- package/types/lodash/is-odd.d.ts +2 -2
- package/types/lodash/is-plain-object.d.ts +2 -2
- package/types/lodash/is-positive.d.ts +2 -2
- package/types/lodash/is-prototype.d.ts +2 -2
- package/types/lodash/is-reg-exp.d.ts +2 -2
- package/types/lodash/is-segment-equal.d.ts +2 -2
- package/types/lodash/is-string.d.ts +2 -2
- package/types/lodash/is-type.d.ts +2 -2
- package/types/lodash/is-undefined.d.ts +2 -2
- package/types/lodash/isArguments.d.ts +2 -1
- package/types/lodash/isArray.d.ts +2 -1
- package/types/lodash/isArrayBuffer.d.ts +2 -1
- package/types/lodash/isArrayLike.d.ts +2 -1
- package/types/lodash/isArrayLikeObject.d.ts +2 -1
- package/types/lodash/isBoolean.d.ts +2 -1
- package/types/lodash/isBuffer.d.ts +2 -1
- package/types/lodash/isDate.d.ts +2 -1
- package/types/lodash/isElement.d.ts +2 -1
- package/types/lodash/isEmpty.d.ts +2 -1
- package/types/lodash/isEqual.d.ts +2 -1
- package/types/lodash/isEqualWith.d.ts +2 -1
- package/types/lodash/isError.d.ts +2 -1
- package/types/lodash/isFinite.d.ts +2 -1
- package/types/lodash/isFunction.d.ts +2 -1
- package/types/lodash/isInteger.d.ts +2 -1
- package/types/lodash/isLength.d.ts +2 -1
- package/types/lodash/isMap.d.ts +2 -1
- package/types/lodash/isMatch.d.ts +2 -1
- package/types/lodash/isMatchWith.d.ts +2 -1
- package/types/lodash/isNaN.d.ts +2 -1
- package/types/lodash/isNative.d.ts +2 -1
- package/types/lodash/isNil.d.ts +2 -1
- package/types/lodash/isNull.d.ts +2 -1
- package/types/lodash/isNumber.d.ts +2 -1
- package/types/lodash/isObject.d.ts +2 -1
- package/types/lodash/isObjectLike.d.ts +2 -1
- package/types/lodash/isPlainObject.d.ts +2 -1
- package/types/lodash/isRegExp.d.ts +2 -1
- package/types/lodash/isSafeInteger.d.ts +2 -1
- package/types/lodash/isSet.d.ts +2 -1
- package/types/lodash/isString.d.ts +2 -1
- package/types/lodash/isSymbol.d.ts +2 -1
- package/types/lodash/isTypedArray.d.ts +2 -1
- package/types/lodash/isUndefined.d.ts +2 -1
- package/types/lodash/isWeakMap.d.ts +2 -1
- package/types/lodash/isWeakSet.d.ts +2 -1
- package/types/lodash/iteratee.d.ts +2 -1
- package/types/lodash/join.d.ts +2 -1
- package/types/lodash/kebabCase.d.ts +2 -1
- package/types/lodash/keyBy.d.ts +2 -1
- package/types/lodash/keys.d.ts +2 -1
- package/types/lodash/keysIn.d.ts +2 -1
- package/types/lodash/lang.d.ts +3 -1
- package/types/lodash/lang.default.d.ts +61 -59
- package/types/lodash/last.d.ts +2 -1
- package/types/lodash/lastIndexOf.d.ts +2 -1
- package/types/lodash/lower-case.d.ts +2 -2
- package/types/lodash/lower-first.d.ts +2 -2
- package/types/lodash/lowerCase.d.ts +2 -1
- package/types/lodash/lowerFirst.d.ts +2 -1
- package/types/lodash/lt.d.ts +2 -1
- package/types/lodash/lte.d.ts +2 -1
- package/types/lodash/map-values.d.ts +6 -6
- package/types/lodash/map.d.ts +2 -1
- package/types/lodash/mapKeys.d.ts +2 -1
- package/types/lodash/mapValues.d.ts +2 -1
- package/types/lodash/matches.d.ts +2 -1
- package/types/lodash/matchesProperty.d.ts +2 -1
- package/types/lodash/math.d.ts +3 -1
- package/types/lodash/math.default.d.ts +20 -18
- package/types/lodash/max-by.d.ts +16 -16
- package/types/lodash/max.d.ts +2 -1
- package/types/lodash/maxBy.d.ts +2 -1
- package/types/lodash/mean.d.ts +2 -1
- package/types/lodash/meanBy.d.ts +2 -1
- package/types/lodash/memoize.d.ts +2 -1
- package/types/lodash/merge.d.ts +2 -1
- package/types/lodash/mergeWith.d.ts +2 -1
- package/types/lodash/method.d.ts +2 -1
- package/types/lodash/methodOf.d.ts +2 -1
- package/types/lodash/min-by.d.ts +16 -16
- package/types/lodash/min.d.ts +2 -1
- package/types/lodash/minBy.d.ts +2 -1
- package/types/lodash/mix.d.ts +1 -1
- package/types/lodash/mixin.d.ts +2 -1
- package/types/lodash/mod.d.ts +2 -2
- package/types/lodash/multiply.d.ts +2 -1
- package/types/lodash/negate.d.ts +2 -1
- package/types/lodash/noop.d.ts +2 -1
- package/types/lodash/now.d.ts +2 -1
- package/types/lodash/nth.d.ts +2 -1
- package/types/lodash/nthArg.d.ts +2 -1
- package/types/lodash/number.d.ts +3 -1
- package/types/lodash/number.default.d.ts +8 -6
- package/types/lodash/number2color.d.ts +2 -2
- package/types/lodash/object.d.ts +3 -1
- package/types/lodash/object.default.d.ts +52 -50
- package/types/lodash/omit.d.ts +2 -1
- package/types/lodash/omitBy.d.ts +2 -1
- package/types/lodash/once.d.ts +2 -1
- package/types/lodash/orderBy.d.ts +2 -1
- package/types/lodash/over.d.ts +2 -1
- package/types/lodash/overArgs.d.ts +2 -1
- package/types/lodash/overEvery.d.ts +2 -1
- package/types/lodash/overSome.d.ts +2 -1
- package/types/lodash/pad.d.ts +2 -1
- package/types/lodash/padEnd.d.ts +2 -1
- package/types/lodash/padStart.d.ts +2 -1
- package/types/lodash/parse-radius.d.ts +9 -9
- package/types/lodash/parseInt.d.ts +2 -1
- package/types/lodash/partial.d.ts +2 -1
- package/types/lodash/partialRight.d.ts +2 -1
- package/types/lodash/partition.d.ts +2 -1
- package/types/lodash/pick.d.ts +2 -1
- package/types/lodash/pickBy.d.ts +2 -1
- package/types/lodash/property.d.ts +4 -2
- package/types/lodash/propertyOf.d.ts +2 -1
- package/types/lodash/pull-at.d.ts +2 -2
- package/types/lodash/pull.d.ts +2 -1
- package/types/lodash/pullAll.d.ts +2 -1
- package/types/lodash/pullAllBy.d.ts +2 -1
- package/types/lodash/pullAllWith.d.ts +2 -1
- package/types/lodash/pullAt.d.ts +2 -1
- package/types/lodash/random.d.ts +2 -1
- package/types/lodash/range.d.ts +2 -1
- package/types/lodash/rangeRight.d.ts +2 -1
- package/types/lodash/rearg.d.ts +2 -1
- package/types/lodash/reduce.d.ts +2 -1
- package/types/lodash/reduceRight.d.ts +2 -1
- package/types/lodash/reject.d.ts +2 -1
- package/types/lodash/remove.d.ts +2 -1
- package/types/lodash/repeat.d.ts +2 -1
- package/types/lodash/replace.d.ts +2 -1
- package/types/lodash/request-animation-frame.d.ts +1 -1
- package/types/lodash/rest.d.ts +2 -1
- package/types/lodash/result.d.ts +2 -1
- package/types/lodash/reverse.d.ts +2 -1
- package/types/lodash/round.d.ts +2 -1
- package/types/lodash/sample.d.ts +2 -1
- package/types/lodash/sampleSize.d.ts +2 -1
- package/types/lodash/set.d.ts +2 -1
- package/types/lodash/setWith.d.ts +2 -1
- package/types/lodash/shuffle.d.ts +2 -1
- package/types/lodash/size.d.ts +2 -1
- package/types/lodash/slice.d.ts +2 -1
- package/types/lodash/snakeCase.d.ts +2 -1
- package/types/lodash/some.d.ts +2 -1
- package/types/lodash/sort-by.d.ts +7 -7
- package/types/lodash/sortBy.d.ts +2 -1
- package/types/lodash/sortedIndex.d.ts +2 -1
- package/types/lodash/sortedIndexBy.d.ts +2 -1
- package/types/lodash/sortedIndexOf.d.ts +2 -1
- package/types/lodash/sortedLastIndex.d.ts +2 -1
- package/types/lodash/sortedLastIndexBy.d.ts +2 -1
- package/types/lodash/sortedLastIndexOf.d.ts +2 -1
- package/types/lodash/sortedUniq.d.ts +2 -1
- package/types/lodash/sortedUniqBy.d.ts +2 -1
- package/types/lodash/split.d.ts +2 -1
- package/types/lodash/spread.d.ts +2 -1
- package/types/lodash/startCase.d.ts +2 -1
- package/types/lodash/starts-with.d.ts +3 -3
- package/types/lodash/startsWith.d.ts +2 -1
- package/types/lodash/string.d.ts +3 -1
- package/types/lodash/string.default.d.ts +36 -34
- package/types/lodash/stubArray.d.ts +2 -1
- package/types/lodash/stubFalse.d.ts +2 -1
- package/types/lodash/stubObject.d.ts +2 -1
- package/types/lodash/stubString.d.ts +2 -1
- package/types/lodash/stubTrue.d.ts +2 -1
- package/types/lodash/substitute.d.ts +5 -5
- package/types/lodash/subtract.d.ts +2 -1
- package/types/lodash/sum.d.ts +2 -1
- package/types/lodash/sumBy.d.ts +2 -1
- package/types/lodash/tail.d.ts +2 -1
- package/types/lodash/take.d.ts +2 -1
- package/types/lodash/takeRight.d.ts +2 -1
- package/types/lodash/takeRightWhile.d.ts +2 -1
- package/types/lodash/takeWhile.d.ts +2 -1
- package/types/lodash/tap.d.ts +2 -1
- package/types/lodash/template.d.ts +2 -1
- package/types/lodash/templateSettings.d.ts +2 -1
- package/types/lodash/throttle.d.ts +4 -2
- package/types/lodash/thru.d.ts +2 -1
- package/types/lodash/times.d.ts +2 -1
- package/types/lodash/to-array.d.ts +2 -2
- package/types/lodash/to-degree.d.ts +2 -2
- package/types/lodash/to-integer.d.ts +1 -1
- package/types/lodash/to-radian.d.ts +2 -2
- package/types/lodash/to-string.d.ts +2 -2
- package/types/lodash/toArray.d.ts +2 -1
- package/types/lodash/toFinite.d.ts +2 -1
- package/types/lodash/toInteger.d.ts +2 -1
- package/types/lodash/toLength.d.ts +2 -1
- package/types/lodash/toLower.d.ts +2 -1
- package/types/lodash/toNumber.d.ts +2 -1
- package/types/lodash/toPairs.d.ts +2 -1
- package/types/lodash/toPairsIn.d.ts +2 -1
- package/types/lodash/toPath.d.ts +2 -1
- package/types/lodash/toPlainObject.d.ts +2 -1
- package/types/lodash/toSafeInteger.d.ts +2 -1
- package/types/lodash/toString.d.ts +2 -1
- package/types/lodash/toUpper.d.ts +2 -1
- package/types/lodash/transform.d.ts +2 -1
- package/types/lodash/trim.d.ts +2 -1
- package/types/lodash/trimEnd.d.ts +2 -1
- package/types/lodash/trimStart.d.ts +2 -1
- package/types/lodash/truncate.d.ts +2 -1
- package/types/lodash/types/index.d.ts +3 -3
- package/types/lodash/unary.d.ts +2 -1
- package/types/lodash/unescape.d.ts +2 -1
- package/types/lodash/union.d.ts +2 -1
- package/types/lodash/unionBy.d.ts +2 -1
- package/types/lodash/unionWith.d.ts +2 -1
- package/types/lodash/uniq.d.ts +2 -1
- package/types/lodash/uniqBy.d.ts +2 -1
- package/types/lodash/uniqWith.d.ts +2 -1
- package/types/lodash/unique-id.d.ts +2 -2
- package/types/lodash/uniqueId.d.ts +2 -1
- package/types/lodash/unset.d.ts +2 -1
- package/types/lodash/unzip.d.ts +2 -1
- package/types/lodash/unzipWith.d.ts +2 -1
- package/types/lodash/update.d.ts +2 -1
- package/types/lodash/updateWith.d.ts +2 -1
- package/types/lodash/upper-case.d.ts +2 -2
- package/types/lodash/upper-first.d.ts +2 -2
- package/types/lodash/upperCase.d.ts +2 -1
- package/types/lodash/upperFirst.d.ts +2 -1
- package/types/lodash/util.d.ts +3 -1
- package/types/lodash/util.default.d.ts +37 -35
- package/types/lodash/values-of-key.d.ts +2 -2
- package/types/lodash/values.d.ts +2 -1
- package/types/lodash/valuesIn.d.ts +2 -1
- package/types/lodash/without.d.ts +2 -1
- package/types/lodash/words.d.ts +2 -1
- package/types/lodash/wrap-behavior.d.ts +9 -9
- package/types/lodash/wrap.d.ts +2 -1
- package/types/lodash/xor.d.ts +2 -1
- package/types/lodash/xorBy.d.ts +2 -1
- package/types/lodash/xorWith.d.ts +2 -1
- package/types/lodash/zip.d.ts +2 -1
- package/types/lodash/zipObject.d.ts +2 -1
- package/types/lodash/zipObjectDeep.d.ts +2 -1
- package/types/lodash/zipWith.d.ts +2 -1
- package/types/priority_queue.d.ts +2 -2
- package/types/radash/array.d.ts +3 -3
- package/types/stats.module.d.ts +3 -3
- package/types/text/quill-delta/AttributeMap.d.ts +10 -0
- package/types/text/quill-delta/Delta.d.ts +45 -0
- package/types/text/quill-delta/Op.d.ts +11 -0
- package/types/text/quill-delta/OpIterator.d.ts +13 -0
package/types/data/mobx.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, untracked, IAtom, createAtom, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArraySplice, IArrayUpdate, IArrayDidChange, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, CreateObservableOptions, computed, IComputedFactory, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, apiOwnKeys as ownKeys, apiDefineProperty as defineProperty, configure, onBecomeObserved, onBecomeUnobserved, flow, isFlow, flowResult, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6
|
|
2
|
-
Lambda, $mobx, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd, makeObservable, makeAutoObservable, autoAction as _autoAction, AnnotationsMap, AnnotationMapEntry, override } from './mobx/internal';
|
|
1
|
+
export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, untracked, IAtom, createAtom, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArraySplice, IArrayUpdate, IArrayDidChange, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, CreateObservableOptions, computed, IComputedFactory, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, apiOwnKeys as ownKeys, apiDefineProperty as defineProperty, configure, onBecomeObserved, onBecomeUnobserved, flow, isFlow, flowResult, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6
|
|
2
|
+
Lambda, $mobx, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd, makeObservable, makeAutoObservable, autoAction as _autoAction, AnnotationsMap, AnnotationMapEntry, override } from './mobx/internal';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
2
|
+
|
|
2
3
|
export declare enum TrackOpTypes {
|
|
3
4
|
GET = "get",
|
|
4
5
|
HAS = "has",
|
|
@@ -751,5 +752,5 @@ export declare function getCurrentWatcher(): ReactiveEffect<any> | undefined;
|
|
|
751
752
|
*/
|
|
752
753
|
export declare function onWatcherCleanup(cleanupFn: () => void, failSilently?: boolean, owner?: ReactiveEffect | undefined): void;
|
|
753
754
|
export declare function watch(source: WatchSource | WatchSource[] | WatchEffect | object, cb?: WatchCallback | null, options?: WatchOptions): WatchHandle;
|
|
754
|
-
export declare function traverse(value: unknown, depth?: number, seen?:
|
|
755
|
+
export declare function traverse(value: unknown, depth?: number, seen?: Map<unknown, number>): unknown;
|
|
755
756
|
|
|
@@ -17,7 +17,7 @@ export declare const BUBBLING_PHASE: 3;
|
|
|
17
17
|
export declare class Event<T = any, E extends Extract<keyof Record<string, any>, string> = ''> {
|
|
18
18
|
static create<T = any, E extends Extract<keyof Record<string, any>, string> = ''>(type: E, bubbles?: boolean, cancelable?: boolean): Event<T, E>;
|
|
19
19
|
type: E;
|
|
20
|
-
parentNode:
|
|
20
|
+
parentNode: any;
|
|
21
21
|
target: EventTarget | null;
|
|
22
22
|
currentTarget: EventTarget | null;
|
|
23
23
|
data: T | null;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
type EventData = {
|
|
2
|
-
[Key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
type ListenerFunc<D extends EventData> = (e: EmitterEvent<D>) => void;
|
|
5
|
-
type ListenerObject<D extends EventData> = {
|
|
6
|
-
handleEvent(e: EmitterEvent<D>): void;
|
|
7
|
-
};
|
|
8
|
-
type ListenerFuncOrObject<D extends EventData> = ListenerFunc<D> | ListenerObject<D>;
|
|
9
|
-
type ListenerData<D extends EventData> = {
|
|
10
|
-
once: boolean;
|
|
11
|
-
listener: ListenerFuncOrObject<D>;
|
|
12
|
-
};
|
|
13
|
-
export declare class EmitterEvent<Data extends EventData> {
|
|
14
|
-
static NONE: number;
|
|
15
|
-
static AT_TARGET: number;
|
|
16
|
-
static BUBBLING_PHASE: number;
|
|
17
|
-
static new(type: string, data: any): EmitterEvent<any>;
|
|
18
|
-
type: string;
|
|
19
|
-
eventPhase: number;
|
|
20
|
-
data: Data;
|
|
21
|
-
target: EventEmitter<any> | null;
|
|
22
|
-
currentTarget: EventEmitter<any> | null;
|
|
23
|
-
composedPath: EventEmitter<any>[];
|
|
24
|
-
bubbles: boolean;
|
|
25
|
-
propagationStopped: boolean;
|
|
26
|
-
immediatePropagationStopped: boolean;
|
|
27
|
-
constructor(type: string, data: Data);
|
|
28
|
-
reset(): void;
|
|
29
|
-
stopPropagation(): void;
|
|
30
|
-
stopImmediatePropagation(): void;
|
|
31
|
-
}
|
|
32
|
-
declare const isEventEmitter_Property: unique symbol;
|
|
33
|
-
export declare class EventEmitter<EventListeners extends Record<string, EventData> = {}> {
|
|
34
|
-
static createEvent(type: string, data: any): EmitterEvent<any>;
|
|
35
|
-
[isEventEmitter_Property]: boolean;
|
|
36
|
-
parent?: EventEmitter;
|
|
37
|
-
listeners: Map<string, ListenerData<EventData>[]>;
|
|
38
|
-
hasEvent(type: string): boolean;
|
|
39
|
-
on<Type extends Extract<keyof EventListeners, string>>(type: Type, listener: ListenerFuncOrObject<EventListeners[Type]>, once?: boolean): boolean;
|
|
40
|
-
off<Type extends Extract<keyof EventListeners, string>>(type?: Type, listener?: ListenerFuncOrObject<EventListeners[Type]>): boolean;
|
|
41
|
-
emit(event: EmitterEvent<EventListeners[keyof EventListeners]>): void;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
1
|
+
type EventData = {
|
|
2
|
+
[Key: string]: any;
|
|
3
|
+
};
|
|
4
|
+
type ListenerFunc<D extends EventData> = (e: EmitterEvent<D>) => void;
|
|
5
|
+
type ListenerObject<D extends EventData> = {
|
|
6
|
+
handleEvent(e: EmitterEvent<D>): void;
|
|
7
|
+
};
|
|
8
|
+
type ListenerFuncOrObject<D extends EventData> = ListenerFunc<D> | ListenerObject<D>;
|
|
9
|
+
type ListenerData<D extends EventData> = {
|
|
10
|
+
once: boolean;
|
|
11
|
+
listener: ListenerFuncOrObject<D>;
|
|
12
|
+
};
|
|
13
|
+
export declare class EmitterEvent<Data extends EventData> {
|
|
14
|
+
static NONE: number;
|
|
15
|
+
static AT_TARGET: number;
|
|
16
|
+
static BUBBLING_PHASE: number;
|
|
17
|
+
static new(type: string, data: any): EmitterEvent<any>;
|
|
18
|
+
type: string;
|
|
19
|
+
eventPhase: number;
|
|
20
|
+
data: Data;
|
|
21
|
+
target: EventEmitter<any> | null;
|
|
22
|
+
currentTarget: EventEmitter<any> | null;
|
|
23
|
+
composedPath: EventEmitter<any>[];
|
|
24
|
+
bubbles: boolean;
|
|
25
|
+
propagationStopped: boolean;
|
|
26
|
+
immediatePropagationStopped: boolean;
|
|
27
|
+
constructor(type: string, data: Data);
|
|
28
|
+
reset(): void;
|
|
29
|
+
stopPropagation(): void;
|
|
30
|
+
stopImmediatePropagation(): void;
|
|
31
|
+
}
|
|
32
|
+
declare const isEventEmitter_Property: unique symbol;
|
|
33
|
+
export declare class EventEmitter<EventListeners extends Record<string, EventData> = {}> {
|
|
34
|
+
static createEvent(type: string, data: any): EmitterEvent<any>;
|
|
35
|
+
[isEventEmitter_Property]: boolean;
|
|
36
|
+
parent?: EventEmitter;
|
|
37
|
+
listeners: Map<string, ListenerData<EventData>[]>;
|
|
38
|
+
hasEvent(type: string): boolean;
|
|
39
|
+
on<Type extends Extract<keyof EventListeners, string>>(type: Type, listener: ListenerFuncOrObject<EventListeners[Type]>, once?: boolean): boolean;
|
|
40
|
+
off<Type extends Extract<keyof EventListeners, string>>(type?: Type, listener?: ListenerFuncOrObject<EventListeners[Type]>): boolean;
|
|
41
|
+
emit(event: EmitterEvent<EventListeners[keyof EventListeners]>): void;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function equal(a: any, b: any): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function diff(
|
|
2
|
+
text1: string,
|
|
3
|
+
text2: string,
|
|
4
|
+
cursorPos?: number | diff.CursorInfo,
|
|
5
|
+
cleanup?: boolean
|
|
6
|
+
): diff.Diff[];
|
|
7
|
+
|
|
8
|
+
declare namespace diff {
|
|
9
|
+
type Diff = [-1 | 0 | 1, string];
|
|
10
|
+
|
|
11
|
+
const DELETE: -1;
|
|
12
|
+
const INSERT: 1;
|
|
13
|
+
const EQUAL: 0;
|
|
14
|
+
|
|
15
|
+
interface CursorInfo {
|
|
16
|
+
oldRange: { index: number; length: number };
|
|
17
|
+
newRange: { index: number; length: number };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default diff;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { PatchError, _deepClone } from './helpers.js';
|
|
2
|
+
export declare const JsonPatchError: typeof PatchError;
|
|
3
|
+
export declare const deepClone: typeof _deepClone;
|
|
4
|
+
export type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
5
|
+
export interface Validator<T> {
|
|
6
|
+
(operation: Operation, index: number, document: T, existingPathFragment: string): void;
|
|
7
|
+
}
|
|
8
|
+
export interface OperationResult<T> {
|
|
9
|
+
removed?: any;
|
|
10
|
+
test?: boolean;
|
|
11
|
+
newDocument: T;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseOperation {
|
|
14
|
+
path: string;
|
|
15
|
+
}
|
|
16
|
+
export interface AddOperation<T> extends BaseOperation {
|
|
17
|
+
op: 'add';
|
|
18
|
+
value: T;
|
|
19
|
+
}
|
|
20
|
+
export interface RemoveOperation extends BaseOperation {
|
|
21
|
+
op: 'remove';
|
|
22
|
+
}
|
|
23
|
+
export interface ReplaceOperation<T> extends BaseOperation {
|
|
24
|
+
op: 'replace';
|
|
25
|
+
value: T;
|
|
26
|
+
}
|
|
27
|
+
export interface MoveOperation extends BaseOperation {
|
|
28
|
+
op: 'move';
|
|
29
|
+
from: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CopyOperation extends BaseOperation {
|
|
32
|
+
op: 'copy';
|
|
33
|
+
from: string;
|
|
34
|
+
}
|
|
35
|
+
export interface TestOperation<T> extends BaseOperation {
|
|
36
|
+
op: 'test';
|
|
37
|
+
value: T;
|
|
38
|
+
}
|
|
39
|
+
export interface GetOperation<T> extends BaseOperation {
|
|
40
|
+
op: '_get';
|
|
41
|
+
value: T;
|
|
42
|
+
}
|
|
43
|
+
export interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
44
|
+
newDocument: T;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a value from a JSON document by a JSON pointer.
|
|
48
|
+
* Returns the value.
|
|
49
|
+
*
|
|
50
|
+
* @param document The document to get the value from
|
|
51
|
+
* @param pointer an escaped JSON pointer
|
|
52
|
+
* @return The retrieved value
|
|
53
|
+
*/
|
|
54
|
+
export declare function getValueByPointer(document: any, pointer: string): any;
|
|
55
|
+
/**
|
|
56
|
+
* Apply a single JSON Patch Operation on a JSON document.
|
|
57
|
+
* Returns the {newDocument, result} of the operation.
|
|
58
|
+
* It modifies the `document` and `operation` objects - it gets the values by reference.
|
|
59
|
+
* If you would like to avoid touching your values, clone them:
|
|
60
|
+
* `jsonpatch.applyOperation(document, jsonpatch._deepClone(operation))`.
|
|
61
|
+
*
|
|
62
|
+
* @param document The document to patch
|
|
63
|
+
* @param operation The operation to apply
|
|
64
|
+
* @param validateOperation `false` is without validation, `true` to use default jsonpatch's validation, or you can pass a `validateOperation` callback to be used for validation.
|
|
65
|
+
* @param mutateDocument Whether to mutate the original document or clone it before applying
|
|
66
|
+
* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.
|
|
67
|
+
* @return `{newDocument, result}` after the operation
|
|
68
|
+
*/
|
|
69
|
+
export declare function applyOperation<T>(document: T, operation: Operation, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean, index?: number): OperationResult<T>;
|
|
70
|
+
/**
|
|
71
|
+
* Apply a full JSON Patch array on a JSON document.
|
|
72
|
+
* Returns the {newDocument, result} of the patch.
|
|
73
|
+
* It modifies the `document` object and `patch` - it gets the values by reference.
|
|
74
|
+
* If you would like to avoid touching your values, clone them:
|
|
75
|
+
* `jsonpatch.applyPatch(document, jsonpatch._deepClone(patch))`.
|
|
76
|
+
*
|
|
77
|
+
* @param document The document to patch
|
|
78
|
+
* @param patch The patch to apply
|
|
79
|
+
* @param validateOperation `false` is without validation, `true` to use default jsonpatch's validation, or you can pass a `validateOperation` callback to be used for validation.
|
|
80
|
+
* @param mutateDocument Whether to mutate the original document or clone it before applying
|
|
81
|
+
* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.
|
|
82
|
+
* @return An array of `{newDocument, result}` after the patch
|
|
83
|
+
*/
|
|
84
|
+
export declare function applyPatch<T>(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): PatchResult<T>;
|
|
85
|
+
/**
|
|
86
|
+
* Apply a single JSON Patch Operation on a JSON document.
|
|
87
|
+
* Returns the updated document.
|
|
88
|
+
* Suitable as a reducer.
|
|
89
|
+
*
|
|
90
|
+
* @param document The document to patch
|
|
91
|
+
* @param operation The operation to apply
|
|
92
|
+
* @return The updated document
|
|
93
|
+
*/
|
|
94
|
+
export declare function applyReducer<T>(document: T, operation: Operation, index: number): T;
|
|
95
|
+
/**
|
|
96
|
+
* Validates a single operation. Called from `jsonpatch.validate`. Throws `JsonPatchError` in case of an error.
|
|
97
|
+
* @param {object} operation - operation object (patch)
|
|
98
|
+
* @param {number} index - index of operation in the sequence
|
|
99
|
+
* @param {object} [document] - object where the operation is supposed to be applied
|
|
100
|
+
* @param {string} [existingPathFragment] - comes along with `document`
|
|
101
|
+
*/
|
|
102
|
+
export declare function validator(operation: Operation, index: number, document?: any, existingPathFragment?: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* Validates a sequence of operations. If `document` parameter is provided, the sequence is additionally validated against the object document.
|
|
105
|
+
* If error is encountered, returns a JsonPatchError object
|
|
106
|
+
* @param sequence
|
|
107
|
+
* @param document
|
|
108
|
+
* @returns {JsonPatchError|undefined}
|
|
109
|
+
*/
|
|
110
|
+
export declare function validate<T>(sequence: ReadonlyArray<Operation>, document?: T, externalValidator?: Validator<T>): PatchError;
|
|
111
|
+
export declare function _areEquals(a: any, b: any): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Operation } from './core.js';
|
|
2
|
+
export interface Observer<T> {
|
|
3
|
+
object: T;
|
|
4
|
+
patches: Operation[];
|
|
5
|
+
unobserve: () => void;
|
|
6
|
+
callback: (patches: Operation[]) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Detach an observer from an object
|
|
10
|
+
*/
|
|
11
|
+
export declare function unobserve<T>(root: T, observer: Observer<T>): void;
|
|
12
|
+
/**
|
|
13
|
+
* Observes changes made to an object, which can then be retrieved using generate
|
|
14
|
+
*/
|
|
15
|
+
export declare function observe<T>(obj: Object | Array<T>, callback?: (patches: Operation[]) => void): Observer<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Generate an array of patches from an observer
|
|
18
|
+
*/
|
|
19
|
+
export declare function generate<T>(observer: Observer<Object>, invertible?: boolean): Operation[];
|
|
20
|
+
/**
|
|
21
|
+
* Create an array of patches from the differences in two objects
|
|
22
|
+
*/
|
|
23
|
+
export declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
3
|
+
* (c) 2017-2022 Joachim Wester
|
|
4
|
+
* MIT licensed
|
|
5
|
+
*/
|
|
6
|
+
export declare function hasOwnProperty(obj: any, key: string): boolean;
|
|
7
|
+
export declare function _objectKeys(obj: any): any[];
|
|
8
|
+
/**
|
|
9
|
+
* Deeply clone the object.
|
|
10
|
+
* https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy)
|
|
11
|
+
* @param {any} obj value to clone
|
|
12
|
+
* @return {any} cloned obj
|
|
13
|
+
*/
|
|
14
|
+
export declare function _deepClone(obj: any): any;
|
|
15
|
+
export declare function isInteger(str: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Escapes a json pointer path
|
|
18
|
+
* @param path The raw pointer
|
|
19
|
+
* @return the Escaped path
|
|
20
|
+
*/
|
|
21
|
+
export declare function escapePathComponent(path: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Unescapes a json pointer path
|
|
24
|
+
* @param path The escaped pointer
|
|
25
|
+
* @return The unescaped path
|
|
26
|
+
*/
|
|
27
|
+
export declare function unescapePathComponent(path: string): string;
|
|
28
|
+
export declare function _getPathRecursive(root: any, obj: any): string;
|
|
29
|
+
export declare function getPath(root: Object, obj: Object): string;
|
|
30
|
+
/**
|
|
31
|
+
* Recursively checks whether an object has any undefined values inside.
|
|
32
|
+
*/
|
|
33
|
+
export declare function hasUndefined(obj: any): boolean;
|
|
34
|
+
export type JsonPatchErrorName = 'SEQUENCE_NOT_AN_ARRAY' | 'OPERATION_NOT_AN_OBJECT' | 'OPERATION_OP_INVALID' | 'OPERATION_PATH_INVALID' | 'OPERATION_FROM_REQUIRED' | 'OPERATION_VALUE_REQUIRED' | 'OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED' | 'OPERATION_PATH_CANNOT_ADD' | 'OPERATION_PATH_UNRESOLVABLE' | 'OPERATION_FROM_UNRESOLVABLE' | 'OPERATION_PATH_ILLEGAL_ARRAY_INDEX' | 'OPERATION_VALUE_OUT_OF_BOUNDS' | 'TEST_OPERATION_FAILED';
|
|
35
|
+
export declare class PatchError extends Error {
|
|
36
|
+
name: JsonPatchErrorName;
|
|
37
|
+
index?: number;
|
|
38
|
+
operation?: any;
|
|
39
|
+
tree?: any;
|
|
40
|
+
constructor(message: string, name: JsonPatchErrorName, index?: number, operation?: any, tree?: any);
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function equal(a: any, b: any): boolean;
|
|
1
|
+
export default function equal(a: any, b: any): boolean;
|
package/types/index.d.ts
CHANGED
|
@@ -24,6 +24,14 @@ export { Options } from './Options';
|
|
|
24
24
|
export { default as compose } from './compose';
|
|
25
25
|
export type { OptionsProperties, OptionConfig } from './Options';
|
|
26
26
|
export { default as deepmerge } from './deepmerge';
|
|
27
|
-
export { default as fastDeepEqual } from './fast-deep-equal';
|
|
28
27
|
export * from './Color';
|
|
29
28
|
export * as colord from './color/colord/src';
|
|
29
|
+
export * from './PluginService';
|
|
30
|
+
export { default as fastDeepEqual } from './fast/fast-deep-equal';
|
|
31
|
+
export { default as fastDiff } from './fast/fast-diff';
|
|
32
|
+
export * as fastJsonPatch from './fast/fast-json-patch/core';
|
|
33
|
+
export * as QuillDelta from './text/quill-delta/Delta';
|
|
34
|
+
export * from './Transaction';
|
|
35
|
+
export * from './StackCursor';
|
|
36
|
+
export * from './Pool';
|
|
37
|
+
export * from './Disposable';
|
package/types/laxer.d.ts
CHANGED
|
@@ -19,4 +19,28 @@
|
|
|
19
19
|
*
|
|
20
20
|
* sourceCode -> Lexer analysis or Tokenizer(token[]) -> ast parse (tree<astNode>) -> (code generate) | (ast interpreter)
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
declare const token: (type: string, value: any, start: number) => {
|
|
23
|
+
type: string;
|
|
24
|
+
value: any;
|
|
25
|
+
start: number;
|
|
26
|
+
};
|
|
27
|
+
type Token = ReturnType<typeof token>;
|
|
28
|
+
/**
|
|
29
|
+
* 词法分析
|
|
30
|
+
* @param {string} source 源码
|
|
31
|
+
* @returns {Token[]}
|
|
32
|
+
*/
|
|
33
|
+
declare const lexer: (source: string) => {
|
|
34
|
+
type: string;
|
|
35
|
+
value: any;
|
|
36
|
+
start: number;
|
|
37
|
+
}[];
|
|
38
|
+
declare const parse: (tokens: Token[]) => {
|
|
39
|
+
type: string;
|
|
40
|
+
body: any[];
|
|
41
|
+
start?: number;
|
|
42
|
+
end?: number;
|
|
43
|
+
};
|
|
44
|
+
declare const codeGen: (ast: any) => string;
|
|
45
|
+
declare const interpreter: (program: any) => any;
|
|
46
|
+
export { parse, codeGen, lexer, interpreter, token };
|
package/types/lodash/add.d.ts
CHANGED
package/types/lodash/after.d.ts
CHANGED
package/types/lodash/array.d.ts
CHANGED
|
@@ -63,4 +63,6 @@ import { default as zip } from './zip';
|
|
|
63
63
|
import { default as zipObject } from './zipObject';
|
|
64
64
|
import { default as zipObjectDeep } from './zipObjectDeep';
|
|
65
65
|
import { default as zipWith } from './zipWith';
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export { default } from './array.default';
|
|
@@ -63,71 +63,73 @@ import { default as zip } from './zip';
|
|
|
63
63
|
import { default as zipObject } from './zipObject';
|
|
64
64
|
import { default as zipObjectDeep } from './zipObjectDeep';
|
|
65
65
|
import { default as zipWith } from './zipWith';
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
declare const defaultExport: {
|
|
69
|
+
chunk: typeof chunk;
|
|
70
|
+
compact: typeof compact;
|
|
71
|
+
concat: typeof concat;
|
|
72
|
+
difference: typeof difference;
|
|
73
|
+
differenceBy: typeof differenceBy;
|
|
74
|
+
differenceWith: typeof differenceWith;
|
|
75
|
+
drop: typeof drop;
|
|
76
|
+
dropRight: typeof dropRight;
|
|
77
|
+
dropRightWhile: typeof dropRightWhile;
|
|
78
|
+
dropWhile: typeof dropWhile;
|
|
79
|
+
fill: typeof fill;
|
|
80
|
+
findIndex: typeof findIndex;
|
|
81
|
+
findLastIndex: typeof findLastIndex;
|
|
82
|
+
first: typeof first;
|
|
83
|
+
flatten: typeof flatten;
|
|
84
|
+
flattenDeep: typeof flattenDeep;
|
|
85
|
+
flattenDepth: typeof flattenDepth;
|
|
86
|
+
fromPairs: typeof fromPairs;
|
|
87
|
+
head: typeof head;
|
|
88
|
+
indexOf: typeof indexOf;
|
|
89
|
+
initial: typeof initial;
|
|
90
|
+
intersection: typeof intersection;
|
|
91
|
+
intersectionBy: typeof intersectionBy;
|
|
92
|
+
intersectionWith: typeof intersectionWith;
|
|
93
|
+
join: typeof join;
|
|
94
|
+
last: typeof last;
|
|
95
|
+
lastIndexOf: typeof lastIndexOf;
|
|
96
|
+
nth: typeof nth;
|
|
97
|
+
pull: typeof pull;
|
|
98
|
+
pullAll: typeof pullAll;
|
|
99
|
+
pullAllBy: typeof pullAllBy;
|
|
100
|
+
pullAllWith: typeof pullAllWith;
|
|
101
|
+
pullAt: typeof pullAt;
|
|
102
|
+
remove: typeof remove;
|
|
103
|
+
reverse: typeof reverse;
|
|
104
|
+
slice: typeof slice;
|
|
105
|
+
sortedIndex: typeof sortedIndex;
|
|
106
|
+
sortedIndexBy: typeof sortedIndexBy;
|
|
107
|
+
sortedIndexOf: typeof sortedIndexOf;
|
|
108
|
+
sortedLastIndex: typeof sortedLastIndex;
|
|
109
|
+
sortedLastIndexBy: typeof sortedLastIndexBy;
|
|
110
|
+
sortedLastIndexOf: typeof sortedLastIndexOf;
|
|
111
|
+
sortedUniq: typeof sortedUniq;
|
|
112
|
+
sortedUniqBy: typeof sortedUniqBy;
|
|
113
|
+
tail: typeof tail;
|
|
114
|
+
take: typeof take;
|
|
115
|
+
takeRight: typeof takeRight;
|
|
116
|
+
takeRightWhile: typeof takeRightWhile;
|
|
117
|
+
takeWhile: typeof takeWhile;
|
|
118
|
+
union: typeof union;
|
|
119
|
+
unionBy: typeof unionBy;
|
|
120
|
+
unionWith: typeof unionWith;
|
|
121
|
+
uniq: typeof uniq;
|
|
122
|
+
uniqBy: typeof uniqBy;
|
|
123
|
+
uniqWith: typeof uniqWith;
|
|
124
|
+
unzip: typeof unzip;
|
|
125
|
+
unzipWith: typeof unzipWith;
|
|
126
|
+
without: typeof without;
|
|
127
|
+
xor: typeof xor;
|
|
128
|
+
xorBy: typeof xorBy;
|
|
129
|
+
xorWith: typeof xorWith;
|
|
130
|
+
zip: typeof zip;
|
|
131
|
+
zipObject: typeof zipObject;
|
|
132
|
+
zipObjectDeep: typeof zipObjectDeep;
|
|
133
|
+
zipWith: typeof zipWith;
|
|
134
|
+
};
|
|
135
|
+
export default defaultExport;
|
package/types/lodash/ary.d.ts
CHANGED
package/types/lodash/assign.d.ts
CHANGED
package/types/lodash/at.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const augment: (...args: any[]) => void;
|
|
2
|
-
export default augment;
|
|
1
|
+
declare const augment: (...args: any[]) => void;
|
|
2
|
+
export default augment;
|
package/types/lodash/before.d.ts
CHANGED
package/types/lodash/bind.d.ts
CHANGED