@modern-js/utils 1.3.4 → 1.3.7-alpha.prebundle.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +9 -0
- package/CHANGELOG.md +18 -0
- package/compiled/browserslist/index.d.ts +178 -0
- package/compiled/browserslist/index.js +1 -0
- package/compiled/browserslist/license +20 -0
- package/compiled/browserslist/package.json +1 -0
- package/compiled/chalk/index.d.ts +415 -0
- package/compiled/chalk/index.js +1 -0
- package/compiled/chalk/license +9 -0
- package/compiled/chalk/package.json +1 -0
- package/compiled/chokidar/anymatch/index.d.ts +19 -0
- package/compiled/chokidar/fsevents.node +0 -0
- package/compiled/chokidar/index.js +40 -0
- package/compiled/chokidar/license +21 -0
- package/compiled/chokidar/package.json +1 -0
- package/compiled/chokidar/types/index.d.ts +188 -0
- package/compiled/commander/index.js +1 -0
- package/compiled/commander/license +22 -0
- package/compiled/commander/package.json +1 -0
- package/compiled/commander/typings/index.d.ts +774 -0
- package/compiled/debug/index.d.ts +54 -0
- package/compiled/debug/index.js +1 -0
- package/compiled/debug/license +20 -0
- package/compiled/debug/ms/index.d.ts +25 -0
- package/compiled/debug/package.json +1 -0
- package/compiled/execa/index.d.ts +564 -0
- package/compiled/execa/index.js +1 -0
- package/compiled/execa/license +9 -0
- package/compiled/execa/package.json +1 -0
- package/compiled/filesize/filesize.d.ts +131 -0
- package/compiled/filesize/index.js +9 -0
- package/compiled/filesize/license +28 -0
- package/compiled/filesize/package.json +1 -0
- package/compiled/fs-extra/index.d.ts +563 -0
- package/compiled/fs-extra/index.js +1 -0
- package/compiled/fs-extra/license +15 -0
- package/compiled/fs-extra/package.json +1 -0
- package/compiled/glob/index.d.ts +91 -0
- package/compiled/glob/index.js +1 -0
- package/compiled/glob/license +21 -0
- package/compiled/glob/minimatch/index.d.ts +204 -0
- package/compiled/glob/package.json +1 -0
- package/compiled/gzip-size/index.d.ts +96 -0
- package/compiled/gzip-size/index.js +1 -0
- package/compiled/gzip-size/license +9 -0
- package/compiled/gzip-size/package.json +1 -0
- package/compiled/import-lazy/index.d.ts +26 -0
- package/compiled/import-lazy/index.js +1 -0
- package/compiled/import-lazy/license +9 -0
- package/compiled/import-lazy/package.json +1 -0
- package/compiled/js-yaml/index.d.ts +154 -0
- package/compiled/js-yaml/index.js +1 -0
- package/compiled/js-yaml/license +21 -0
- package/compiled/js-yaml/package.json +1 -0
- package/compiled/lodash/common/array.d.ts +2126 -0
- package/compiled/lodash/common/collection.d.ts +1930 -0
- package/compiled/lodash/common/common.d.ts +280 -0
- package/compiled/lodash/common/date.d.ts +23 -0
- package/compiled/lodash/common/function.d.ts +1446 -0
- package/compiled/lodash/common/lang.d.ts +1693 -0
- package/compiled/lodash/common/math.d.ts +405 -0
- package/compiled/lodash/common/number.d.ts +131 -0
- package/compiled/lodash/common/object.d.ts +2519 -0
- package/compiled/lodash/common/seq.d.ts +210 -0
- package/compiled/lodash/common/string.d.ts +788 -0
- package/compiled/lodash/common/util.d.ts +1220 -0
- package/compiled/lodash/index.d.ts +46 -0
- package/compiled/lodash/index.js +9 -0
- package/compiled/lodash/license +47 -0
- package/compiled/lodash/package.json +1 -0
- package/compiled/pkg-up/index.d.ts +48 -0
- package/compiled/pkg-up/index.js +1 -0
- package/compiled/pkg-up/license +9 -0
- package/compiled/pkg-up/package.json +1 -0
- package/compiled/recursive-readdir/index.d.ts +21 -0
- package/compiled/recursive-readdir/index.js +1 -0
- package/compiled/recursive-readdir/license +21 -0
- package/compiled/recursive-readdir/package.json +1 -0
- package/compiled/signale/index.d.ts +162 -0
- package/compiled/signale/index.js +1 -0
- package/compiled/signale/package.json +1 -0
- package/compiled/strip-ansi/index.d.ts +17 -0
- package/compiled/strip-ansi/index.js +1 -0
- package/compiled/strip-ansi/license +9 -0
- package/compiled/strip-ansi/package.json +1 -0
- package/compiled/upath/index.js +1 -0
- package/compiled/upath/license +22 -0
- package/compiled/upath/package.json +1 -0
- package/compiled/upath/upath.d.ts +241 -0
- package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +5 -5
- package/dist/FileSizeReporter.js +151 -0
- package/dist/{types/alias.d.ts → alias.d.ts} +12 -14
- package/dist/alias.js +62 -0
- package/dist/applyOptionsChain.d.ts +6 -0
- package/dist/applyOptionsChain.js +30 -0
- package/dist/clearConsole.d.ts +1 -0
- package/dist/clearConsole.js +9 -0
- package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +1 -1
- package/dist/compatRequire.js +28 -0
- package/dist/compiled/upath/index.d.ts +225 -0
- package/dist/compiled/upath/index.js +1 -0
- package/dist/compiled.d.ts +21 -0
- package/dist/compiled.js +33 -0
- package/dist/constants.d.ts +209 -0
- package/dist/constants.js +264 -0
- package/dist/{js/modern/debug.js → debug.d.ts} +1 -3
- package/dist/debug.js +11 -0
- package/dist/emptyDir.d.ts +1 -0
- package/dist/emptyDir.js +19 -0
- package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +1 -1
- package/dist/ensureAbsolutePath.js +15 -0
- package/dist/{types/findExists.d.ts → findExists.d.ts} +1 -1
- package/dist/findExists.js +21 -0
- package/dist/{types/format.d.ts → format.d.ts} +5 -5
- package/dist/format.js +113 -0
- package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +3 -3
- package/dist/generateMetaTags.js +48 -0
- package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +1 -1
- package/dist/getBrowserslist.js +7 -0
- package/dist/{types/getCacheIdentifier.d.ts → getCacheIdentifier.d.ts} +3 -3
- package/dist/getCacheIdentifier.js +24 -0
- package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +1 -1
- package/dist/getEntryOptions.js +26 -0
- package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +1 -1
- package/dist/getPackageManager.js +47 -0
- package/dist/{types/getPort.d.ts → getPort.d.ts} +1 -1
- package/dist/getPort.js +62 -0
- package/dist/{types/import.d.ts → import.d.ts} +2 -2
- package/dist/import.js +10 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +43 -0
- package/dist/{types/is → is}/index.d.ts +1 -4
- package/dist/is/index.js +82 -0
- package/dist/{types/is → is}/node-env.d.ts +1 -1
- package/dist/is/node-env.js +12 -0
- package/dist/is/platform.d.ts +2 -0
- package/dist/is/platform.js +10 -0
- package/dist/is/type.d.ts +8 -0
- package/dist/is/type.js +38 -0
- package/dist/logger.d.ts +63 -0
- package/dist/logger.js +128 -0
- package/dist/{types/monorepo.d.ts → monorepo.d.ts} +3 -3
- package/dist/monorepo.js +80 -0
- package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +1 -1
- package/dist/nodeEnv.js +49 -0
- package/dist/{types/path.d.ts → path.d.ts} +1 -1
- package/dist/path.js +14 -0
- package/dist/{types/pkgUp.d.ts → pkgUp.d.ts} +1 -1
- package/dist/pkgUp.js +8 -0
- package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +2 -2
- package/dist/prettyInstructions.js +64 -0
- package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +1 -1
- package/dist/printBuildError.js +43 -0
- package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +1 -1
- package/dist/readTsConfig.js +19 -0
- package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +1 -1
- package/dist/removeSlash.js +9 -0
- package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +3 -3
- package/dist/runtimeExports.js +53 -0
- package/dist/src/FileSizeReporter.d.ts +16 -0
- package/dist/src/FileSizeReporter.js +152 -0
- package/dist/src/alias.d.ts +21 -0
- package/dist/src/alias.js +62 -0
- package/dist/src/applyOptionsChain.d.ts +6 -0
- package/dist/src/applyOptionsChain.js +30 -0
- package/dist/src/clearConsole.d.ts +1 -0
- package/dist/src/clearConsole.js +9 -0
- package/dist/src/compatRequire.d.ts +8 -0
- package/dist/src/compatRequire.js +28 -0
- package/dist/src/compiled.d.ts +7 -0
- package/dist/src/compiled.js +19 -0
- package/dist/src/constants.d.ts +209 -0
- package/dist/src/constants.js +264 -0
- package/dist/{types → src}/debug.d.ts +1 -2
- package/dist/src/debug.js +14 -0
- package/dist/src/emptyDir.d.ts +1 -0
- package/dist/src/emptyDir.js +22 -0
- package/dist/{js/modern/ensureAbsolutePath.js → src/ensureAbsolutePath.d.ts} +1 -3
- package/dist/src/ensureAbsolutePath.js +15 -0
- package/dist/src/findExists.d.ts +6 -0
- package/dist/src/findExists.js +21 -0
- package/dist/src/format.d.ts +16 -0
- package/dist/src/format.js +115 -0
- package/dist/src/generateMetaTags.d.ts +16 -0
- package/dist/src/generateMetaTags.js +48 -0
- package/dist/src/getBrowserslist.d.ts +2 -0
- package/dist/src/getBrowserslist.js +7 -0
- package/dist/src/getCacheIdentifier.d.ts +7 -0
- package/dist/src/getCacheIdentifier.js +24 -0
- package/dist/src/getEntryOptions.d.ts +1 -0
- package/dist/src/getEntryOptions.js +26 -0
- package/dist/src/getPackageManager.d.ts +1 -0
- package/dist/src/getPackageManager.js +47 -0
- package/dist/src/getPort.d.ts +7 -0
- package/dist/src/getPort.js +62 -0
- package/dist/src/import.d.ts +5 -0
- package/dist/src/import.js +10 -0
- package/dist/{types → src}/index.d.ts +2 -3
- package/dist/src/index.js +57 -0
- package/dist/src/is/index.d.ts +34 -0
- package/dist/src/is/index.js +82 -0
- package/dist/src/is/node-env.d.ts +4 -0
- package/dist/src/is/node-env.js +12 -0
- package/dist/src/is/platform.d.ts +2 -0
- package/dist/src/is/platform.js +10 -0
- package/dist/src/is/type.d.ts +8 -0
- package/dist/src/is/type.js +38 -0
- package/dist/src/logger.d.ts +63 -0
- package/dist/src/logger.js +129 -0
- package/dist/src/monorepo.d.ts +11 -0
- package/dist/src/monorepo.js +81 -0
- package/dist/src/nodeEnv.d.ts +3 -0
- package/dist/src/nodeEnv.js +52 -0
- package/dist/src/path.d.ts +3 -0
- package/dist/src/path.js +14 -0
- package/dist/src/prettyInstructions.d.ts +6 -0
- package/dist/src/prettyInstructions.js +64 -0
- package/dist/src/printBuildError.d.ts +8 -0
- package/dist/src/printBuildError.js +43 -0
- package/dist/src/readTsConfig.d.ts +2 -0
- package/dist/src/readTsConfig.js +19 -0
- package/dist/src/removeSlash.d.ts +3 -0
- package/dist/src/removeSlash.js +9 -0
- package/dist/src/runtimeExports.d.ts +4 -0
- package/dist/src/runtimeExports.js +53 -0
- package/dist/{types → src}/wait.d.ts +1 -1
- package/dist/src/wait.js +7 -0
- package/dist/{types → src}/watch.d.ts +3 -3
- package/dist/src/watch.js +65 -0
- package/dist/wait.d.ts +2 -0
- package/dist/wait.js +7 -0
- package/dist/watch.d.ts +8 -0
- package/dist/watch.js +64 -0
- package/jest.config.js +0 -1
- package/package.json +55 -39
- package/tests/debug.test.ts +2 -2
- package/tests/is.test.ts +27 -0
- package/tests/isPlatform.test.ts +19 -0
- package/tests/isType.test.ts +70 -2
- package/tests/prettyInstructions.test.ts +1 -1
- package/tsconfig.json +3 -5
- package/dist/js/modern/FileSizeReporter.js +0 -156
- package/dist/js/modern/alias.js +0 -74
- package/dist/js/modern/applyOptionsChain.js +0 -27
- package/dist/js/modern/chalk.js +0 -2
- package/dist/js/modern/clearConsole.js +0 -5
- package/dist/js/modern/compatRequire.js +0 -26
- package/dist/js/modern/constants.js +0 -338
- package/dist/js/modern/emptyDir.js +0 -6
- package/dist/js/modern/findExists.js +0 -16
- package/dist/js/modern/format.js +0 -137
- package/dist/js/modern/generateMetaTags.js +0 -49
- package/dist/js/modern/getBrowserslist.js +0 -5
- package/dist/js/modern/getCacheIdentifier.js +0 -20
- package/dist/js/modern/getEntryOptions.js +0 -24
- package/dist/js/modern/getPackageManager.js +0 -37
- package/dist/js/modern/getPort.js +0 -52
- package/dist/js/modern/import.js +0 -11
- package/dist/js/modern/index.js +0 -34
- package/dist/js/modern/is/index.js +0 -77
- package/dist/js/modern/is/node-env.js +0 -5
- package/dist/js/modern/is/platform.js +0 -2
- package/dist/js/modern/is/type.js +0 -28
- package/dist/js/modern/logger.js +0 -152
- package/dist/js/modern/monorepo.js +0 -84
- package/dist/js/modern/nodeEnv.js +0 -31
- package/dist/js/modern/path.js +0 -5
- package/dist/js/modern/pkgUp.js +0 -2
- package/dist/js/modern/prettyInstructions.js +0 -79
- package/dist/js/modern/printBuildError.js +0 -40
- package/dist/js/modern/readTsConfig.js +0 -13
- package/dist/js/modern/removeSlash.js +0 -3
- package/dist/js/modern/runtimeExports.js +0 -52
- package/dist/js/modern/wait.js +0 -5
- package/dist/js/modern/watch.js +0 -43
- package/dist/js/node/FileSizeReporter.js +0 -175
- package/dist/js/node/alias.js +0 -97
- package/dist/js/node/applyOptionsChain.js +0 -37
- package/dist/js/node/chalk.js +0 -15
- package/dist/js/node/clearConsole.js +0 -14
- package/dist/js/node/compatRequire.js +0 -41
- package/dist/js/node/constants.js +0 -358
- package/dist/js/node/debug.js +0 -19
- package/dist/js/node/emptyDir.js +0 -18
- package/dist/js/node/ensureAbsolutePath.js +0 -20
- package/dist/js/node/findExists.js +0 -27
- package/dist/js/node/format.js +0 -141
- package/dist/js/node/generateMetaTags.js +0 -58
- package/dist/js/node/getBrowserslist.js +0 -17
- package/dist/js/node/getCacheIdentifier.js +0 -27
- package/dist/js/node/getEntryOptions.js +0 -35
- package/dist/js/node/getPackageManager.js +0 -51
- package/dist/js/node/getPort.js +0 -67
- package/dist/js/node/import.js +0 -19
- package/dist/js/node/index.js +0 -465
- package/dist/js/node/is/index.js +0 -150
- package/dist/js/node/is/node-env.js +0 -23
- package/dist/js/node/is/platform.js +0 -14
- package/dist/js/node/is/type.js +0 -49
- package/dist/js/node/logger.js +0 -162
- package/dist/js/node/monorepo.js +0 -118
- package/dist/js/node/nodeEnv.js +0 -45
- package/dist/js/node/path.js +0 -24
- package/dist/js/node/pkgUp.js +0 -15
- package/dist/js/node/prettyInstructions.js +0 -95
- package/dist/js/node/printBuildError.js +0 -52
- package/dist/js/node/readTsConfig.js +0 -28
- package/dist/js/node/removeSlash.js +0 -18
- package/dist/js/node/runtimeExports.js +0 -68
- package/dist/js/node/wait.js +0 -12
- package/dist/js/node/watch.js +0 -61
- package/dist/js/treeshaking/FileSizeReporter.js +0 -185
- package/dist/js/treeshaking/alias.js +0 -72
- package/dist/js/treeshaking/applyOptionsChain.js +0 -31
- package/dist/js/treeshaking/chalk.js +0 -2
- package/dist/js/treeshaking/clearConsole.js +0 -5
- package/dist/js/treeshaking/compatRequire.js +0 -29
- package/dist/js/treeshaking/constants.js +0 -338
- package/dist/js/treeshaking/debug.js +0 -10
- package/dist/js/treeshaking/emptyDir.js +0 -37
- package/dist/js/treeshaking/ensureAbsolutePath.js +0 -11
- package/dist/js/treeshaking/findExists.js +0 -33
- package/dist/js/treeshaking/format.js +0 -167
- package/dist/js/treeshaking/generateMetaTags.js +0 -55
- package/dist/js/treeshaking/getBrowserslist.js +0 -7
- package/dist/js/treeshaking/getCacheIdentifier.js +0 -35
- package/dist/js/treeshaking/getEntryOptions.js +0 -26
- package/dist/js/treeshaking/getPackageManager.js +0 -101
- package/dist/js/treeshaking/getPort.js +0 -103
- package/dist/js/treeshaking/import.js +0 -11
- package/dist/js/treeshaking/index.js +0 -34
- package/dist/js/treeshaking/is/index.js +0 -81
- package/dist/js/treeshaking/is/node-env.js +0 -13
- package/dist/js/treeshaking/is/platform.js +0 -6
- package/dist/js/treeshaking/is/type.js +0 -30
- package/dist/js/treeshaking/logger.js +0 -188
- package/dist/js/treeshaking/monorepo.js +0 -95
- package/dist/js/treeshaking/nodeEnv.js +0 -108
- package/dist/js/treeshaking/path.js +0 -11
- package/dist/js/treeshaking/pkgUp.js +0 -2
- package/dist/js/treeshaking/prettyInstructions.js +0 -100
- package/dist/js/treeshaking/printBuildError.js +0 -40
- package/dist/js/treeshaking/readTsConfig.js +0 -13
- package/dist/js/treeshaking/removeSlash.js +0 -9
- package/dist/js/treeshaking/runtimeExports.js +0 -61
- package/dist/js/treeshaking/wait.js +0 -8
- package/dist/js/treeshaking/watch.js +0 -112
- package/dist/types/applyOptionsChain.d.ts +0 -6
- package/dist/types/chalk.d.ts +0 -2
- package/dist/types/clearConsole.d.ts +0 -1
- package/dist/types/constants.d.ts +0 -219
- package/dist/types/emptyDir.d.ts +0 -1
- package/dist/types/is/platform.d.ts +0 -2
- package/dist/types/is/type.d.ts +0 -8
- package/dist/types/logger.d.ts +0 -63
@@ -0,0 +1,210 @@
|
|
1
|
+
import _ = require("../index");
|
2
|
+
declare module "../index" {
|
3
|
+
// chain
|
4
|
+
interface LoDashStatic {
|
5
|
+
/**
|
6
|
+
* Creates a lodash object that wraps value with explicit method chaining enabled.
|
7
|
+
*
|
8
|
+
* @param value The value to wrap.
|
9
|
+
* @return Returns the new lodash wrapper instance.
|
10
|
+
*/
|
11
|
+
chain<TrapAny extends { __lodashAnyHack: any }>(value: TrapAny): CollectionChain<any> & FunctionChain<any> & ObjectChain<any> & PrimitiveChain<any> & StringChain;
|
12
|
+
/**
|
13
|
+
* @see _.chain
|
14
|
+
*/
|
15
|
+
chain<T extends null | undefined>(value: T): PrimitiveChain<T>;
|
16
|
+
/**
|
17
|
+
* @see _.chain
|
18
|
+
*/
|
19
|
+
chain(value: string): StringChain;
|
20
|
+
/**
|
21
|
+
* @see _.chain
|
22
|
+
*/
|
23
|
+
chain(value: string | null | undefined): StringNullableChain;
|
24
|
+
/**
|
25
|
+
* @see _.chain
|
26
|
+
*/
|
27
|
+
chain<T extends (...args: any[]) => any>(value: T): FunctionChain<T>;
|
28
|
+
/**
|
29
|
+
* @see _.chain
|
30
|
+
*/
|
31
|
+
chain<T = any>(value: List<T> | null | undefined): CollectionChain<T>;
|
32
|
+
/**
|
33
|
+
* @see _.chain
|
34
|
+
*/
|
35
|
+
chain<T extends object>(value: T | null | undefined): ObjectChain<T>;
|
36
|
+
/**
|
37
|
+
* @see _.chain
|
38
|
+
*/
|
39
|
+
chain<T>(value: T): PrimitiveChain<T>;
|
40
|
+
}
|
41
|
+
interface Collection<T> {
|
42
|
+
/**
|
43
|
+
* @see _.chain
|
44
|
+
*/
|
45
|
+
chain(): CollectionChain<T>;
|
46
|
+
}
|
47
|
+
interface String {
|
48
|
+
/**
|
49
|
+
* @see _.chain
|
50
|
+
*/
|
51
|
+
chain(): StringChain;
|
52
|
+
}
|
53
|
+
interface Object<T> {
|
54
|
+
/**
|
55
|
+
* @see _.chain
|
56
|
+
*/
|
57
|
+
chain(): ObjectChain<T>;
|
58
|
+
}
|
59
|
+
interface Primitive<T> {
|
60
|
+
/**
|
61
|
+
* @see _.chain
|
62
|
+
*/
|
63
|
+
chain(): PrimitiveChain<T>;
|
64
|
+
}
|
65
|
+
interface Function<T extends (...args: any) => any> {
|
66
|
+
/**
|
67
|
+
* @see _.chain
|
68
|
+
*/
|
69
|
+
chain(): FunctionChain<T>;
|
70
|
+
}
|
71
|
+
interface LoDashExplicitWrapper<TValue> {
|
72
|
+
/**
|
73
|
+
* @see _.chain
|
74
|
+
*/
|
75
|
+
chain(): this;
|
76
|
+
}
|
77
|
+
// prototype.commit
|
78
|
+
interface LoDashImplicitWrapper<TValue> {
|
79
|
+
/**
|
80
|
+
* @see _.commit
|
81
|
+
*/
|
82
|
+
commit(): this;
|
83
|
+
}
|
84
|
+
interface LoDashExplicitWrapper<TValue> {
|
85
|
+
/**
|
86
|
+
* @see _.commit
|
87
|
+
*/
|
88
|
+
commit(): this;
|
89
|
+
}
|
90
|
+
// prototype.plant
|
91
|
+
interface LoDashImplicitWrapper<TValue> {
|
92
|
+
/**
|
93
|
+
* @see _.plant
|
94
|
+
*/
|
95
|
+
plant(value: unknown): this;
|
96
|
+
}
|
97
|
+
interface LoDashExplicitWrapper<TValue> {
|
98
|
+
/**
|
99
|
+
* @see _.plant
|
100
|
+
*/
|
101
|
+
plant(value: unknown): this;
|
102
|
+
}
|
103
|
+
// prototype.reverse
|
104
|
+
interface LoDashImplicitWrapper<TValue> {
|
105
|
+
/**
|
106
|
+
* @see _.reverse
|
107
|
+
*/
|
108
|
+
reverse(): this;
|
109
|
+
}
|
110
|
+
interface LoDashExplicitWrapper<TValue> {
|
111
|
+
/**
|
112
|
+
* @see _.reverse
|
113
|
+
*/
|
114
|
+
reverse(): this;
|
115
|
+
}
|
116
|
+
// prototype.toJSON
|
117
|
+
interface LoDashImplicitWrapper<TValue> {
|
118
|
+
/**
|
119
|
+
* @see _.toJSON
|
120
|
+
*/
|
121
|
+
toJSON(): TValue;
|
122
|
+
}
|
123
|
+
interface LoDashExplicitWrapper<TValue> {
|
124
|
+
/**
|
125
|
+
* @see _.toJSON
|
126
|
+
*/
|
127
|
+
toJSON(): TValue;
|
128
|
+
}
|
129
|
+
// prototype.toString
|
130
|
+
interface LoDashWrapper<TValue> {
|
131
|
+
/**
|
132
|
+
* @see _.toString
|
133
|
+
*/
|
134
|
+
toString(): string;
|
135
|
+
}
|
136
|
+
// prototype.value
|
137
|
+
interface LoDashImplicitWrapper<TValue> {
|
138
|
+
/**
|
139
|
+
* @see _.value
|
140
|
+
*/
|
141
|
+
value(): TValue;
|
142
|
+
}
|
143
|
+
interface LoDashExplicitWrapper<TValue> {
|
144
|
+
/**
|
145
|
+
* @see _.value
|
146
|
+
*/
|
147
|
+
value(): TValue;
|
148
|
+
}
|
149
|
+
// prototype.valueOf
|
150
|
+
interface LoDashImplicitWrapper<TValue> {
|
151
|
+
/**
|
152
|
+
* @see _.valueOf
|
153
|
+
*/
|
154
|
+
valueOf(): TValue;
|
155
|
+
}
|
156
|
+
interface LoDashExplicitWrapper<TValue> {
|
157
|
+
/**
|
158
|
+
* @see _.valueOf
|
159
|
+
*/
|
160
|
+
valueOf(): TValue;
|
161
|
+
}
|
162
|
+
// tap
|
163
|
+
interface LoDashStatic {
|
164
|
+
/**
|
165
|
+
* This method invokes interceptor and returns value. The interceptor is invoked with one
|
166
|
+
* argument; (value). The purpose of this method is to "tap into" a method chain in order to perform operations
|
167
|
+
* on intermediate results within the chain.
|
168
|
+
*
|
169
|
+
* @param value The value to provide to interceptor.
|
170
|
+
* @param interceptor The function to invoke.
|
171
|
+
* @return Returns value.
|
172
|
+
*/
|
173
|
+
tap<T>(value: T, interceptor: (value: T) => void): T;
|
174
|
+
}
|
175
|
+
interface LoDashImplicitWrapper<TValue> {
|
176
|
+
/**
|
177
|
+
* @see _.tap
|
178
|
+
*/
|
179
|
+
tap(interceptor: (value: TValue) => void): this;
|
180
|
+
}
|
181
|
+
interface LoDashExplicitWrapper<TValue> {
|
182
|
+
/**
|
183
|
+
* @see _.tap
|
184
|
+
*/
|
185
|
+
tap(interceptor: (value: TValue) => void): this;
|
186
|
+
}
|
187
|
+
// thru
|
188
|
+
interface LoDashStatic {
|
189
|
+
/**
|
190
|
+
* This method is like _.tap except that it returns the result of interceptor.
|
191
|
+
*
|
192
|
+
* @param value The value to provide to interceptor.
|
193
|
+
* @param interceptor The function to invoke.
|
194
|
+
* @return Returns the result of interceptor.
|
195
|
+
*/
|
196
|
+
thru<T, TResult>(value: T, interceptor: (value: T) => TResult): TResult;
|
197
|
+
}
|
198
|
+
interface LoDashImplicitWrapper<TValue> {
|
199
|
+
/**
|
200
|
+
* @see _.thru
|
201
|
+
*/
|
202
|
+
thru<TResult>(interceptor: (value: TValue) => TResult): ImpChain<TResult>;
|
203
|
+
}
|
204
|
+
interface LoDashExplicitWrapper<TValue> {
|
205
|
+
/**
|
206
|
+
* @see _.thru
|
207
|
+
*/
|
208
|
+
thru<TResult>(interceptor: (value: TValue) => TResult): ExpChain<TResult>;
|
209
|
+
}
|
210
|
+
}
|