@types/lodash 4.14.100 → 4.14.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lodash/README.md +2 -2
- lodash/common/array.d.ts +3845 -0
- lodash/common/collection.d.ts +3091 -0
- lodash/common/common.d.ts +3 -3
- lodash/{date/now.d.ts → common/date.d.ts} +3 -1
- lodash/common/function.d.ts +1367 -0
- lodash/common/lang.d.ts +1937 -0
- lodash/common/math.d.ts +536 -0
- lodash/{number/random.d.ts → common/number.d.ts} +98 -1
- lodash/common/object.d.ts +3653 -0
- lodash/common/seq.d.ts +198 -0
- lodash/common/string.d.ts +1059 -0
- lodash/common/util.d.ts +1455 -0
- lodash/index.d.ts +11 -338
- lodash/package.json +2 -7
- lodash/array/chunk.d.ts +0 -37
- lodash/array/compact.d.ts +0 -27
- lodash/array/concat.d.ts +0 -39
- lodash/array/difference.d.ts +0 -37
- lodash/array/differenceBy.d.ts +0 -243
- lodash/array/differenceWith.d.ts +0 -132
- lodash/array/drop.d.ts +0 -27
- lodash/array/dropRight.d.ts +0 -30
- lodash/array/dropRightWhile.d.ts +0 -47
- lodash/array/dropWhile.d.ts +0 -47
- lodash/array/fill.d.ts +0 -124
- lodash/array/findIndex.d.ts +0 -50
- lodash/array/findLastIndex.d.ts +0 -49
- lodash/array/first.d.ts +0 -23
- lodash/array/flatten.d.ts +0 -43
- lodash/array/flattenDeep.d.ts +0 -26
- lodash/array/flattenDepth.d.ts +0 -27
- lodash/array/fromPairs.d.ts +0 -59
- lodash/array/head.d.ts +0 -28
- lodash/array/indexOf.d.ts +0 -53
- lodash/array/initial.d.ts +0 -26
- lodash/array/intersection.d.ts +0 -33
- lodash/array/intersectionBy.d.ts +0 -134
- lodash/array/intersectionWith.d.ts +0 -133
- lodash/array/join.d.ts +0 -30
- lodash/array/last.d.ts +0 -26
- lodash/array/lastIndexOf.d.ts +0 -40
- lodash/array/nth.d.ts +0 -36
- lodash/array/pull.d.ts +0 -46
- lodash/array/pullAll.d.ts +0 -54
- lodash/array/pullAllBy.d.ts +0 -77
- lodash/array/pullAllWith.d.ts +0 -77
- lodash/array/pullAt.d.ts +0 -34
- lodash/array/remove.d.ts +0 -49
- lodash/array/reverse.d.ts +0 -27
- lodash/array/slice.d.ts +0 -40
- lodash/array/sortedIndex.d.ts +0 -45
- lodash/array/sortedIndexBy.d.ts +0 -97
- lodash/array/sortedIndexOf.d.ts +0 -42
- lodash/array/sortedLastIndex.d.ts +0 -43
- lodash/array/sortedLastIndexBy.d.ts +0 -48
- lodash/array/sortedLastIndexOf.d.ts +0 -42
- lodash/array/sortedUniq.d.ts +0 -34
- lodash/array/sortedUniqBy.d.ts +0 -66
- lodash/array/tail.d.ts +0 -26
- lodash/array/take.d.ts +0 -36
- lodash/array/takeRight.d.ts +0 -36
- lodash/array/takeRightWhile.d.ts +0 -47
- lodash/array/takeWhile.d.ts +0 -47
- lodash/array/union.d.ts +0 -33
- lodash/array/unionBy.d.ts +0 -164
- lodash/array/unionWith.d.ts +0 -103
- lodash/array/uniq.d.ts +0 -36
- lodash/array/uniqBy.d.ts +0 -71
- lodash/array/uniqWith.d.ts +0 -45
- lodash/array/unzip.d.ts +0 -27
- lodash/array/unzipWith.d.ts +0 -60
- lodash/array/without.d.ts +0 -36
- lodash/array/xor.d.ts +0 -32
- lodash/array/xorBy.d.ts +0 -104
- lodash/array/xorWith.d.ts +0 -103
- lodash/array/zip.d.ts +0 -129
- lodash/array/zipObject.d.ts +0 -58
- lodash/array/zipObjectDeep.d.ts +0 -36
- lodash/array/zipWith.d.ts +0 -187
- lodash/collection/countBy.d.ts +0 -121
- lodash/collection/each.d.ts +0 -40
- lodash/collection/eachRight.d.ts +0 -40
- lodash/collection/every.d.ts +0 -85
- lodash/collection/filter.d.ts +0 -143
- lodash/collection/find.d.ts +0 -131
- lodash/collection/findLast.d.ts +0 -121
- lodash/collection/flatMap.d.ts +0 -164
- lodash/collection/flatMapDeep.d.ts +0 -164
- lodash/collection/flatMapDepth.d.ts +0 -180
- lodash/collection/forEach.d.ts +0 -113
- lodash/collection/forEachRight.d.ts +0 -108
- lodash/collection/groupBy.d.ts +0 -121
- lodash/collection/includes.d.ts +0 -41
- lodash/collection/invokeMap.d.ts +0 -58
- lodash/collection/keyBy.d.ts +0 -121
- lodash/collection/map.d.ts +0 -180
- lodash/collection/orderBy.d.ts +0 -192
- lodash/collection/partition.d.ts +0 -72
- lodash/collection/reduce.d.ts +0 -220
- lodash/collection/reduceRight.d.ts +0 -217
- lodash/collection/reject.d.ts +0 -86
- lodash/collection/sample.d.ts +0 -74
- lodash/collection/sampleSize.d.ts +0 -60
- lodash/collection/shuffle.d.ts +0 -41
- lodash/collection/size.d.ts +0 -27
- lodash/collection/some.d.ts +0 -85
- lodash/collection/sortBy.d.ts +0 -84
- lodash/function/after.d.ts +0 -30
- lodash/function/ary.d.ts +0 -30
- lodash/function/before.d.ts +0 -32
- lodash/function/bind.d.ts +0 -50
- lodash/function/bindKey.d.ts +0 -51
- lodash/function/curry.d.ts +0 -203
- lodash/function/curryRight.d.ts +0 -132
- lodash/function/debounce.d.ts +0 -67
- lodash/function/defer.d.ts +0 -31
- lodash/function/delay.d.ts +0 -38
- lodash/function/flip.d.ts +0 -28
- lodash/function/memoize.d.ts +0 -37
- lodash/function/negate.d.ts +0 -20
- lodash/function/once.d.ts +0 -20
- lodash/function/overArgs.d.ts +0 -31
- lodash/function/partial.d.ts +0 -159
- lodash/function/partialRight.d.ts +0 -150
- lodash/function/rearg.d.ts +0 -28
- lodash/function/rest.d.ts +0 -33
- lodash/function/spread.d.ts +0 -44
- lodash/function/throttle.d.ts +0 -58
- lodash/function/unary.d.ts +0 -32
- lodash/function/wrap.d.ts +0 -61
- lodash/lang/castArray.d.ts +0 -26
- lodash/lang/clone.d.ts +0 -31
- lodash/lang/cloneDeep.d.ts +0 -26
- lodash/lang/cloneDeepWith.d.ts +0 -51
- lodash/lang/cloneWith.d.ts +0 -74
- lodash/lang/conformsTo.d.ts +0 -31
- lodash/lang/eq.d.ts +0 -55
- lodash/lang/gt.d.ts +0 -30
- lodash/lang/gte.d.ts +0 -30
- lodash/lang/isArguments.d.ts +0 -26
- lodash/lang/isArray.d.ts +0 -31
- lodash/lang/isArrayBuffer.d.ts +0 -26
- lodash/lang/isArrayLike.d.ts +0 -52
- lodash/lang/isArrayLikeObject.d.ts +0 -53
- lodash/lang/isBoolean.d.ts +0 -26
- lodash/lang/isBuffer.d.ts +0 -26
- lodash/lang/isDate.d.ts +0 -26
- lodash/lang/isElement.d.ts +0 -26
- lodash/lang/isEmpty.d.ts +0 -27
- lodash/lang/isEqual.d.ts +0 -52
- lodash/lang/isEqualWith.d.ts +0 -61
- lodash/lang/isError.d.ts +0 -27
- lodash/lang/isFinite.d.ts +0 -28
- lodash/lang/isFunction.d.ts +0 -26
- lodash/lang/isInteger.d.ts +0 -42
- lodash/lang/isLength.d.ts +0 -42
- lodash/lang/isMap.d.ts +0 -26
- lodash/lang/isMatch.d.ts +0 -42
- lodash/lang/isMatchWith.d.ts +0 -51
- lodash/lang/isNaN.d.ts +0 -28
- lodash/lang/isNative.d.ts +0 -26
- lodash/lang/isNil.d.ts +0 -37
- lodash/lang/isNull.d.ts +0 -26
- lodash/lang/isNumber.d.ts +0 -28
- lodash/lang/isObject.d.ts +0 -27
- lodash/lang/isObjectLike.d.ts +0 -41
- lodash/lang/isPlainObject.d.ts +0 -29
- lodash/lang/isRegExp.d.ts +0 -26
- lodash/lang/isSafeInteger.d.ts +0 -43
- lodash/lang/isSet.d.ts +0 -26
- lodash/lang/isString.d.ts +0 -26
- lodash/lang/isSymbol.d.ts +0 -34
- lodash/lang/isTypedArray.d.ts +0 -26
- lodash/lang/isUndefined.d.ts +0 -26
- lodash/lang/isWeakMap.d.ts +0 -26
- lodash/lang/isWeakSet.d.ts +0 -26
- lodash/lang/lt.d.ts +0 -30
- lodash/lang/lte.d.ts +0 -30
- lodash/lang/toArray.d.ts +0 -46
- lodash/lang/toFinite.d.ts +0 -41
- lodash/lang/toInteger.d.ts +0 -42
- lodash/lang/toLength.d.ts +0 -43
- lodash/lang/toNumber.d.ts +0 -40
- lodash/lang/toPlainObject.d.ts +0 -27
- lodash/lang/toSafeInteger.d.ts +0 -41
- lodash/lang/toString.d.ts +0 -24
- lodash/math/add.d.ts +0 -30
- lodash/math/ceil.d.ts +0 -30
- lodash/math/divide.d.ts +0 -30
- lodash/math/floor.d.ts +0 -30
- lodash/math/max.d.ts +0 -30
- lodash/math/maxBy.d.ts +0 -49
- lodash/math/mean.d.ts +0 -33
- lodash/math/meanBy.d.ts +0 -41
- lodash/math/min.d.ts +0 -30
- lodash/math/minBy.d.ts +0 -49
- lodash/math/multiply.d.ts +0 -29
- lodash/math/round.d.ts +0 -30
- lodash/math/subtract.d.ts +0 -39
- lodash/math/sum.d.ts +0 -31
- lodash/math/sumBy.d.ts +0 -53
- lodash/number/clamp.d.ts +0 -56
- lodash/number/inRange.d.ts +0 -39
- lodash/object/assign.d.ts +0 -172
- lodash/object/assignIn.d.ts +0 -171
- lodash/object/assignInWith.d.ts +0 -183
- lodash/object/assignWith.d.ts +0 -180
- lodash/object/at.d.ts +0 -61
- lodash/object/create.d.ts +0 -31
- lodash/object/defaults.d.ts +0 -155
- lodash/object/defaultsDeep.d.ts +0 -28
- lodash/object/entries.d.ts +0 -38
- lodash/object/entriesIn.d.ts +0 -38
- lodash/object/extend.d.ts +0 -147
- lodash/object/extendWith.d.ts +0 -159
- lodash/object/findKey.d.ts +0 -47
- lodash/object/findLastKey.d.ts +0 -46
- lodash/object/forIn.d.ts +0 -37
- lodash/object/forInRight.d.ts +0 -35
- lodash/object/forOwn.d.ts +0 -37
- lodash/object/forOwnRight.d.ts +0 -35
- lodash/object/functions.d.ts +0 -39
- lodash/object/functionsIn.d.ts +0 -39
- lodash/object/get.d.ts +0 -238
- lodash/object/has.d.ts +0 -47
- lodash/object/hasIn.d.ts +0 -46
- lodash/object/invert.d.ts +0 -30
- lodash/object/invertBy.d.ts +0 -62
- lodash/object/invoke.d.ts +0 -33
- lodash/object/keys.d.ts +0 -28
- lodash/object/keysIn.d.ts +0 -28
- lodash/object/mapKeys.d.ts +0 -86
- lodash/object/mapValues.d.ts +0 -189
- lodash/object/merge.d.ts +0 -156
- lodash/object/mergeWith.d.ts +0 -133
- lodash/object/omit.d.ts +0 -69
- lodash/object/omitBy.d.ts +0 -45
- lodash/object/pick.d.ts +0 -68
- lodash/object/pickBy.d.ts +0 -44
- lodash/object/result.d.ts +0 -39
- lodash/object/set.d.ts +0 -65
- lodash/object/setWith.d.ts +0 -71
- lodash/object/toPairs.d.ts +0 -41
- lodash/object/toPairsIn.d.ts +0 -41
- lodash/object/transform.d.ts +0 -163
- lodash/object/unset.d.ts +0 -32
- lodash/object/update.d.ts +0 -39
- lodash/object/updateWith.d.ts +0 -83
- lodash/object/values.d.ts +0 -56
- lodash/object/valuesIn.d.ts +0 -41
- lodash/seq/chain.d.ts +0 -26
- lodash/seq/prototype.at.d.ts +0 -12
- lodash/seq/prototype.chain.d.ts +0 -26
- lodash/seq/prototype.commit.d.ts +0 -11
- lodash/seq/prototype.plant.d.ts +0 -18
- lodash/seq/prototype.reverse.d.ts +0 -14
- lodash/seq/prototype.toJSON.d.ts +0 -9
- lodash/seq/prototype.toString.d.ts +0 -11
- lodash/seq/prototype.value.d.ts +0 -13
- lodash/seq/prototype.valueOf.d.ts +0 -9
- lodash/seq/tap.d.ts +0 -28
- lodash/seq/thru.d.ts +0 -31
- lodash/string/camelCase.d.ts +0 -26
- lodash/string/capitalize.d.ts +0 -26
- lodash/string/deburr.d.ts +0 -27
- lodash/string/endsWith.d.ts +0 -38
- lodash/string/escape.d.ts +0 -37
- lodash/string/escapeRegExp.d.ts +0 -27
- lodash/string/kebabCase.d.ts +0 -26
- lodash/string/lowerCase.d.ts +0 -26
- lodash/string/lowerFirst.d.ts +0 -26
- lodash/string/pad.d.ts +0 -39
- lodash/string/padEnd.d.ts +0 -39
- lodash/string/padStart.d.ts +0 -39
- lodash/string/parseInt.d.ts +0 -33
- lodash/string/repeat.d.ts +0 -32
- lodash/string/replace.d.ts +0 -59
- lodash/string/snakeCase.d.ts +0 -26
- lodash/string/split.d.ts +0 -56
- lodash/string/startCase.d.ts +0 -26
- lodash/string/startsWith.d.ts +0 -38
- lodash/string/template.d.ts +0 -61
- lodash/string/toLower.d.ts +0 -26
- lodash/string/toUpper.d.ts +0 -26
- lodash/string/trim.d.ts +0 -44
- lodash/string/trimEnd.d.ts +0 -44
- lodash/string/trimStart.d.ts +0 -44
- lodash/string/truncate.d.ts +0 -40
- lodash/string/unescape.d.ts +0 -30
- lodash/string/upperCase.d.ts +0 -26
- lodash/string/upperFirst.d.ts +0 -26
- lodash/string/words.d.ts +0 -44
- lodash/util/attempt.d.ts +0 -27
- lodash/util/bindAll.d.ts +0 -28
- lodash/util/cond.d.ts +0 -33
- lodash/util/conforms.d.ts +0 -28
- lodash/util/constant.d.ts +0 -26
- lodash/util/defaultTo.d.ts +0 -53
- lodash/util/flow.d.ts +0 -171
- lodash/util/flowRight.d.ts +0 -156
- lodash/util/identity.d.ts +0 -31
- lodash/util/iteratee.d.ts +0 -58
- lodash/util/matches.d.ts +0 -36
- lodash/util/matchesProperty.d.ts +0 -59
- lodash/util/method.d.ts +0 -31
- lodash/util/methodOf.d.ts +0 -35
- lodash/util/mixin.d.ts +0 -69
- lodash/util/noConflict.d.ts +0 -25
- lodash/util/noop.d.ts +0 -25
- lodash/util/nthArg.d.ts +0 -26
- lodash/util/over.d.ts +0 -33
- lodash/util/overEvery.d.ts +0 -27
- lodash/util/overSome.d.ts +0 -27
- lodash/util/property.d.ts +0 -26
- lodash/util/propertyOf.d.ts +0 -27
- lodash/util/range.d.ts +0 -56
- lodash/util/rangeRight.d.ts +0 -77
- lodash/util/runInContext.d.ts +0 -19
- lodash/util/stubArray.d.ts +0 -25
- lodash/util/stubFalse.d.ts +0 -25
- lodash/util/stubObject.d.ts +0 -25
- lodash/util/stubString.d.ts +0 -25
- lodash/util/stubTrue.d.ts +0 -25
- lodash/util/times.d.ts +0 -50
- lodash/util/toPath.d.ts +0 -43
- lodash/util/uniqueId.d.ts +0 -26
lodash/string/parseInt.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used
|
|
6
|
-
* unless value is a hexadecimal, in which case a radix of 16 is used.
|
|
7
|
-
*
|
|
8
|
-
* Note: This method aligns with the ES5 implementation of parseInt.
|
|
9
|
-
*
|
|
10
|
-
* @param string The string to convert.
|
|
11
|
-
* @param radix The radix to interpret value by.
|
|
12
|
-
* @return Returns the converted integer.
|
|
13
|
-
*/
|
|
14
|
-
parseInt(
|
|
15
|
-
string: string,
|
|
16
|
-
radix?: number
|
|
17
|
-
): number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.parseInt
|
|
23
|
-
*/
|
|
24
|
-
parseInt(radix?: number): number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.parseInt
|
|
30
|
-
*/
|
|
31
|
-
parseInt(radix?: number): LoDashExplicitWrapper<number>;
|
|
32
|
-
}
|
|
33
|
-
}
|
lodash/string/repeat.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Repeats the given string n times.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to repeat.
|
|
8
|
-
* @param n The number of times to repeat the string.
|
|
9
|
-
* @return Returns the repeated string.
|
|
10
|
-
*/
|
|
11
|
-
repeat(
|
|
12
|
-
string?: string,
|
|
13
|
-
n?: number
|
|
14
|
-
): string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
18
|
-
/**
|
|
19
|
-
* @see _.repeat
|
|
20
|
-
*/
|
|
21
|
-
repeat(n?: number): string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
25
|
-
/**
|
|
26
|
-
* @see _.repeat
|
|
27
|
-
*/
|
|
28
|
-
repeat(n?: number): LoDashExplicitWrapper<string>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type ReplaceFunction = (match: string, ...args: any[]) => string;
|
|
32
|
-
}
|
lodash/string/replace.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Replaces matches for pattern in string with replacement.
|
|
6
|
-
*
|
|
7
|
-
* Note: This method is based on String#replace.
|
|
8
|
-
*
|
|
9
|
-
* @return Returns the modified string.
|
|
10
|
-
*/
|
|
11
|
-
replace(
|
|
12
|
-
string: string,
|
|
13
|
-
pattern: RegExp | string,
|
|
14
|
-
replacement: ReplaceFunction | string
|
|
15
|
-
): string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @see _.replace
|
|
19
|
-
*/
|
|
20
|
-
replace(
|
|
21
|
-
pattern: RegExp | string,
|
|
22
|
-
replacement: ReplaceFunction | string
|
|
23
|
-
): string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
27
|
-
/**
|
|
28
|
-
* @see _.replace
|
|
29
|
-
*/
|
|
30
|
-
replace(
|
|
31
|
-
pattern: RegExp|string,
|
|
32
|
-
replacement: ReplaceFunction | string
|
|
33
|
-
): string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @see _.replace
|
|
37
|
-
*/
|
|
38
|
-
replace(
|
|
39
|
-
replacement: ReplaceFunction | string
|
|
40
|
-
): string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
44
|
-
/**
|
|
45
|
-
* @see _.replace
|
|
46
|
-
*/
|
|
47
|
-
replace(
|
|
48
|
-
pattern: RegExp | string,
|
|
49
|
-
replacement: ReplaceFunction | string
|
|
50
|
-
): LoDashExplicitWrapper<string>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @see _.replace
|
|
54
|
-
*/
|
|
55
|
-
replace(
|
|
56
|
-
replacement: ReplaceFunction | string
|
|
57
|
-
): LoDashExplicitWrapper<string>;
|
|
58
|
-
}
|
|
59
|
-
}
|
lodash/string/snakeCase.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts string to snake case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the snake cased string.
|
|
9
|
-
*/
|
|
10
|
-
snakeCase(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.snakeCase
|
|
16
|
-
*/
|
|
17
|
-
snakeCase(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.snakeCase
|
|
23
|
-
*/
|
|
24
|
-
snakeCase(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/string/split.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Splits string by separator.
|
|
6
|
-
*
|
|
7
|
-
* Note: This method is based on String#split.
|
|
8
|
-
*
|
|
9
|
-
* @param string The string to trim.
|
|
10
|
-
* @param separator The separator pattern to split by.
|
|
11
|
-
* @param limit The length to truncate results to.
|
|
12
|
-
* @return Returns the new array of string segments.
|
|
13
|
-
*/
|
|
14
|
-
split(
|
|
15
|
-
string: string,
|
|
16
|
-
separator?: RegExp|string,
|
|
17
|
-
limit?: number
|
|
18
|
-
): string[];
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Splits string by separator.
|
|
22
|
-
*
|
|
23
|
-
* Note: This method is based on String#split.
|
|
24
|
-
*
|
|
25
|
-
* @param string The string to trim.
|
|
26
|
-
* @param index Not used in this overload.
|
|
27
|
-
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
28
|
-
* @return Returns the new array of string segments.
|
|
29
|
-
*/
|
|
30
|
-
split(
|
|
31
|
-
string: string,
|
|
32
|
-
index: string | number,
|
|
33
|
-
guard: object
|
|
34
|
-
): string[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
38
|
-
/**
|
|
39
|
-
* @see _.split
|
|
40
|
-
*/
|
|
41
|
-
split(
|
|
42
|
-
separator?: RegExp|string,
|
|
43
|
-
limit?: number
|
|
44
|
-
): LoDashImplicitWrapper<string[]>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
48
|
-
/**
|
|
49
|
-
* @see _.split
|
|
50
|
-
*/
|
|
51
|
-
split(
|
|
52
|
-
separator?: RegExp|string,
|
|
53
|
-
limit?: number
|
|
54
|
-
): LoDashExplicitWrapper<string[]>;
|
|
55
|
-
}
|
|
56
|
-
}
|
lodash/string/startCase.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts string to start case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the start cased string.
|
|
9
|
-
*/
|
|
10
|
-
startCase(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.startCase
|
|
16
|
-
*/
|
|
17
|
-
startCase(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.startCase
|
|
23
|
-
*/
|
|
24
|
-
startCase(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/string/startsWith.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Checks if string starts with the given target string.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to search.
|
|
8
|
-
* @param target The string to search for.
|
|
9
|
-
* @param position The position to search from.
|
|
10
|
-
* @return Returns true if string starts with target, else false.
|
|
11
|
-
*/
|
|
12
|
-
startsWith(
|
|
13
|
-
string?: string,
|
|
14
|
-
target?: string,
|
|
15
|
-
position?: number
|
|
16
|
-
): boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
20
|
-
/**
|
|
21
|
-
* @see _.startsWith
|
|
22
|
-
*/
|
|
23
|
-
startsWith(
|
|
24
|
-
target?: string,
|
|
25
|
-
position?: number
|
|
26
|
-
): boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
30
|
-
/**
|
|
31
|
-
* @see _.startsWith
|
|
32
|
-
*/
|
|
33
|
-
startsWith(
|
|
34
|
-
target?: string,
|
|
35
|
-
position?: number
|
|
36
|
-
): LoDashExplicitWrapper<boolean>;
|
|
37
|
-
}
|
|
38
|
-
}
|
lodash/string/template.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface TemplateOptions extends TemplateSettings {
|
|
4
|
-
/**
|
|
5
|
-
* The sourceURL of the template's compiled source.
|
|
6
|
-
*/
|
|
7
|
-
sourceURL?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface TemplateExecutor {
|
|
11
|
-
(data?: object): string;
|
|
12
|
-
source: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface LoDashStatic {
|
|
16
|
-
/**
|
|
17
|
-
* Creates a compiled template function that can interpolate data properties in "interpolate" delimiters,
|
|
18
|
-
* HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate"
|
|
19
|
-
* delimiters. Data properties may be accessed as free variables in the template. If a setting object is
|
|
20
|
-
* provided it takes precedence over _.templateSettings values.
|
|
21
|
-
*
|
|
22
|
-
* Note: In the development build _.template utilizes
|
|
23
|
-
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) for easier
|
|
24
|
-
* debugging.
|
|
25
|
-
*
|
|
26
|
-
* For more information on precompiling templates see
|
|
27
|
-
* [lodash's custom builds documentation](https://lodash.com/custom-builds).
|
|
28
|
-
*
|
|
29
|
-
* For more information on Chrome extension sandboxes see
|
|
30
|
-
* [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
|
|
31
|
-
*
|
|
32
|
-
* @param string The template string.
|
|
33
|
-
* @param options The options object.
|
|
34
|
-
* @param options.escape The HTML "escape" delimiter.
|
|
35
|
-
* @param options.evaluate The "evaluate" delimiter.
|
|
36
|
-
* @param options.imports An object to import into the template as free variables.
|
|
37
|
-
* @param options.interpolate The "interpolate" delimiter.
|
|
38
|
-
* @param options.sourceURL The sourceURL of the template's compiled source.
|
|
39
|
-
* @param options.variable The data object variable name.
|
|
40
|
-
* @return Returns the compiled template function.
|
|
41
|
-
*/
|
|
42
|
-
template(
|
|
43
|
-
string?: string,
|
|
44
|
-
options?: TemplateOptions
|
|
45
|
-
): TemplateExecutor;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
49
|
-
/**
|
|
50
|
-
* @see _.template
|
|
51
|
-
*/
|
|
52
|
-
template(options?: TemplateOptions): TemplateExecutor;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
56
|
-
/**
|
|
57
|
-
* @see _.template
|
|
58
|
-
*/
|
|
59
|
-
template(options?: TemplateOptions): LoDashExplicitWrapper<TemplateExecutor>;
|
|
60
|
-
}
|
|
61
|
-
}
|
lodash/string/toLower.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts `string`, as a whole, to lower case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the lower cased string.
|
|
9
|
-
*/
|
|
10
|
-
toLower(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.toLower
|
|
16
|
-
*/
|
|
17
|
-
toLower(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.toLower
|
|
23
|
-
*/
|
|
24
|
-
toLower(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/string/toUpper.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts `string`, as a whole, to upper case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the upper cased string.
|
|
9
|
-
*/
|
|
10
|
-
toUpper(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.toUpper
|
|
16
|
-
*/
|
|
17
|
-
toUpper(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.toUpper
|
|
23
|
-
*/
|
|
24
|
-
toUpper(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/string/trim.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Removes leading and trailing whitespace or specified characters from string.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to trim.
|
|
8
|
-
* @param chars The characters to trim.
|
|
9
|
-
* @return Returns the trimmed string.
|
|
10
|
-
*/
|
|
11
|
-
trim(
|
|
12
|
-
string?: string,
|
|
13
|
-
chars?: string
|
|
14
|
-
): string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Removes leading and trailing whitespace or specified characters from string.
|
|
18
|
-
*
|
|
19
|
-
* @param string The string to trim.
|
|
20
|
-
* @param index Not used in this overload.
|
|
21
|
-
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
22
|
-
* @return Returns the trimmed string.
|
|
23
|
-
*/
|
|
24
|
-
trim(
|
|
25
|
-
string: string,
|
|
26
|
-
index: string | number,
|
|
27
|
-
guard: object
|
|
28
|
-
): string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.trim
|
|
34
|
-
*/
|
|
35
|
-
trim(chars?: string): string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
39
|
-
/**
|
|
40
|
-
* @see _.trim
|
|
41
|
-
*/
|
|
42
|
-
trim(chars?: string): LoDashExplicitWrapper<string>;
|
|
43
|
-
}
|
|
44
|
-
}
|
lodash/string/trimEnd.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Removes trailing whitespace or specified characters from string.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to trim.
|
|
8
|
-
* @param chars The characters to trim.
|
|
9
|
-
* @return Returns the trimmed string.
|
|
10
|
-
*/
|
|
11
|
-
trimEnd(
|
|
12
|
-
string?: string,
|
|
13
|
-
chars?: string
|
|
14
|
-
): string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Removes trailing whitespace or specified characters from string.
|
|
18
|
-
*
|
|
19
|
-
* @param string The string to trim.
|
|
20
|
-
* @param index Not used in this overload.
|
|
21
|
-
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
22
|
-
* @return Returns the trimmed string.
|
|
23
|
-
*/
|
|
24
|
-
trimEnd(
|
|
25
|
-
string: string,
|
|
26
|
-
index: string | number,
|
|
27
|
-
guard: object
|
|
28
|
-
): string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.trimEnd
|
|
34
|
-
*/
|
|
35
|
-
trimEnd(chars?: string): string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
39
|
-
/**
|
|
40
|
-
* @see _.trimEnd
|
|
41
|
-
*/
|
|
42
|
-
trimEnd(chars?: string): LoDashExplicitWrapper<string>;
|
|
43
|
-
}
|
|
44
|
-
}
|
lodash/string/trimStart.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Removes leading whitespace or specified characters from string.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to trim.
|
|
8
|
-
* @param chars The characters to trim.
|
|
9
|
-
* @return Returns the trimmed string.
|
|
10
|
-
*/
|
|
11
|
-
trimStart(
|
|
12
|
-
string?: string,
|
|
13
|
-
chars?: string
|
|
14
|
-
): string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Removes leading whitespace or specified characters from string.
|
|
18
|
-
*
|
|
19
|
-
* @param string The string to trim.
|
|
20
|
-
* @param index Not used in this overload.
|
|
21
|
-
* @param guard Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
|
|
22
|
-
* @return Returns the trimmed string.
|
|
23
|
-
*/
|
|
24
|
-
trimStart(
|
|
25
|
-
string: string,
|
|
26
|
-
index: string | number,
|
|
27
|
-
guard: object
|
|
28
|
-
): string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
32
|
-
/**
|
|
33
|
-
* @see _.trimStart
|
|
34
|
-
*/
|
|
35
|
-
trimStart(chars?: string): string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
39
|
-
/**
|
|
40
|
-
* @see _.trimStart
|
|
41
|
-
*/
|
|
42
|
-
trimStart(chars?: string): LoDashExplicitWrapper<string>;
|
|
43
|
-
}
|
|
44
|
-
}
|
lodash/string/truncate.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface TruncateOptions {
|
|
4
|
-
/** The maximum string length. */
|
|
5
|
-
length?: number;
|
|
6
|
-
/** The string to indicate text is omitted. */
|
|
7
|
-
omission?: string;
|
|
8
|
-
/** The separator pattern to truncate to. */
|
|
9
|
-
separator?: string|RegExp;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface LoDashStatic {
|
|
13
|
-
/**
|
|
14
|
-
* Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
|
|
15
|
-
* string are replaced with the omission string which defaults to "…".
|
|
16
|
-
*
|
|
17
|
-
* @param string The string to truncate.
|
|
18
|
-
* @param options The options object or maximum string length.
|
|
19
|
-
* @return Returns the truncated string.
|
|
20
|
-
*/
|
|
21
|
-
truncate(
|
|
22
|
-
string?: string,
|
|
23
|
-
options?: TruncateOptions
|
|
24
|
-
): string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
28
|
-
/**
|
|
29
|
-
* @see _.truncate
|
|
30
|
-
*/
|
|
31
|
-
truncate(options?: TruncateOptions): string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
35
|
-
/**
|
|
36
|
-
* @see _.truncate
|
|
37
|
-
*/
|
|
38
|
-
truncate(options?: TruncateOptions): LoDashExplicitWrapper<string>;
|
|
39
|
-
}
|
|
40
|
-
}
|
lodash/string/unescape.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* The inverse of _.escape; this method converts the HTML entities &, <, >, ", ', and `
|
|
6
|
-
* in string to their corresponding characters.
|
|
7
|
-
*
|
|
8
|
-
* Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library
|
|
9
|
-
* like he.
|
|
10
|
-
*
|
|
11
|
-
* @param string The string to unescape.
|
|
12
|
-
* @return Returns the unescaped string.
|
|
13
|
-
*/
|
|
14
|
-
unescape(string?: string): string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
18
|
-
/**
|
|
19
|
-
* @see _.unescape
|
|
20
|
-
*/
|
|
21
|
-
unescape(): string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
25
|
-
/**
|
|
26
|
-
* @see _.unescape
|
|
27
|
-
*/
|
|
28
|
-
unescape(): LoDashExplicitWrapper<string>;
|
|
29
|
-
}
|
|
30
|
-
}
|
lodash/string/upperCase.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts `string`, as space separated words, to upper case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the upper cased string.
|
|
9
|
-
*/
|
|
10
|
-
upperCase(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.upperCase
|
|
16
|
-
*/
|
|
17
|
-
upperCase(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.upperCase
|
|
23
|
-
*/
|
|
24
|
-
upperCase(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|
lodash/string/upperFirst.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _ from "../index";
|
|
2
|
-
declare module "../index" {
|
|
3
|
-
interface LoDashStatic {
|
|
4
|
-
/**
|
|
5
|
-
* Converts the first character of `string` to upper case.
|
|
6
|
-
*
|
|
7
|
-
* @param string The string to convert.
|
|
8
|
-
* @return Returns the converted string.
|
|
9
|
-
*/
|
|
10
|
-
upperFirst(string?: string): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LoDashImplicitWrapper<TValue> {
|
|
14
|
-
/**
|
|
15
|
-
* @see _.upperFirst
|
|
16
|
-
*/
|
|
17
|
-
upperFirst(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface LoDashExplicitWrapper<TValue> {
|
|
21
|
-
/**
|
|
22
|
-
* @see _.upperFirst
|
|
23
|
-
*/
|
|
24
|
-
upperFirst(): LoDashExplicitWrapper<string>;
|
|
25
|
-
}
|
|
26
|
-
}
|