@modern-js/utils 2.12.1-alpha.3 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (492) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/{cjs/alias.js → alias.js} +15 -4
  3. package/dist/{cjs/analyzeProject.js → analyzeProject.js} +25 -5
  4. package/dist/{cjs/babel.js → babel.js} +16 -9
  5. package/dist/{cjs/compatRequire.js → compatRequire.js} +17 -4
  6. package/dist/compiled.d.ts +43 -0
  7. package/dist/{types/debug.d.ts → debug.d.ts} +1 -1
  8. package/dist/{cjs/emptyDir.js → emptyDir.js} +24 -4
  9. package/dist/{cjs/getEntryOptions.js → getEntryOptions.js} +15 -1
  10. package/dist/{cjs/getPackageManager.js → getPackageManager.js} +41 -19
  11. package/dist/{cjs/getPort.js → getPort.js} +24 -4
  12. package/dist/{cjs/getServerConfig.js → getServerConfig.js} +22 -2
  13. package/dist/{types/logger.d.ts → logger.d.ts} +1 -1
  14. package/dist/{cjs/logger.js → logger.js} +16 -5
  15. package/dist/{cjs/monorepo.js → monorepo.js} +15 -4
  16. package/dist/nodeEnv.js +81 -0
  17. package/dist/{cjs/path.js → path.js} +1 -1
  18. package/dist/{cjs/pathSerializer.js → pathSerializer.js} +1 -1
  19. package/dist/{cjs/react.js → react.js} +15 -4
  20. package/dist/{cjs/runtimeExports.js → runtimeExports.js} +1 -1
  21. package/dist/{cjs/universal → universal}/nestedRoutes.js +19 -2
  22. package/dist/{cjs/version.js → version.js} +40 -7
  23. package/dist/{cjs/watch.js → watch.js} +29 -9
  24. package/package.json +23 -55
  25. package/dist/cjs/nodeEnv.js +0 -55
  26. package/dist/compiled/address/index.js +0 -1
  27. package/dist/compiled/address/lib/address.d.ts +0 -28
  28. package/dist/compiled/address/package.json +0 -1
  29. package/dist/compiled/ajv/codegen.js +0 -1
  30. package/dist/compiled/ajv/index.js +0 -9
  31. package/dist/compiled/ajv/license +0 -22
  32. package/dist/compiled/ajv/package.json +0 -1
  33. package/dist/compiled/ajv/types/ajv.d.ts +0 -16
  34. package/dist/compiled/ajv/types/compile/codegen/code.d.ts +0 -40
  35. package/dist/compiled/ajv/types/compile/codegen/index.d.ts +0 -79
  36. package/dist/compiled/ajv/types/compile/codegen/scope.d.ts +0 -79
  37. package/dist/compiled/ajv/types/compile/errors.d.ts +0 -13
  38. package/dist/compiled/ajv/types/compile/index.d.ts +0 -80
  39. package/dist/compiled/ajv/types/compile/ref_error.d.ts +0 -6
  40. package/dist/compiled/ajv/types/compile/resolve.d.ts +0 -12
  41. package/dist/compiled/ajv/types/compile/rules.d.ts +0 -28
  42. package/dist/compiled/ajv/types/compile/util.d.ts +0 -40
  43. package/dist/compiled/ajv/types/compile/validate/index.d.ts +0 -42
  44. package/dist/compiled/ajv/types/compile/validate/subschema.d.ts +0 -47
  45. package/dist/compiled/ajv/types/core.d.ts +0 -173
  46. package/dist/compiled/ajv/types/runtime/validation_error.d.ts +0 -7
  47. package/dist/compiled/ajv/types/types/index.d.ts +0 -183
  48. package/dist/compiled/ajv/types/types/json-schema.d.ts +0 -124
  49. package/dist/compiled/ajv/types/types/jtd-schema.d.ts +0 -169
  50. package/dist/compiled/ajv/types/vocabularies/errors.d.ts +0 -1
  51. package/dist/compiled/ajv/uri-js.d.ts +0 -59
  52. package/dist/compiled/ajv-keywords/index.d.ts +0 -1
  53. package/dist/compiled/ajv-keywords/index.js +0 -1
  54. package/dist/compiled/ajv-keywords/license +0 -21
  55. package/dist/compiled/ajv-keywords/package.json +0 -1
  56. package/dist/compiled/better-ajv-errors/index.d.ts +0 -1
  57. package/dist/compiled/better-ajv-errors/index.js +0 -1
  58. package/dist/compiled/better-ajv-errors/license +0 -13
  59. package/dist/compiled/better-ajv-errors/package.json +0 -1
  60. package/dist/compiled/browserslist/index.d.ts +0 -178
  61. package/dist/compiled/browserslist/index.js +0 -1
  62. package/dist/compiled/browserslist/license +0 -20
  63. package/dist/compiled/browserslist/package.json +0 -1
  64. package/dist/compiled/chalk/index.d.ts +0 -415
  65. package/dist/compiled/chalk/index.js +0 -1
  66. package/dist/compiled/chalk/license +0 -9
  67. package/dist/compiled/chalk/package.json +0 -1
  68. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  69. package/dist/compiled/chokidar/fsevents.node +0 -0
  70. package/dist/compiled/chokidar/index.js +0 -40
  71. package/dist/compiled/chokidar/license +0 -21
  72. package/dist/compiled/chokidar/package.json +0 -1
  73. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  74. package/dist/compiled/commander/index.js +0 -1
  75. package/dist/compiled/commander/license +0 -22
  76. package/dist/compiled/commander/package.json +0 -1
  77. package/dist/compiled/commander/typings/index.d.ts +0 -890
  78. package/dist/compiled/debug/index.d.ts +0 -54
  79. package/dist/compiled/debug/index.js +0 -1
  80. package/dist/compiled/debug/license +0 -20
  81. package/dist/compiled/debug/ms/index.d.ts +0 -25
  82. package/dist/compiled/debug/package.json +0 -1
  83. package/dist/compiled/dotenv/index.js +0 -1
  84. package/dist/compiled/dotenv/license +0 -23
  85. package/dist/compiled/dotenv/package.json +0 -1
  86. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  87. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  88. package/dist/compiled/dotenv-expand/index.js +0 -1
  89. package/dist/compiled/dotenv-expand/license +0 -24
  90. package/dist/compiled/dotenv-expand/package.json +0 -1
  91. package/dist/compiled/execa/index.d.ts +0 -564
  92. package/dist/compiled/execa/index.js +0 -1
  93. package/dist/compiled/execa/license +0 -9
  94. package/dist/compiled/execa/package.json +0 -1
  95. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  96. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  97. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  98. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  99. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  100. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  101. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  102. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  103. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  104. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  105. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  106. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  107. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  108. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  109. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  110. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  111. package/dist/compiled/fast-glob/index.js +0 -37
  112. package/dist/compiled/fast-glob/license +0 -21
  113. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  114. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  115. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  116. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  117. package/dist/compiled/fast-glob/package.json +0 -1
  118. package/dist/compiled/filesize/filesize.d.ts +0 -131
  119. package/dist/compiled/filesize/index.js +0 -9
  120. package/dist/compiled/filesize/license +0 -28
  121. package/dist/compiled/filesize/package.json +0 -1
  122. package/dist/compiled/fs-extra/index.d.ts +0 -563
  123. package/dist/compiled/fs-extra/index.js +0 -1
  124. package/dist/compiled/fs-extra/license +0 -15
  125. package/dist/compiled/fs-extra/package.json +0 -1
  126. package/dist/compiled/glob/index.d.ts +0 -91
  127. package/dist/compiled/glob/index.js +0 -1
  128. package/dist/compiled/glob/license +0 -21
  129. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  130. package/dist/compiled/glob/package.json +0 -1
  131. package/dist/compiled/globby/index.d.ts +0 -186
  132. package/dist/compiled/globby/index.js +0 -1
  133. package/dist/compiled/globby/license +0 -9
  134. package/dist/compiled/globby/package.json +0 -1
  135. package/dist/compiled/gzip-size/index.d.ts +0 -96
  136. package/dist/compiled/gzip-size/index.js +0 -1
  137. package/dist/compiled/gzip-size/license +0 -9
  138. package/dist/compiled/gzip-size/package.json +0 -1
  139. package/dist/compiled/import-lazy/index.d.ts +0 -26
  140. package/dist/compiled/import-lazy/index.js +0 -1
  141. package/dist/compiled/import-lazy/license +0 -9
  142. package/dist/compiled/import-lazy/package.json +0 -1
  143. package/dist/compiled/inquirer/index.d.ts +0 -997
  144. package/dist/compiled/inquirer/index.js +0 -9
  145. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  146. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  147. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  148. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  149. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  150. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  151. package/dist/compiled/inquirer/license +0 -22
  152. package/dist/compiled/inquirer/package.json +0 -1
  153. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  154. package/dist/compiled/js-yaml/index.d.ts +0 -154
  155. package/dist/compiled/js-yaml/index.js +0 -1
  156. package/dist/compiled/js-yaml/license +0 -21
  157. package/dist/compiled/js-yaml/package.json +0 -1
  158. package/dist/compiled/json5/index.js +0 -1
  159. package/dist/compiled/json5/lib/index.d.ts +0 -4
  160. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  161. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  162. package/dist/compiled/json5/package.json +0 -1
  163. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  164. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  165. package/dist/compiled/lodash/common/common.d.ts +0 -280
  166. package/dist/compiled/lodash/common/date.d.ts +0 -23
  167. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  168. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  169. package/dist/compiled/lodash/common/math.d.ts +0 -405
  170. package/dist/compiled/lodash/common/number.d.ts +0 -131
  171. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  172. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  173. package/dist/compiled/lodash/common/string.d.ts +0 -788
  174. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  175. package/dist/compiled/lodash/index.d.ts +0 -46
  176. package/dist/compiled/lodash/index.js +0 -5
  177. package/dist/compiled/lodash/license +0 -47
  178. package/dist/compiled/lodash/package.json +0 -1
  179. package/dist/compiled/mime-types/index.d.ts +0 -14
  180. package/dist/compiled/mime-types/index.js +0 -14
  181. package/dist/compiled/mime-types/license +0 -23
  182. package/dist/compiled/mime-types/package.json +0 -1
  183. package/dist/compiled/minimist/index.d.ts +0 -95
  184. package/dist/compiled/minimist/index.js +0 -1
  185. package/dist/compiled/minimist/license +0 -18
  186. package/dist/compiled/minimist/package.json +0 -1
  187. package/dist/compiled/nanoid/index.d.ts +0 -91
  188. package/dist/compiled/nanoid/index.js +0 -1
  189. package/dist/compiled/nanoid/license +0 -20
  190. package/dist/compiled/nanoid/package.json +0 -1
  191. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  192. package/dist/compiled/ora/index.d.ts +0 -277
  193. package/dist/compiled/ora/index.js +0 -3
  194. package/dist/compiled/ora/license +0 -9
  195. package/dist/compiled/ora/package.json +0 -1
  196. package/dist/compiled/pkg-up/index.d.ts +0 -48
  197. package/dist/compiled/pkg-up/index.js +0 -1
  198. package/dist/compiled/pkg-up/license +0 -9
  199. package/dist/compiled/pkg-up/package.json +0 -1
  200. package/dist/compiled/recursive-readdir/index.d.ts +0 -21
  201. package/dist/compiled/recursive-readdir/index.js +0 -1
  202. package/dist/compiled/recursive-readdir/license +0 -21
  203. package/dist/compiled/recursive-readdir/package.json +0 -1
  204. package/dist/compiled/schema-utils3/index.d.ts +0 -1
  205. package/dist/compiled/schema-utils3/index.js +0 -3
  206. package/dist/compiled/schema-utils3/license +0 -20
  207. package/dist/compiled/schema-utils3/package.json +0 -1
  208. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  209. package/dist/compiled/semver/classes/range.d.ts +0 -21
  210. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  211. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  212. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  213. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  214. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  215. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  216. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  217. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  218. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  219. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  220. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  221. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  222. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  223. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  224. package/dist/compiled/semver/functions/major.d.ts +0 -9
  225. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  226. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  227. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  228. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  229. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  230. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  231. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  232. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  233. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  234. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  235. package/dist/compiled/semver/index.d.ts +0 -133
  236. package/dist/compiled/semver/index.js +0 -1
  237. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  238. package/dist/compiled/semver/license +0 -15
  239. package/dist/compiled/semver/package.json +0 -1
  240. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  241. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  242. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  243. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  244. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  245. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  246. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  247. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  248. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  249. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  250. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  251. package/dist/compiled/signale/index.d.ts +0 -162
  252. package/dist/compiled/signale/index.js +0 -1
  253. package/dist/compiled/signale/package.json +0 -1
  254. package/dist/compiled/slash/index.d.ts +0 -25
  255. package/dist/compiled/slash/index.js +0 -1
  256. package/dist/compiled/slash/license +0 -9
  257. package/dist/compiled/slash/package.json +0 -1
  258. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  259. package/dist/compiled/strip-ansi/index.js +0 -1
  260. package/dist/compiled/strip-ansi/license +0 -9
  261. package/dist/compiled/strip-ansi/package.json +0 -1
  262. package/dist/compiled/tsconfig-paths/index.js +0 -1
  263. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  264. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  265. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  266. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  267. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  268. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  269. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  270. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  271. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  272. package/dist/compiled/tsconfig-paths/license +0 -21
  273. package/dist/compiled/tsconfig-paths/package.json +0 -1
  274. package/dist/compiled/upath/index.js +0 -1
  275. package/dist/compiled/upath/license +0 -22
  276. package/dist/compiled/upath/package.json +0 -1
  277. package/dist/compiled/upath/upath.d.ts +0 -241
  278. package/dist/compiled/url-join/index.d.ts +0 -17
  279. package/dist/compiled/url-join/index.js +0 -1
  280. package/dist/compiled/url-join/license +0 -21
  281. package/dist/compiled/url-join/package.json +0 -1
  282. package/dist/compiled/webpack-chain/index.js +0 -1
  283. package/dist/compiled/webpack-chain/license +0 -373
  284. package/dist/compiled/webpack-chain/package.json +0 -1
  285. package/dist/compiled/webpack-chain/types/index.d.ts +0 -388
  286. package/dist/compiled/webpack-dev-middleware/index.js +0 -7
  287. package/dist/compiled/webpack-dev-middleware/license +0 -20
  288. package/dist/compiled/webpack-dev-middleware/package.json +0 -1
  289. package/dist/compiled/webpack-dev-middleware/types/index.d.ts +0 -262
  290. package/dist/esm/FileSizeReporter.js +0 -180
  291. package/dist/esm/alias.js +0 -83
  292. package/dist/esm/analyzeProject.js +0 -168
  293. package/dist/esm/applyOptionsChain.js +0 -26
  294. package/dist/esm/babel.js +0 -169
  295. package/dist/esm/chainId.js +0 -92
  296. package/dist/esm/clearConsole.js +0 -6
  297. package/dist/esm/commands.js +0 -17
  298. package/dist/esm/compatRequire.js +0 -68
  299. package/dist/esm/compiled.js +0 -34
  300. package/dist/esm/constants.js +0 -317
  301. package/dist/esm/debug.js +0 -5
  302. package/dist/esm/emptyDir.js +0 -158
  303. package/dist/esm/ensureAbsolutePath.js +0 -5
  304. package/dist/esm/ensureArray.js +0 -9
  305. package/dist/esm/findExists.js +0 -27
  306. package/dist/esm/generateMetaTags.js +0 -40
  307. package/dist/esm/getBrowserslist.js +0 -12
  308. package/dist/esm/getCoreJsVersion.js +0 -57
  309. package/dist/esm/getEntryOptions.js +0 -45
  310. package/dist/esm/getPackageManager.js +0 -187
  311. package/dist/esm/getPort.js +0 -215
  312. package/dist/esm/getServerConfig.js +0 -145
  313. package/dist/esm/getTargetDir.js +0 -6
  314. package/dist/esm/import.js +0 -8
  315. package/dist/esm/index.js +0 -44
  316. package/dist/esm/is/index.js +0 -85
  317. package/dist/esm/is/nodeEnv.js +0 -16
  318. package/dist/esm/is/platform.js +0 -7
  319. package/dist/esm/is/type.js +0 -25
  320. package/dist/esm/logger.js +0 -207
  321. package/dist/esm/monorepo.js +0 -109
  322. package/dist/esm/nodeEnv.js +0 -258
  323. package/dist/esm/path.js +0 -85
  324. package/dist/esm/pathSerializer.js +0 -85
  325. package/dist/esm/plugin.js +0 -45
  326. package/dist/esm/prettyInstructions.js +0 -96
  327. package/dist/esm/printBuildError.js +0 -24
  328. package/dist/esm/react.js +0 -43
  329. package/dist/esm/readTsConfig.js +0 -10
  330. package/dist/esm/removeSlash.js +0 -10
  331. package/dist/esm/resolve.js +0 -42
  332. package/dist/esm/routes.js +0 -19
  333. package/dist/esm/runtimeExports.js +0 -65
  334. package/dist/esm/ssr.js +0 -3
  335. package/dist/esm/storage.js +0 -36
  336. package/dist/esm/testUtils.js +0 -13
  337. package/dist/esm/types.js +0 -1
  338. package/dist/esm/universal/constants.js +0 -3
  339. package/dist/esm/universal/formatWebpack.js +0 -108
  340. package/dist/esm/universal/nestedRoutes.js +0 -174
  341. package/dist/esm/universal/remixRouter.js +0 -1
  342. package/dist/esm/universal/serialize.js +0 -7
  343. package/dist/esm/version.js +0 -193
  344. package/dist/esm/wait.js +0 -7
  345. package/dist/esm/watch.js +0 -230
  346. package/dist/esm-node/FileSizeReporter.js +0 -133
  347. package/dist/esm-node/alias.js +0 -61
  348. package/dist/esm-node/analyzeProject.js +0 -17
  349. package/dist/esm-node/applyOptionsChain.js +0 -35
  350. package/dist/esm-node/babel.js +0 -105
  351. package/dist/esm-node/chainId.js +0 -173
  352. package/dist/esm-node/clearConsole.js +0 -8
  353. package/dist/esm-node/commands.js +0 -22
  354. package/dist/esm-node/compatRequire.js +0 -42
  355. package/dist/esm-node/compiled.js +0 -77
  356. package/dist/esm-node/constants.js +0 -264
  357. package/dist/esm-node/debug.js +0 -5
  358. package/dist/esm-node/emptyDir.js +0 -9
  359. package/dist/esm-node/ensureAbsolutePath.js +0 -5
  360. package/dist/esm-node/ensureArray.js +0 -9
  361. package/dist/esm-node/findExists.js +0 -12
  362. package/dist/esm-node/generateMetaTags.js +0 -38
  363. package/dist/esm-node/getBrowserslist.js +0 -7
  364. package/dist/esm-node/getCoreJsVersion.js +0 -13
  365. package/dist/esm-node/getEntryOptions.js +0 -17
  366. package/dist/esm-node/getPackageManager.js +0 -32
  367. package/dist/esm-node/getPort.js +0 -59
  368. package/dist/esm-node/getServerConfig.js +0 -14
  369. package/dist/esm-node/getTargetDir.js +0 -8
  370. package/dist/esm-node/import.js +0 -9
  371. package/dist/esm-node/index.js +0 -44
  372. package/dist/esm-node/is/index.js +0 -71
  373. package/dist/esm-node/is/nodeEnv.js +0 -12
  374. package/dist/esm-node/is/platform.js +0 -6
  375. package/dist/esm-node/is/type.js +0 -34
  376. package/dist/esm-node/logger.js +0 -100
  377. package/dist/esm-node/monorepo.js +0 -87
  378. package/dist/esm-node/nodeEnv.js +0 -30
  379. package/dist/esm-node/path.js +0 -50
  380. package/dist/esm-node/pathSerializer.js +0 -46
  381. package/dist/esm-node/plugin.js +0 -23
  382. package/dist/esm-node/prettyInstructions.js +0 -77
  383. package/dist/esm-node/printBuildError.js +0 -34
  384. package/dist/esm-node/react.js +0 -20
  385. package/dist/esm-node/readTsConfig.js +0 -13
  386. package/dist/esm-node/removeSlash.js +0 -8
  387. package/dist/esm-node/resolve.js +0 -38
  388. package/dist/esm-node/routes.js +0 -24
  389. package/dist/esm-node/runtimeExports.js +0 -40
  390. package/dist/esm-node/ssr.js +0 -6
  391. package/dist/esm-node/storage.js +0 -42
  392. package/dist/esm-node/testUtils.js +0 -15
  393. package/dist/esm-node/types.js +0 -0
  394. package/dist/esm-node/universal/constants.js +0 -6
  395. package/dist/esm-node/universal/formatWebpack.js +0 -77
  396. package/dist/esm-node/universal/nestedRoutes.js +0 -93
  397. package/dist/esm-node/universal/remixRouter.js +0 -1
  398. package/dist/esm-node/universal/serialize.js +0 -7
  399. package/dist/esm-node/version.js +0 -25
  400. package/dist/esm-node/wait.js +0 -6
  401. package/dist/esm-node/watch.js +0 -36
  402. package/dist/types/compiled.d.ts +0 -43
  403. /package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +0 -0
  404. /package/dist/{cjs/FileSizeReporter.js → FileSizeReporter.js} +0 -0
  405. /package/dist/{types/alias.d.ts → alias.d.ts} +0 -0
  406. /package/dist/{types/analyzeProject.d.ts → analyzeProject.d.ts} +0 -0
  407. /package/dist/{types/applyOptionsChain.d.ts → applyOptionsChain.d.ts} +0 -0
  408. /package/dist/{cjs/applyOptionsChain.js → applyOptionsChain.js} +0 -0
  409. /package/dist/{types/babel.d.ts → babel.d.ts} +0 -0
  410. /package/dist/{types/chainId.d.ts → chainId.d.ts} +0 -0
  411. /package/dist/{cjs/chainId.js → chainId.js} +0 -0
  412. /package/dist/{types/clearConsole.d.ts → clearConsole.d.ts} +0 -0
  413. /package/dist/{cjs/clearConsole.js → clearConsole.js} +0 -0
  414. /package/dist/{types/commands.d.ts → commands.d.ts} +0 -0
  415. /package/dist/{cjs/commands.js → commands.js} +0 -0
  416. /package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +0 -0
  417. /package/dist/{cjs/compiled.js → compiled.js} +0 -0
  418. /package/dist/{types/constants.d.ts → constants.d.ts} +0 -0
  419. /package/dist/{cjs/constants.js → constants.js} +0 -0
  420. /package/dist/{cjs/debug.js → debug.js} +0 -0
  421. /package/dist/{types/emptyDir.d.ts → emptyDir.d.ts} +0 -0
  422. /package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +0 -0
  423. /package/dist/{cjs/ensureAbsolutePath.js → ensureAbsolutePath.js} +0 -0
  424. /package/dist/{types/ensureArray.d.ts → ensureArray.d.ts} +0 -0
  425. /package/dist/{cjs/ensureArray.js → ensureArray.js} +0 -0
  426. /package/dist/{types/findExists.d.ts → findExists.d.ts} +0 -0
  427. /package/dist/{cjs/findExists.js → findExists.js} +0 -0
  428. /package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +0 -0
  429. /package/dist/{cjs/generateMetaTags.js → generateMetaTags.js} +0 -0
  430. /package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +0 -0
  431. /package/dist/{cjs/getBrowserslist.js → getBrowserslist.js} +0 -0
  432. /package/dist/{types/getCoreJsVersion.d.ts → getCoreJsVersion.d.ts} +0 -0
  433. /package/dist/{cjs/getCoreJsVersion.js → getCoreJsVersion.js} +0 -0
  434. /package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +0 -0
  435. /package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +0 -0
  436. /package/dist/{types/getPort.d.ts → getPort.d.ts} +0 -0
  437. /package/dist/{types/getServerConfig.d.ts → getServerConfig.d.ts} +0 -0
  438. /package/dist/{types/getTargetDir.d.ts → getTargetDir.d.ts} +0 -0
  439. /package/dist/{cjs/getTargetDir.js → getTargetDir.js} +0 -0
  440. /package/dist/{types/import.d.ts → import.d.ts} +0 -0
  441. /package/dist/{cjs/import.js → import.js} +0 -0
  442. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
  443. /package/dist/{cjs/index.js → index.js} +0 -0
  444. /package/dist/{types/is → is}/index.d.ts +0 -0
  445. /package/dist/{cjs/is → is}/index.js +0 -0
  446. /package/dist/{types/is → is}/nodeEnv.d.ts +0 -0
  447. /package/dist/{cjs/is → is}/nodeEnv.js +0 -0
  448. /package/dist/{types/is → is}/platform.d.ts +0 -0
  449. /package/dist/{cjs/is → is}/platform.js +0 -0
  450. /package/dist/{types/is → is}/type.d.ts +0 -0
  451. /package/dist/{cjs/is → is}/type.js +0 -0
  452. /package/dist/{types/monorepo.d.ts → monorepo.d.ts} +0 -0
  453. /package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +0 -0
  454. /package/dist/{types/path.d.ts → path.d.ts} +0 -0
  455. /package/dist/{types/pathSerializer.d.ts → pathSerializer.d.ts} +0 -0
  456. /package/dist/{types/plugin.d.ts → plugin.d.ts} +0 -0
  457. /package/dist/{cjs/plugin.js → plugin.js} +0 -0
  458. /package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +0 -0
  459. /package/dist/{cjs/prettyInstructions.js → prettyInstructions.js} +0 -0
  460. /package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +0 -0
  461. /package/dist/{cjs/printBuildError.js → printBuildError.js} +0 -0
  462. /package/dist/{types/react.d.ts → react.d.ts} +0 -0
  463. /package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +0 -0
  464. /package/dist/{cjs/readTsConfig.js → readTsConfig.js} +0 -0
  465. /package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +0 -0
  466. /package/dist/{cjs/removeSlash.js → removeSlash.js} +0 -0
  467. /package/dist/{types/resolve.d.ts → resolve.d.ts} +0 -0
  468. /package/dist/{cjs/resolve.js → resolve.js} +0 -0
  469. /package/dist/{types/routes.d.ts → routes.d.ts} +0 -0
  470. /package/dist/{cjs/routes.js → routes.js} +0 -0
  471. /package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +0 -0
  472. /package/dist/{types/ssr.d.ts → ssr.d.ts} +0 -0
  473. /package/dist/{cjs/ssr.js → ssr.js} +0 -0
  474. /package/dist/{types/storage.d.ts → storage.d.ts} +0 -0
  475. /package/dist/{cjs/storage.js → storage.js} +0 -0
  476. /package/dist/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
  477. /package/dist/{cjs/testUtils.js → testUtils.js} +0 -0
  478. /package/dist/{types/types.d.ts → types.d.ts} +0 -0
  479. /package/dist/{cjs/types.js → types.js} +0 -0
  480. /package/dist/{types/universal → universal}/constants.d.ts +0 -0
  481. /package/dist/{cjs/universal → universal}/constants.js +0 -0
  482. /package/dist/{types/universal → universal}/formatWebpack.d.ts +0 -0
  483. /package/dist/{cjs/universal → universal}/formatWebpack.js +0 -0
  484. /package/dist/{types/universal → universal}/nestedRoutes.d.ts +0 -0
  485. /package/dist/{types/universal → universal}/remixRouter.d.ts +0 -0
  486. /package/dist/{cjs/universal → universal}/remixRouter.js +0 -0
  487. /package/dist/{types/universal → universal}/serialize.d.ts +0 -0
  488. /package/dist/{cjs/universal → universal}/serialize.js +0 -0
  489. /package/dist/{types/version.d.ts → version.d.ts} +0 -0
  490. /package/dist/{types/wait.d.ts → wait.d.ts} +0 -0
  491. /package/dist/{cjs/wait.js → wait.js} +0 -0
  492. /package/dist/{types/watch.d.ts → watch.d.ts} +0 -0
@@ -1,1220 +0,0 @@
1
- import _ = require("../index");
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Attempts to invoke func, returning either the result or the caught error object. Any additional arguments
6
- * are provided to func when it’s invoked.
7
- *
8
- * @param func The function to attempt.
9
- * @return Returns the func result or error object.
10
- */
11
- attempt<TResult>(func: (...args: any[]) => TResult, ...args: any[]): TResult | Error;
12
- }
13
- interface LoDashImplicitWrapper<TValue> {
14
- /**
15
- * @see _.attempt
16
- */
17
- attempt<TResult>(...args: any[]): TResult | Error;
18
- }
19
- interface LoDashExplicitWrapper<TValue> {
20
- /**
21
- * @see _.attempt
22
- */
23
- attempt<TResult>(...args: any[]): ExpChain<TResult | Error>;
24
- }
25
-
26
- interface LoDashStatic {
27
- /**
28
- * Binds methods of an object to the object itself, overwriting the existing method. Method names may be
29
- * specified as individual arguments or as arrays of method names. If no method names are provided all
30
- * enumerable function properties, own and inherited, of object are bound.
31
- *
32
- * Note: This method does not set the "length" property of bound functions.
33
- *
34
- * @param object The object to bind and assign the bound methods to.
35
- * @param methodNames The object method names to bind, specified as individual method names or arrays of
36
- * method names.
37
- * @return Returns object.
38
- */
39
- bindAll<T>(object: T, ...methodNames: Array<Many<string>>): T;
40
- }
41
- interface LoDashImplicitWrapper<TValue> {
42
- /**
43
- * @see _.bindAll
44
- */
45
- bindAll(...methodNames: Array<Many<string>>): this;
46
- }
47
- interface LoDashExplicitWrapper<TValue> {
48
- /**
49
- * @see _.bindAll
50
- */
51
- bindAll(...methodNames: Array<Many<string>>): this;
52
- }
53
-
54
- interface LoDashStatic {
55
- /**
56
- * Creates a function that iterates over `pairs` and invokes the corresponding
57
- * function of the first predicate to return truthy. The predicate-function
58
- * pairs are invoked with the `this` binding and arguments of the created
59
- * function.
60
- *
61
- * @since 4.0.0
62
- * @category Util
63
- * @param pairs The predicate-function pairs.
64
- * @returns Returns the new composite function.
65
- * @example
66
- *
67
- * var func = _.cond([
68
- * [_.matches({ 'a': 1 }), _.constant('matches A')],
69
- * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
70
- * [_.stubTrue, _.constant('no match')]
71
- * ]);
72
- *
73
- * func({ 'a': 1, 'b': 2 });
74
- * // => 'matches A'
75
- *
76
- * func({ 'a': 0, 'b': 1 });
77
- * // => 'matches B'
78
- *
79
- * func({ 'a': '1', 'b': '2' });
80
- * // => 'no match'
81
- */
82
- cond<R>(pairs: Array<CondPairNullary<R>>): () => R;
83
- cond<T, R>(pairs: Array<CondPairUnary<T, R>>): (Target: T) => R;
84
- }
85
-
86
- type ConformsPredicateObject<T> = {
87
- [P in keyof T]: T[P] extends (arg: infer A) => any ? A : any
88
- };
89
- interface LoDashStatic {
90
- /**
91
- * Creates a function that invokes the predicate properties of `source` with the corresponding
92
- * property values of a given object, returning true if all predicates return truthy, else false.
93
- */
94
- conforms<T>(source: ConformsPredicateObject<T>): (value: T) => boolean;
95
- }
96
- interface LoDashImplicitWrapper<TValue> {
97
- /**
98
- * @see _.conforms
99
- */
100
- conforms(): Function<(value: ConformsPredicateObject<TValue>) => boolean>;
101
- }
102
- interface LoDashExplicitWrapper<TValue> {
103
- /**
104
- * @see _.conforms
105
- */
106
- conforms(): FunctionChain<(value: ConformsPredicateObject<TValue>) => boolean>;
107
- }
108
-
109
- interface LoDashStatic {
110
- /**
111
- * Creates a function that returns value.
112
- *
113
- * @param value The value to return from the new function.
114
- * @return Returns the new function.
115
- */
116
- constant<T>(value: T): () => T;
117
- }
118
- interface LoDashImplicitWrapper<TValue> {
119
- /**
120
- * @see _.constant
121
- */
122
- constant(): Function<() => TValue>;
123
- }
124
- interface LoDashExplicitWrapper<TValue> {
125
- /**
126
- * @see _.constant
127
- */
128
- constant(): FunctionChain<() => TValue>;
129
- }
130
-
131
- interface LoDashStatic {
132
- /**
133
- * Checks `value` to determine whether a default value should be returned in
134
- * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
135
- * or `undefined`.
136
- *
137
- * @param value The value to check.
138
- * @param defaultValue The default value.
139
- * @returns Returns the resolved value.
140
- */
141
- defaultTo<T>(value: T | null | undefined, defaultValue: T): T;
142
- /**
143
- * @see _.defaultTo
144
- */
145
- defaultTo<T, TDefault>(value: T | null | undefined, defaultValue: TDefault): T | TDefault;
146
- }
147
- interface LoDashImplicitWrapper<TValue> {
148
- /**
149
- * @see _.defaultTo
150
- */
151
- defaultTo(defaultValue: TValue): TValue;
152
- /**
153
- * @see _.defaultTo
154
- */
155
- defaultTo<TDefault>(defaultValue: TDefault): TValue extends null | undefined ? TDefault : TValue | TDefault;
156
- }
157
- interface LoDashExplicitWrapper<TValue> {
158
- /**
159
- * @see _.defaultTo
160
- */
161
- defaultTo(defaultValue: TValue): ExpChain<TValue>;
162
- /**
163
- * @see _.defaultTo
164
- */
165
- defaultTo<TDefault>(defaultValue: TDefault): ExpChain<TValue extends null | undefined ? TDefault : TValue | TDefault>;
166
- }
167
-
168
- interface LoDashStatic {
169
- /**
170
- * Creates a function that returns the result of invoking the provided functions with the this binding of the
171
- * created function, where each successive invocation is supplied the return value of the previous.
172
- *
173
- * @param funcs Functions to invoke.
174
- * @return Returns the new function.
175
- */
176
- flow<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (...args: A) => R7;
177
- /**
178
- * @see _.flow
179
- */
180
- flow<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7, ...func: Array<Many<(a: any) => any>>): (...args: A) => any;
181
- /**
182
- * @see _.flow
183
- */
184
- flow<A extends any[], R1, R2, R3, R4, R5, R6>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (...args: A) => R6;
185
- /**
186
- * @see _.flow
187
- */
188
- flow<A extends any[], R1, R2, R3, R4, R5>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): (...args: A) => R5;
189
- /**
190
- * @see _.flow
191
- */
192
- flow<A extends any[], R1, R2, R3, R4>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): (...args: A) => R4;
193
- /**
194
- * @see _.flow
195
- */
196
- flow<A extends any[], R1, R2, R3>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (...args: A) => R3;
197
- /**
198
- * @see _.flow
199
- */
200
- flow<A extends any[], R1, R2>(f1: (...args: A) => R1, f2: (a: R1) => R2): (...args: A) => R2;
201
- /**
202
- * @see _.flow
203
- */
204
- flow(...func: Array<Many<(...args: any[]) => any>>): (...args: any[]) => any;
205
- }
206
- interface Function<T extends (...arg: any) => any> {
207
- /**
208
- * @see _.flow
209
- */
210
- flow<R2, R3, R4, R5, R6, R7>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): Function<(...args: Parameters<T>) => R7>;
211
- /**
212
- * @see _.flow
213
- */
214
- flow<R2, R3, R4, R5, R6, R7>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7, ...func: Array<Many<(a: any) => any>>): Function<(...args: Parameters<T>) => any>;
215
- /**
216
- * @see _.flow
217
- */
218
- flow<R2, R3, R4, R5, R6>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): Function<(...args: Parameters<T>) => R6>;
219
- /**
220
- * @see _.flow
221
- */
222
- flow<R2, R3, R4, R5>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): Function<(...args: Parameters<T>) => R5>;
223
- /**
224
- * @see _.flow
225
- */
226
- flow<R2, R3, R4>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): Function<(...args: Parameters<T>) => R4>;
227
- /**
228
- * @see _.flow
229
- */
230
- flow<R2, R3>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3): Function<(...args: Parameters<T>) => R3>;
231
- /**
232
- * @see _.flow
233
- */
234
- flow<R2>(f2: (a: ReturnType<T>) => R2): Function<(...args: Parameters<T>) => R2>;
235
- /**
236
- * @see _.flow
237
- */
238
- flow(...func: Array<Many<(...args: any[]) => any>>): Function<(...args: any[]) => any>;
239
- }
240
- interface FunctionChain<T> {
241
- /**
242
- * @see _.flow
243
- */
244
- flow<R2, R3, R4, R5, R6, R7>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): FunctionChain<(...args: Parameters<T>) => R7>;
245
- /**
246
- * @see _.flow
247
- */
248
- flow<R2, R3, R4, R5, R6, R7>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7, ...func: Array<Many<(a: any) => any>>): FunctionChain<(...args: Parameters<T>) => any>;
249
- /**
250
- * @see _.flow
251
- */
252
- flow<R2, R3, R4, R5, R6>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): FunctionChain<(...args: Parameters<T>) => R6>;
253
- /**
254
- * @see _.flow
255
- */
256
- flow<R2, R3, R4, R5>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): FunctionChain<(...args: Parameters<T>) => R5>;
257
- /**
258
- * @see _.flow
259
- */
260
- flow<R2, R3, R4>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): FunctionChain<(...args: Parameters<T>) => R4>;
261
- /**
262
- * @see _.flow
263
- */
264
- flow<R2, R3>(f2: (a: ReturnType<T>) => R2, f3: (a: R2) => R3): FunctionChain<(...args: Parameters<T>) => R3>;
265
- /**
266
- * @see _.flow
267
- */
268
- flow<R2>(f2: (a: ReturnType<T>) => R2): FunctionChain<(...args: Parameters<T>) => R2>;
269
- /**
270
- * @see _.flow
271
- */
272
- flow(...func: Array<Many<(...args: any[]) => any>>): FunctionChain<(...args: any[]) => any>;
273
- }
274
-
275
- interface LoDashStatic {
276
- /**
277
- * This method is like _.flow except that it creates a function that invokes the provided functions from right
278
- * to left.
279
- *
280
- * @param funcs Functions to invoke.
281
- * @return Returns the new function.
282
- */
283
- flowRight<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f7: (a: R6) => R7, f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R7;
284
- /**
285
- * @see _.flowRight
286
- */
287
- flowRight<A extends any[], R1, R2, R3, R4, R5, R6>(f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R6;
288
- /**
289
- * @see _.flowRight
290
- */
291
- flowRight<A extends any[], R1, R2, R3, R4, R5>(f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R5;
292
- /**
293
- * @see _.flowRight
294
- */
295
- flowRight<A extends any[], R1, R2, R3, R4>(f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R4;
296
- /**
297
- * @see _.flowRight
298
- */
299
- flowRight<A extends any[], R1, R2, R3>(f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R3;
300
- /**
301
- * @see _.flowRight
302
- */
303
- flowRight<A extends any[], R1, R2>(f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R2;
304
- /**
305
- * @see _.flowRight
306
- */
307
- flowRight(...func: Array<Many<(...args: any[]) => any>>): (...args: any[]) => any;
308
- }
309
- interface Function<T> {
310
- /**
311
- * @see _.flowRight
312
- */
313
- flowRight<A extends any[], R1, R2, R3, R4, R5>(f6: (a: R5) => Parameters<T>["0"], f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): Function<(...args: A) => ReturnType<T>>;
314
- /**
315
- * @see _.flowRight
316
- */
317
- flowRight<A extends any[], R1, R2, R3, R4>(f5: (a: R4) => Parameters<T>["0"], f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): Function<(...args: A) => ReturnType<T>>;
318
- /**
319
- * @see _.flowRight
320
- */
321
- flowRight<A extends any[], R1, R2, R3>(f4: (a: R3) => Parameters<T>["0"], f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): Function<(...args: A) => ReturnType<T>>;
322
- /**
323
- * @see _.flowRight
324
- */
325
- flowRight<A extends any[], R1, R2>(f3: (a: R2) => Parameters<T>["0"], f2: (a: R1) => R2, f1: (...args: A) => R1): Function<(...args: A) => ReturnType<T>>;
326
- /**
327
- * @see _.flowRight
328
- */
329
- flowRight<A extends any[], R1>(f2: (a: R1) => Parameters<T>["0"], f1: (...args: A) => R1): Function<(...args: A) => ReturnType<T>>;
330
- /**
331
- * @see _.flowRight
332
- */
333
- flowRight<A extends any[]>(f1: (...args: A) => Parameters<T>["0"]): Function<(...args: A) => ReturnType<T>>;
334
- /**
335
- * @see _.flowRight
336
- */
337
- flowRight(...func: Array<Many<(...args: any[]) => any>>): Function<(...args: any[]) => any>;
338
- }
339
- interface FunctionChain<T> {
340
- /**
341
- * @see _.flowRight
342
- */
343
- flowRight<A extends any[], R1, R2, R3, R4, R5>(f6: (a: R5) => Parameters<T>["0"], f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): FunctionChain<(...args: A) => ReturnType<T>>;
344
- /**
345
- * @see _.flowRight
346
- */
347
- flowRight<A extends any[], R1, R2, R3, R4>(f5: (a: R4) => Parameters<T>["0"], f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): FunctionChain<(...args: A) => ReturnType<T>>;
348
- /**
349
- * @see _.flowRight
350
- */
351
- flowRight<A extends any[], R1, R2, R3>(f4: (a: R3) => Parameters<T>["0"], f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): FunctionChain<(...args: A) => ReturnType<T>>;
352
- /**
353
- * @see _.flowRight
354
- */
355
- flowRight<A extends any[], R1, R2>(f3: (a: R2) => Parameters<T>["0"], f2: (a: R1) => R2, f1: (...args: A) => R1): FunctionChain<(...args: A) => ReturnType<T>>;
356
- /**
357
- * @see _.flowRight
358
- */
359
- flowRight<A extends any[], R1>(f2: (a: R1) => Parameters<T>["0"], f1: (...args: A) => R1): FunctionChain<(...args: A) => ReturnType<T>>;
360
- /**
361
- * @see _.flowRight
362
- */
363
- flowRight<A extends any[]>(f1: (...args: A) => Parameters<T>["0"]): FunctionChain<(...args: A) => ReturnType<T>>;
364
- /**
365
- * @see _.flowRight
366
- */
367
- flowRight(...func: Array<Many<(...args: any[]) => any>>): FunctionChain<(...args: any[]) => any>;
368
- }
369
-
370
- interface LoDashStatic {
371
- /**
372
- * This method returns the first argument provided to it.
373
- *
374
- * @param value Any value.
375
- * @return Returns value.
376
- */
377
- identity<T>(value: T): T;
378
- /**
379
- * @see _.identity
380
- */
381
- identity(): undefined;
382
- }
383
- interface LoDashImplicitWrapper<TValue> {
384
- /**
385
- * @see _.identity
386
- */
387
- identity(): TValue;
388
- }
389
- interface LoDashExplicitWrapper<TValue> {
390
- /**
391
- * @see _.identity
392
- */
393
- identity(): this;
394
- }
395
-
396
- interface LoDashStatic {
397
- /**
398
- * Creates a function that invokes `func` with the arguments of the created
399
- * function. If `func` is a property name the created callback returns the
400
- * property value for a given element. If `func` is an object the created
401
- * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
402
- *
403
- * @category Util
404
- * @param [func=_.identity] The value to convert to a callback.
405
- * @returns Returns the callback.
406
- * @example
407
- *
408
- * var users = [
409
- * { 'user': 'barney', 'age': 36 },
410
- * { 'user': 'fred', 'age': 40 }
411
- * ];
412
- *
413
- * // create custom iteratee shorthands
414
- * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
415
- * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
416
- * return !p ? callback(func) : function(object) {
417
- * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
418
- * };
419
- * });
420
- *
421
- * _.filter(users, 'age > 36');
422
- * // => [{ 'user': 'fred', 'age': 40 }]
423
- */
424
- iteratee<TFunction extends (...args: any[]) => any>(func: TFunction): TFunction;
425
- /**
426
- * @see _.iteratee
427
- */
428
- iteratee(func: symbol | number | string | object): (...args: any[]) => any;
429
- }
430
- interface Function<T extends (...args: any) => any> {
431
- /**
432
- * @see _.iteratee
433
- */
434
- iteratee(): Function<T>;
435
- }
436
- interface Collection<T> {
437
- /**
438
- * @see _.iteratee
439
- */
440
- iteratee(): Function<(o: object) => boolean>;
441
- }
442
- interface Object<T> {
443
- /**
444
- * @see _.iteratee
445
- */
446
- iteratee(): Function<(o: T) => boolean>;
447
- }
448
- interface String {
449
- /**
450
- * @see _.iteratee
451
- */
452
- iteratee(): Function<(o: object) => any>;
453
- }
454
- interface FunctionChain<T extends (...args: any) => any> {
455
- /**
456
- * @see _.iteratee
457
- */
458
- iteratee(): FunctionChain<T>;
459
- }
460
- interface CollectionChain<T> {
461
- /**
462
- * @see _.iteratee
463
- */
464
- iteratee(): FunctionChain<(o: object) => boolean>;
465
- }
466
- interface ObjectChain<T> {
467
- /**
468
- * @see _.iteratee
469
- */
470
- iteratee(): FunctionChain<(o: T) => boolean>;
471
- }
472
- interface StringChain {
473
- /**
474
- * @see _.iteratee
475
- */
476
- iteratee(): FunctionChain<(o: object) => any>;
477
- }
478
- interface StringNullableChain {
479
- /**
480
- * @see _.iteratee
481
- */
482
- iteratee(): FunctionChain<(o: object) => any>;
483
- }
484
-
485
- interface LoDashStatic {
486
- /**
487
- * Creates a function that performs a deep comparison between a given object and source, returning true if the
488
- * given object has equivalent property values, else false.
489
- *
490
- * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
491
- * strings. Objects are compared by their own, not inherited, enumerable properties. For comparing a single own
492
- * or inherited property value see _.matchesProperty.
493
- *
494
- * @param source The object of property values to match.
495
- * @return Returns the new function.
496
- */
497
- matches<T>(source: T): (value: any) => boolean;
498
- /**
499
- * @see _.matches
500
- */
501
- matches<T, V>(source: T): (value: V) => boolean;
502
- }
503
- interface LoDashImplicitWrapper<TValue> {
504
- /**
505
- * @see _.matches
506
- */
507
- matches<V>(): Function<(value: V) => boolean>;
508
- }
509
- interface LoDashExplicitWrapper<TValue> {
510
- /**
511
- * @see _.matches
512
- */
513
- matches<V>(): FunctionChain<(value: V) => boolean>;
514
- }
515
-
516
- interface LoDashStatic {
517
- /**
518
- * Creates a function that compares the property value of path on a given object to value.
519
- *
520
- * Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and
521
- * strings. Objects are compared by their own, not inherited, enumerable properties.
522
- *
523
- * @param path The path of the property to get.
524
- * @param srcValue The value to match.
525
- * @return Returns the new function.
526
- */
527
- matchesProperty<T>(path: PropertyPath, srcValue: T): (value: any) => boolean;
528
- /**
529
- * @see _.matchesProperty
530
- */
531
- matchesProperty<T, V>(path: PropertyPath, srcValue: T): (value: V) => boolean;
532
- }
533
- interface LoDashImplicitWrapper<TValue> {
534
- /**
535
- * @see _.matchesProperty
536
- */
537
- matchesProperty<SrcValue>(srcValue: SrcValue): Function<(value: any) => boolean>;
538
- /**
539
- * @see _.matchesProperty
540
- */
541
- matchesProperty<SrcValue, Value>(srcValue: SrcValue): Function<(value: Value) => boolean>;
542
- }
543
- interface LoDashExplicitWrapper<TValue> {
544
- /**
545
- * @see _.matchesProperty
546
- */
547
- matchesProperty<SrcValue>(srcValue: SrcValue): FunctionChain<(value: any) => boolean>;
548
- /**
549
- * @see _.matchesProperty
550
- */
551
- matchesProperty<SrcValue, Value>(srcValue: SrcValue): FunctionChain<(value: Value) => boolean>;
552
- }
553
-
554
- interface LoDashStatic {
555
- /**
556
- * Creates a function that invokes the method at path on a given object. Any additional arguments are provided
557
- * to the invoked method.
558
- *
559
- * @param path The path of the method to invoke.
560
- * @param args The arguments to invoke the method with.
561
- * @return Returns the new function.
562
- */
563
- method(path: PropertyPath, ...args: any[]): (object: any) => any;
564
- }
565
- interface LoDashImplicitWrapper<TValue> {
566
- /**
567
- * @see _.method
568
- */
569
- method(...args: any[]): Function<(object: any) => any>;
570
- }
571
- interface LoDashExplicitWrapper<TValue> {
572
- /**
573
- * @see _.method
574
- */
575
- method(...args: any[]): FunctionChain<(object: any) => any>;
576
- }
577
-
578
- interface LoDashStatic {
579
- /**
580
- * The opposite of _.method; this method creates a function that invokes the method at a given path on object.
581
- * Any additional arguments are provided to the invoked method.
582
- *
583
- * @param object The object to query.
584
- * @param args The arguments to invoke the method with.
585
- * @return Returns the new function.
586
- */
587
- methodOf(object: object, ...args: any[]): (path: PropertyPath) => any;
588
- }
589
- interface LoDashImplicitWrapper<TValue> {
590
- /**
591
- * @see _.methodOf
592
- */
593
- methodOf(...args: any[]): LoDashImplicitWrapper<(path: PropertyPath) => any>;
594
- }
595
- interface LoDashExplicitWrapper<TValue> {
596
- /**
597
- * @see _.methodOf
598
- */
599
- methodOf(...args: any[]): LoDashExplicitWrapper<(path: PropertyPath) => any>;
600
- }
601
-
602
- interface MixinOptions {
603
- /**
604
- * @see _.chain
605
- */
606
- chain?: boolean | undefined;
607
- }
608
- interface LoDashStatic {
609
- /**
610
- * Adds all own enumerable function properties of a source object to the destination object. If object is a
611
- * function then methods are added to its prototype as well.
612
- *
613
- * Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying
614
- * the original.
615
- *
616
- * @param object The destination object.
617
- * @param source The object of functions to add.
618
- * @param options The options object.
619
- * @param options.chain Specify whether the functions added are chainable.
620
- * @return Returns object.
621
- */
622
- mixin<TObject>(object: TObject, source: Dictionary<(...args: any[]) => any>, options?: MixinOptions): TObject;
623
- /**
624
- * @see _.mixin
625
- */
626
- mixin<TResult>(source: Dictionary<(...args: any[]) => any>, options?: MixinOptions): LoDashStatic;
627
- }
628
- interface LoDashImplicitWrapper<TValue> {
629
- /**
630
- * @see _.mixin
631
- */
632
- mixin(source: Dictionary<(...args: any[]) => any>, options?: MixinOptions): this;
633
- /**
634
- * @see _.mixin
635
- */
636
- mixin(options?: MixinOptions): LoDashImplicitWrapper<LoDashStatic>;
637
- }
638
- interface LoDashExplicitWrapper<TValue> {
639
- /**
640
- * @see _.mixin
641
- */
642
- mixin(source: Dictionary<(...args: any[]) => any>, options?: MixinOptions): this;
643
- /**
644
- * @see _.mixin
645
- */
646
- mixin(options?: MixinOptions): LoDashExplicitWrapper<LoDashStatic>;
647
- }
648
-
649
- interface LoDashStatic {
650
- /**
651
- * Reverts the _ variable to its previous value and returns a reference to the lodash function.
652
- *
653
- * @return Returns the lodash function.
654
- */
655
- noConflict(): typeof _;
656
- }
657
- interface LoDashImplicitWrapper<TValue> {
658
- /**
659
- * @see _.noConflict
660
- */
661
- noConflict(): typeof _;
662
- }
663
- interface LoDashExplicitWrapper<TValue> {
664
- /**
665
- * @see _.noConflict
666
- */
667
- noConflict(): LoDashExplicitWrapper<typeof _>;
668
- }
669
-
670
- interface LoDashStatic {
671
- /**
672
- * A no-operation function that returns undefined regardless of the arguments it receives.
673
- *
674
- * @return undefined
675
- */
676
- noop(...args: any[]): void;
677
- }
678
- interface LoDashImplicitWrapper<TValue> {
679
- /**
680
- * @see _.noop
681
- */
682
- noop(...args: any[]): void;
683
- }
684
- interface LoDashExplicitWrapper<TValue> {
685
- /**
686
- * @see _.noop
687
- */
688
- noop(...args: any[]): PrimitiveChain<undefined>;
689
- }
690
-
691
- interface LoDashStatic {
692
- /**
693
- * Creates a function that returns its nth argument.
694
- *
695
- * @param n The index of the argument to return.
696
- * @return Returns the new function.
697
- */
698
- nthArg(n?: number): (...args: any[]) => any;
699
- }
700
- interface LoDashImplicitWrapper<TValue> {
701
- /**
702
- * @see _.nthArg
703
- */
704
- nthArg(): Function<(...args: any[]) => any>;
705
- }
706
- interface LoDashExplicitWrapper<TValue> {
707
- /**
708
- * @see _.nthArg
709
- */
710
- nthArg(): FunctionChain<(...args: any[]) => any>;
711
- }
712
-
713
- interface LoDashStatic {
714
- /**
715
- * Creates a function that invokes iteratees with the arguments provided to the created function and returns
716
- * their results.
717
- *
718
- * @param iteratees The iteratees to invoke.
719
- * @return Returns the new function.
720
- */
721
- over<TResult>(...iteratees: Array<Many<(...args: any[]) => TResult>>): (...args: any[]) => TResult[];
722
- }
723
- interface Collection<T> {
724
- /**
725
- * @see _.over
726
- */
727
- over<TResult>(...iteratees: Array<Many<(...args: any[]) => TResult>>): Function<(...args: any[]) => TResult[]>;
728
- }
729
- interface Function<T> {
730
- /**
731
- * @see _.over
732
- */
733
- over<TResult>(...iteratees: Array<Many<(...args: any[]) => TResult>>): Function<(...args: any[]) => Array<ReturnType<T> | TResult>>;
734
- }
735
- interface CollectionChain<T> {
736
- /**
737
- * @see _.over
738
- */
739
- over<TResult>(...iteratees: Array<Many<(...args: any[]) => TResult>>): FunctionChain<(...args: any[]) => TResult[]>;
740
- }
741
- interface FunctionChain<T> {
742
- /**
743
- * @see _.over
744
- */
745
- over<TResult>(...iteratees: Array<Many<(...args: any[]) => TResult>>): FunctionChain<(...args: any[]) => Array<ReturnType<T> | TResult>>;
746
- }
747
-
748
- interface LoDashStatic {
749
- /**
750
- * Creates a function that checks if all of the predicates return truthy when invoked with the arguments
751
- * provided to the created function.
752
- *
753
- * @param predicates The predicates to check.
754
- * @return Returns the new function.
755
- */
756
- overEvery<T, Result1 extends T, Result2 extends T>(...predicates: [
757
- (arg: T) => arg is Result1,
758
- (arg: T) => arg is Result2
759
- ]): (arg: T) => arg is Result1 & Result2;
760
- overEvery<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
761
- }
762
- interface Collection<T> {
763
- /**
764
- * @see _.overEvery
765
- */
766
- overEvery<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): Function<(...args: TArgs[]) => boolean>;
767
- }
768
- interface Function<T> {
769
- /**
770
- * @see _.overEvery
771
- */
772
- overEvery<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): Function<(...args: Parameters<T> | TArgs[]) => boolean>;
773
- }
774
- interface CollectionChain<T> {
775
- /**
776
- * @see _.overEvery
777
- */
778
- overEvery<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): FunctionChain<(...args: TArgs[]) => boolean>;
779
- }
780
- interface FunctionChain<T> {
781
- /**
782
- * @see _.overEvery
783
- */
784
- overEvery<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): FunctionChain<(...args: Parameters<T> | TArgs[]) => boolean>;
785
- }
786
-
787
- interface LoDashStatic {
788
- /**
789
- * Creates a function that checks if any of the predicates return truthy when invoked with the arguments
790
- * provided to the created function.
791
- *
792
- * @param predicates The predicates to check.
793
- * @return Returns the new function.
794
- */
795
- overSome<T, Result1 extends T, Result2 extends T>(...predicates: [
796
- (arg: T) => arg is Result1,
797
- (arg: T) => arg is Result2
798
- ]): (arg: T) => arg is Result1 | Result2;
799
- overSome<T>(...predicates: Array<Many<(...args: T[]) => boolean>>): (...args: T[]) => boolean;
800
- }
801
- interface Collection<T> {
802
- /**
803
- * @see _.overSome
804
- */
805
- overSome<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): Function<(...args: TArgs[]) => boolean>;
806
- }
807
- interface Function<T> {
808
- /**
809
- * @see _.overSome
810
- */
811
- overSome<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): Function<(...args: Parameters<T> | TArgs[]) => boolean>;
812
- }
813
- interface CollectionChain<T> {
814
- /**
815
- * @see _.overSome
816
- */
817
- overSome<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): FunctionChain<(...args: TArgs[]) => boolean>;
818
- }
819
- interface FunctionChain<T> {
820
- /**
821
- * @see _.overSome
822
- */
823
- overSome<TArgs>(...iteratees: Array<Many<(...args: TArgs[]) => boolean>>): FunctionChain<(...args: Parameters<T> | TArgs[]) => boolean>;
824
- }
825
-
826
- interface LoDashStatic {
827
- /**
828
- * Creates a function that returns the property value at path on a given object.
829
- *
830
- * @param path The path of the property to get.
831
- * @return Returns the new function.
832
- */
833
- property<TObj, TResult>(path: PropertyPath): (obj: TObj) => TResult;
834
- }
835
- interface LoDashImplicitWrapper<TValue> {
836
- /**
837
- * @see _.property
838
- */
839
- property<TObj, TResult>(): Function<(obj: TObj) => TResult>;
840
- }
841
- interface LoDashExplicitWrapper<TValue> {
842
- /**
843
- * @see _.property
844
- */
845
- property<TObj, TResult>(): FunctionChain<(obj: TObj) => TResult>;
846
- }
847
-
848
- interface LoDashStatic {
849
- /**
850
- * The opposite of _.property; this method creates a function that returns the property value at a given path
851
- * on object.
852
- *
853
- * @param object The object to query.
854
- * @return Returns the new function.
855
- */
856
- propertyOf<T extends {}>(object: T): (path: PropertyPath) => any;
857
- }
858
- interface LoDashImplicitWrapper<TValue> {
859
- /**
860
- * @see _.propertyOf
861
- */
862
- propertyOf(): LoDashImplicitWrapper<(path: PropertyPath) => any>;
863
- }
864
- interface LoDashExplicitWrapper<TValue> {
865
- /**
866
- * @see _.propertyOf
867
- */
868
- propertyOf(): LoDashExplicitWrapper<(path: PropertyPath) => any>;
869
- }
870
-
871
- interface LoDashStatic {
872
- /**
873
- * Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end.
874
- * If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length
875
- * range is created unless a negative step is specified.
876
- *
877
- * @param start The start of the range.
878
- * @param end The end of the range.
879
- * @param step The value to increment or decrement by.
880
- * @return Returns a new range array.
881
- */
882
- range(start: number, end?: number, step?: number): number[];
883
- /**
884
- * @see _.range
885
- */
886
- range(end: number, index: string | number, guard: object): number[];
887
- }
888
- interface LoDashImplicitWrapper<TValue> {
889
- /**
890
- * @see _.range
891
- */
892
- range(end?: number, step?: number): Collection<number>;
893
- }
894
- interface LoDashExplicitWrapper<TValue> {
895
- /**
896
- * @see _.range
897
- */
898
- range(end?: number, step?: number): CollectionChain<number>;
899
- }
900
-
901
- interface LoDashStatic {
902
- /**
903
- * This method is like `_.range` except that it populates values in
904
- * descending order.
905
- *
906
- * @category Util
907
- * @param start The start of the range.
908
- * @param end The end of the range.
909
- * @param step The value to increment or decrement by.
910
- * @returns Returns the new array of numbers.
911
- * @example
912
- *
913
- * _.rangeRight(4);
914
- * // => [3, 2, 1, 0]
915
- *
916
- * _.rangeRight(-4);
917
- * // => [-3, -2, -1, 0]
918
- *
919
- * _.rangeRight(1, 5);
920
- * // => [4, 3, 2, 1]
921
- *
922
- * _.rangeRight(0, 20, 5);
923
- * // => [15, 10, 5, 0]
924
- *
925
- * _.rangeRight(0, -4, -1);
926
- * // => [-3, -2, -1, 0]
927
- *
928
- * _.rangeRight(1, 4, 0);
929
- * // => [1, 1, 1]
930
- *
931
- * _.rangeRight(0);
932
- * // => []
933
- */
934
- rangeRight(start: number, end?: number, step?: number): number[];
935
- /**
936
- * @see _.rangeRight
937
- */
938
- rangeRight(end: number, index: string | number, guard: object): number[];
939
- }
940
- interface LoDashImplicitWrapper<TValue> {
941
- /**
942
- * @see _.rangeRight
943
- */
944
- rangeRight(end?: number, step?: number): Collection<number>;
945
- }
946
- interface LoDashExplicitWrapper<TValue> {
947
- /**
948
- * @see _.rangeRight
949
- */
950
- rangeRight(end?: number, step?: number): CollectionChain<number>;
951
- }
952
-
953
- interface LoDashStatic {
954
- /**
955
- * Create a new pristine lodash function using the given context object.
956
- *
957
- * @param context The context object.
958
- * @return Returns a new lodash function.
959
- */
960
- runInContext(context?: object): LoDashStatic;
961
- }
962
- interface LoDashImplicitWrapper<TValue> {
963
- /**
964
- * @see _.runInContext
965
- */
966
- runInContext(): LoDashStatic;
967
- }
968
-
969
- interface LoDashStatic {
970
- /**
971
- * This method returns a new empty array.
972
- *
973
- * @returns Returns the new empty array.
974
- */
975
- stubArray(): any[];
976
- }
977
- interface LoDashImplicitWrapper<TValue> {
978
- /**
979
- * @see _.stubArray
980
- */
981
- stubArray(): any[];
982
- }
983
- interface LoDashExplicitWrapper<TValue> {
984
- /**
985
- * @see _.stubArray
986
- */
987
- stubArray(): CollectionChain<any>;
988
- }
989
-
990
- interface LoDashStatic {
991
- /**
992
- * This method returns `false`.
993
- *
994
- * @returns Returns `false`.
995
- */
996
- stubFalse(): false;
997
- }
998
- interface LoDashImplicitWrapper<TValue> {
999
- /**
1000
- * @see _.stubFalse
1001
- */
1002
- stubFalse(): false;
1003
- }
1004
- interface LoDashExplicitWrapper<TValue> {
1005
- /**
1006
- * @see _.stubFalse
1007
- */
1008
- stubFalse(): PrimitiveChain<false>;
1009
- }
1010
-
1011
- interface LoDashStatic {
1012
- /**
1013
- * This method returns a new empty object.
1014
- *
1015
- * @returns Returns the new empty object.
1016
- */
1017
- stubObject(): any;
1018
- }
1019
- interface LoDashImplicitWrapper<TValue> {
1020
- /**
1021
- * @see _.stubObject
1022
- */
1023
- stubObject(): any;
1024
- }
1025
- interface LoDashExplicitWrapper<TValue> {
1026
- /**
1027
- * @see _.stubObject
1028
- */
1029
- stubObject(): LoDashExplicitWrapper<any>;
1030
- }
1031
-
1032
- interface LoDashStatic {
1033
- /**
1034
- * This method returns an empty string.
1035
- *
1036
- * @returns Returns the empty string.
1037
- */
1038
- stubString(): string;
1039
- }
1040
- interface LoDashImplicitWrapper<TValue> {
1041
- /**
1042
- * @see _.stubString
1043
- */
1044
- stubString(): string;
1045
- }
1046
- interface LoDashExplicitWrapper<TValue> {
1047
- /**
1048
- * @see _.stubString
1049
- */
1050
- stubString(): StringChain;
1051
- }
1052
-
1053
- interface LoDashStatic {
1054
- /**
1055
- * This method returns `true`.
1056
- *
1057
- * @returns Returns `true`.
1058
- */
1059
- stubTrue(): true;
1060
- }
1061
- interface LoDashImplicitWrapper<TValue> {
1062
- /**
1063
- * @see _.stubTrue
1064
- */
1065
- stubTrue(): true;
1066
- }
1067
- interface LoDashExplicitWrapper<TValue> {
1068
- /**
1069
- * @see _.stubTrue
1070
- */
1071
- stubTrue(): PrimitiveChain<true>;
1072
- }
1073
-
1074
- interface LoDashStatic {
1075
- /**
1076
- * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee
1077
- * is invoked with one argument; (index).
1078
- *
1079
- * @param n The number of times to invoke iteratee.
1080
- * @param iteratee The function invoked per iteration.
1081
- * @return Returns the array of results.
1082
- */
1083
- times<TResult>(n: number, iteratee: (num: number) => TResult): TResult[];
1084
- /**
1085
- * @see _.times
1086
- */
1087
- times(n: number): number[];
1088
- }
1089
- interface LoDashImplicitWrapper<TValue> {
1090
- /**
1091
- * @see _.times
1092
- */
1093
- times<TResult>(iteratee: (num: number) => TResult): TResult[];
1094
- /**
1095
- * @see _.times
1096
- */
1097
- times(): number[];
1098
- }
1099
- interface LoDashExplicitWrapper<TValue> {
1100
- /**
1101
- * @see _.times
1102
- */
1103
- times<TResult>(iteratee: (num: number) => TResult): CollectionChain<TResult>;
1104
- /**
1105
- * @see _.times
1106
- */
1107
- times(): CollectionChain<number>;
1108
- }
1109
-
1110
- interface LoDashStatic {
1111
- /**
1112
- * Converts `value` to a property path array.
1113
- *
1114
- * @category Util
1115
- * @param value The value to convert.
1116
- * @returns Returns the new property path array.
1117
- * @example
1118
- *
1119
- * _.toPath('a.b.c');
1120
- * // => ['a', 'b', 'c']
1121
- *
1122
- * _.toPath('a[0].b.c');
1123
- * // => ['a', '0', 'b', 'c']
1124
- *
1125
- * var path = ['a', 'b', 'c'],
1126
- * newPath = _.toPath(path);
1127
- *
1128
- * console.log(newPath);
1129
- * // => ['a', 'b', 'c']
1130
- *
1131
- * console.log(path === newPath);
1132
- * // => false
1133
- */
1134
- toPath(value: any): string[];
1135
- }
1136
- interface LoDashImplicitWrapper<TValue> {
1137
- /**
1138
- * @see _.toPath
1139
- */
1140
- toPath(): Collection<string>;
1141
- }
1142
- interface LoDashExplicitWrapper<TValue> {
1143
- /**
1144
- * @see _.toPath
1145
- */
1146
- toPath(): CollectionChain<string>;
1147
- }
1148
-
1149
- interface LoDashStatic {
1150
- /**
1151
- * Generates a unique ID. If prefix is provided the ID is appended to it.
1152
- *
1153
- * @param prefix The value to prefix the ID with.
1154
- * @return Returns the unique ID.
1155
- */
1156
- uniqueId(prefix?: string): string;
1157
- }
1158
- interface LoDashImplicitWrapper<TValue> {
1159
- /**
1160
- * @see _.uniqueId
1161
- */
1162
- uniqueId(): string;
1163
- }
1164
- interface LoDashExplicitWrapper<TValue> {
1165
- /**
1166
- * @see _.uniqueId
1167
- */
1168
- uniqueId(): StringChain;
1169
- }
1170
-
1171
- // stubTrue
1172
-
1173
- interface LoDashStatic {
1174
- /**
1175
- * This method returns true.
1176
- *
1177
- * @return Returns true.
1178
- */
1179
- stubTrue(): true;
1180
- }
1181
-
1182
- interface LoDashImplicitWrapper<TValue> {
1183
- /**
1184
- * @see _.stubTrue
1185
- */
1186
- stubTrue(): true;
1187
- }
1188
-
1189
- interface LoDashExplicitWrapper<TValue> {
1190
- /**
1191
- * @see _.stubTrue
1192
- */
1193
- stubTrue(): LoDashExplicitWrapper<true>;
1194
- }
1195
-
1196
- // stubFalse
1197
-
1198
- interface LoDashStatic {
1199
- /**
1200
- * This method returns false.
1201
- *
1202
- * @return Returns false.
1203
- */
1204
- stubFalse(): false;
1205
- }
1206
-
1207
- interface LoDashImplicitWrapper<TValue> {
1208
- /**
1209
- * @see _.stubFalse
1210
- */
1211
- stubFalse(): false;
1212
- }
1213
-
1214
- interface LoDashExplicitWrapper<TValue> {
1215
- /**
1216
- * @see _.stubFalse
1217
- */
1218
- stubFalse(): LoDashExplicitWrapper<false>;
1219
- }
1220
- }