cloudstructs 0.7.1 → 0.7.3

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.
Files changed (413) hide show
  1. package/.jsii +3 -3
  2. package/lib/codecommit-mirror/index.js +2 -2
  3. package/lib/dmarc/index.js +2 -2
  4. package/lib/ecs-service-roller/index.js +2 -2
  5. package/lib/email-receiver/receiver.js +2 -2
  6. package/lib/email-receiver/whitelist.lambda.js +1 -1
  7. package/lib/saml-identity-provider/index.js +2 -2
  8. package/lib/slack-app/manifest.js +2 -2
  9. package/lib/slack-app/provider.lambda.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/events.lambda.js +1 -1
  12. package/lib/slack-events/index.js +2 -2
  13. package/lib/slack-events/signature.js +1 -1
  14. package/lib/slack-textract/detect.lambda.js +1 -1
  15. package/lib/slack-textract/index.js +1 -1
  16. package/lib/ssl-server-test/index.js +1 -1
  17. package/lib/state-machine-cr-provider/index.js +3 -3
  18. package/lib/state-machine-cr-provider/runtime/http.js +1 -1
  19. package/lib/state-machine-cr-provider/runtime/index.js +1 -1
  20. package/lib/static-website/index.js +2 -2
  21. package/lib/toolkit-cleaner/clean-images.lambda.js +1 -1
  22. package/lib/toolkit-cleaner/clean-objects.lambda.js +1 -1
  23. package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +1 -1
  24. package/lib/toolkit-cleaner/get-stack-names.lambda.js +1 -1
  25. package/lib/toolkit-cleaner/index.js +3 -3
  26. package/lib/url-shortener/index.js +2 -2
  27. package/lib/url-shortener/redirect.edge-lambda.js +1 -1
  28. package/lib/url-shortener/shortener.lambda.js +1 -1
  29. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  30. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -7
  31. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +2 -0
  32. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +35 -18
  33. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +4 -2
  34. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +8 -3
  35. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -16
  36. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +1 -1
  37. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +59 -42
  38. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +134 -5
  39. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  40. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -7
  41. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +2 -0
  42. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +35 -18
  43. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +4 -2
  44. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +8 -3
  45. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -16
  46. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +1 -1
  47. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +59 -42
  48. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +134 -5
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -7
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +35 -18
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +4 -2
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +8 -3
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -16
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +59 -42
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +134 -5
  59. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
  60. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +8 -7
  61. package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +2 -0
  62. package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +35 -18
  63. package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +4 -2
  64. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +8 -3
  65. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -16
  66. package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +1 -1
  67. package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +59 -42
  68. package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +134 -5
  69. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  70. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -7
  71. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -0
  72. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +35 -18
  73. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +4 -2
  74. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +8 -3
  75. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -16
  76. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
  77. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +59 -42
  78. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +134 -5
  79. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  80. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -7
  81. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -0
  82. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +35 -18
  83. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +4 -2
  84. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +8 -3
  85. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -16
  86. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
  87. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +59 -42
  88. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +134 -5
  89. package/package.json +19 -19
  90. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  91. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  92. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  93. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  94. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  95. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  96. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  97. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  98. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  99. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  100. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  101. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  102. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  103. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  104. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  105. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  106. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  107. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  108. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  109. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  110. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  111. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  112. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  113. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  114. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  115. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  116. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  117. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  118. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  119. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  120. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  121. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  122. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  123. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  124. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  125. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  126. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  127. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  128. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  129. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  130. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  131. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  132. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  133. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  134. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  135. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  136. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  137. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  138. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  139. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  140. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  141. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  142. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  143. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  144. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  145. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  146. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  147. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  148. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  149. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  150. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  151. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  152. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  153. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  154. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  155. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  156. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  157. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  158. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  159. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  160. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  161. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  162. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  163. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  164. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  165. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  166. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  167. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  168. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  169. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  170. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  171. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  172. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  173. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  174. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  175. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  176. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  177. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  178. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  179. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  180. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  181. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  182. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  183. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  184. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  185. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  186. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  187. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  188. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  189. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  190. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  191. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  192. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  193. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  194. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  195. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  196. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  197. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  198. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  199. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  200. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  201. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  202. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  203. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  204. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  205. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  206. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  207. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  208. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  209. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  210. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  211. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  212. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  213. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  214. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  215. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  216. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  217. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  218. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  219. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  220. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  221. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  222. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  223. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  224. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  225. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  226. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  227. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  228. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  229. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  230. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  231. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  232. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  233. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  234. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  235. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  236. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  237. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  238. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  239. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  240. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  241. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  242. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  243. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  244. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  245. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  246. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  247. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  248. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  249. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  250. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  251. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  252. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  253. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  254. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  255. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  256. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  257. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  258. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  259. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  260. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  261. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  262. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  263. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  264. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  265. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  266. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  267. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  268. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  269. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  270. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  271. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  272. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  273. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  274. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  275. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  276. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  277. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  278. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  279. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  280. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  281. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  282. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  283. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  284. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  285. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  286. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  287. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  288. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  289. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  290. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  291. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  292. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  293. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  294. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  295. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  296. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  297. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  298. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  299. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  300. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  301. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  302. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  303. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  304. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  305. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  306. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  307. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  308. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  309. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  310. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  311. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  312. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  313. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  314. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  315. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  316. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  317. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  318. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  319. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  320. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  321. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  322. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  323. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  324. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  325. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  326. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  327. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  328. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  329. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  330. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  331. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  332. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  333. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  334. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  335. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  336. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  337. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  338. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  339. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  340. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  341. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  342. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  343. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  344. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  345. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  346. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  347. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  348. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  349. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  350. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  351. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  352. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  353. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  354. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  355. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  356. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  357. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  358. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  359. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  360. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  361. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  362. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  363. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  364. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  365. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  366. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  367. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  368. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
  369. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  370. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  371. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  372. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  373. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  374. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  375. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  376. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  377. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  378. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  379. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  380. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  381. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  382. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  383. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  384. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  385. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  386. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  387. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  388. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  389. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  390. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  391. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  392. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  393. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  394. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  395. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  396. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  397. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  398. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  399. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  400. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  401. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  402. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  403. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  404. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  405. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  406. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  407. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  408. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  409. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  410. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  411. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  412. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  413. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
@@ -92,7 +92,24 @@ declare module "events" {
92
92
  interface StaticEventEmitterOptions {
93
93
  signal?: AbortSignal | undefined;
94
94
  }
95
- interface EventEmitter extends NodeJS.EventEmitter {}
95
+ interface EventEmitter<T extends EventMap<T> = DefaultEventMap> extends NodeJS.EventEmitter<T> {}
96
+ type EventMap<T> = Record<keyof T, any[]> | DefaultEventMap;
97
+ type DefaultEventMap = [never];
98
+ type AnyRest = [...args: any[]];
99
+ type Args<K, T> = T extends DefaultEventMap ? AnyRest : (
100
+ K extends keyof T ? T[K] : never
101
+ );
102
+ type Key<K, T> = T extends DefaultEventMap ? string | symbol : K | keyof T;
103
+ type Key2<K, T> = T extends DefaultEventMap ? string | symbol : K & keyof T;
104
+ type Listener<K, T, F> = T extends DefaultEventMap ? F : (
105
+ K extends keyof T ? (
106
+ T[K] extends unknown[] ? (...args: T[K]) => void : never
107
+ )
108
+ : never
109
+ );
110
+ type Listener1<K, T> = Listener<K, T, (...args: any[]) => void>;
111
+ type Listener2<K, T> = Listener<K, T, Function>;
112
+
96
113
  /**
97
114
  * The `EventEmitter` class is defined and exposed by the `node:events` module:
98
115
  *
@@ -106,10 +123,10 @@ declare module "events" {
106
123
  * It supports the following option:
107
124
  * @since v0.1.26
108
125
  */
109
- class EventEmitter {
126
+ class EventEmitter<T extends EventMap<T> = DefaultEventMap> {
110
127
  constructor(options?: EventEmitterOptions);
111
128
 
112
- [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
129
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
113
130
 
114
131
  /**
115
132
  * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
@@ -536,13 +553,13 @@ declare module "events" {
536
553
  }
537
554
  global {
538
555
  namespace NodeJS {
539
- interface EventEmitter {
540
- [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
556
+ interface EventEmitter<T extends EventMap<T> = DefaultEventMap> {
557
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
541
558
  /**
542
559
  * Alias for `emitter.on(eventName, listener)`.
543
560
  * @since v0.1.26
544
561
  */
545
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
562
+ addListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
546
563
  /**
547
564
  * Adds the `listener` function to the end of the listeners array for the
548
565
  * event named `eventName`. No checks are made to see if the `listener` has
@@ -574,7 +591,7 @@ declare module "events" {
574
591
  * @param eventName The name of the event.
575
592
  * @param listener The callback function
576
593
  */
577
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
594
+ on<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
578
595
  /**
579
596
  * Adds a **one-time**`listener` function for the event named `eventName`. The
580
597
  * next time `eventName` is triggered, this listener is removed and then invoked.
@@ -604,7 +621,7 @@ declare module "events" {
604
621
  * @param eventName The name of the event.
605
622
  * @param listener The callback function
606
623
  */
607
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
624
+ once<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
608
625
  /**
609
626
  * Removes the specified `listener` from the listener array for the event named`eventName`.
610
627
  *
@@ -687,12 +704,12 @@ declare module "events" {
687
704
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
688
705
  * @since v0.1.26
689
706
  */
690
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
707
+ removeListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
691
708
  /**
692
709
  * Alias for `emitter.removeListener()`.
693
710
  * @since v10.0.0
694
711
  */
695
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
712
+ off<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
696
713
  /**
697
714
  * Removes all listeners, or those of the specified `eventName`.
698
715
  *
@@ -703,7 +720,7 @@ declare module "events" {
703
720
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
704
721
  * @since v0.1.26
705
722
  */
706
- removeAllListeners(event?: string | symbol): this;
723
+ removeAllListeners(event?: Key<unknown, T>): this;
707
724
  /**
708
725
  * By default `EventEmitter`s will print a warning if more than `10` listeners are
709
726
  * added for a particular event. This is a useful default that helps finding
@@ -732,7 +749,7 @@ declare module "events" {
732
749
  * ```
733
750
  * @since v0.1.26
734
751
  */
735
- listeners(eventName: string | symbol): Function[];
752
+ listeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
736
753
  /**
737
754
  * Returns a copy of the array of listeners for the event named `eventName`,
738
755
  * including any wrappers (such as those created by `.once()`).
@@ -763,7 +780,7 @@ declare module "events" {
763
780
  * ```
764
781
  * @since v9.4.0
765
782
  */
766
- rawListeners(eventName: string | symbol): Function[];
783
+ rawListeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
767
784
  /**
768
785
  * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments
769
786
  * to each.
@@ -804,7 +821,7 @@ declare module "events" {
804
821
  * ```
805
822
  * @since v0.1.26
806
823
  */
807
- emit(eventName: string | symbol, ...args: any[]): boolean;
824
+ emit<K>(eventName: Key<K, T>, ...args: Args<K, T>): boolean;
808
825
  /**
809
826
  * Returns the number of listeners listening for the event named `eventName`.
810
827
  * If `listener` is provided, it will return how many times the listener is found
@@ -813,7 +830,7 @@ declare module "events" {
813
830
  * @param eventName The name of the event being listened for
814
831
  * @param listener The event handler function
815
832
  */
816
- listenerCount(eventName: string | symbol, listener?: Function): number;
833
+ listenerCount<K>(eventName: Key<K, T>, listener?: Listener2<K, T>): number;
817
834
  /**
818
835
  * Adds the `listener` function to the _beginning_ of the listeners array for the
819
836
  * event named `eventName`. No checks are made to see if the `listener` has
@@ -831,7 +848,7 @@ declare module "events" {
831
848
  * @param eventName The name of the event.
832
849
  * @param listener The callback function
833
850
  */
834
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
851
+ prependListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
835
852
  /**
836
853
  * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this
837
854
  * listener is removed, and then invoked.
@@ -847,7 +864,7 @@ declare module "events" {
847
864
  * @param eventName The name of the event.
848
865
  * @param listener The callback function
849
866
  */
850
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
867
+ prependOnceListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
851
868
  /**
852
869
  * Returns an array listing the events for which the emitter has registered
853
870
  * listeners. The values in the array are strings or `Symbol`s.
@@ -867,7 +884,7 @@ declare module "events" {
867
884
  * ```
868
885
  * @since v6.0.0
869
886
  */
870
- eventNames(): Array<string | symbol>;
887
+ eventNames(): Array<(string | symbol) & Key2<unknown, T>>;
871
888
  }
872
889
  }
873
890
  }
@@ -198,9 +198,11 @@ declare module "http" {
198
198
  _defaultAgent?: Agent | undefined;
199
199
  agent?: Agent | boolean | undefined;
200
200
  auth?: string | null | undefined;
201
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
202
201
  createConnection?:
203
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
202
+ | ((
203
+ options: ClientRequestArgs,
204
+ oncreate: (err: Error | null, socket: stream.Duplex) => void,
205
+ ) => stream.Duplex | null | undefined)
204
206
  | undefined;
205
207
  defaultPort?: number | string | undefined;
206
208
  family?: number | undefined;
@@ -18,8 +18,8 @@ declare module "net" {
18
18
  import * as dns from "node:dns";
19
19
  type LookupFunction = (
20
20
  hostname: string,
21
- options: dns.LookupAllOptions,
22
- callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void,
21
+ options: dns.LookupOptions,
22
+ callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void,
23
23
  ) => void;
24
24
  interface AddressInfo {
25
25
  address: string;
@@ -628,7 +628,7 @@ declare module "net" {
628
628
  * Indicates whether or not the server is listening for connections.
629
629
  * @since v5.7.0
630
630
  */
631
- listening: boolean;
631
+ readonly listening: boolean;
632
632
  /**
633
633
  * events.EventEmitter
634
634
  * 1. close
@@ -736,6 +736,11 @@ declare module "net" {
736
736
  */
737
737
  check(address: SocketAddress): boolean;
738
738
  check(address: string, type?: IPVersion): boolean;
739
+ /**
740
+ * The list of rules added to the blocklist.
741
+ * @since v15.0.0, v14.18.0
742
+ */
743
+ rules: readonly string[];
739
744
  }
740
745
  interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
741
746
  timeout?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.11.10",
3
+ "version": "20.11.26",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -85,11 +85,6 @@
85
85
  "githubUsername": "mohsen1",
86
86
  "url": "https://github.com/mohsen1"
87
87
  },
88
- {
89
- "name": "Nicolas Even",
90
- "githubUsername": "n-e",
91
- "url": "https://github.com/n-e"
92
- },
93
88
  {
94
89
  "name": "Nikita Galkin",
95
90
  "githubUsername": "galkin",
@@ -208,13 +203,6 @@
208
203
  ],
209
204
  "main": "",
210
205
  "types": "index.d.ts",
211
- "typesVersions": {
212
- "<=4.8": {
213
- "*": [
214
- "ts4.8/*"
215
- ]
216
- }
217
- },
218
206
  "repository": {
219
207
  "type": "git",
220
208
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -224,7 +212,6 @@
224
212
  "dependencies": {
225
213
  "undici-types": "~5.26.4"
226
214
  },
227
- "typesPublisherContentHash": "897aa7f7b2ef28b325dc21b77e81fb89f7e55a10a0d587e1d8ed0c8128302e0b",
228
- "typeScriptVersion": "4.6",
229
- "nonNpm": true
215
+ "typesPublisherContentHash": "9b3b3458b87d11d9c61fca99966320a6a0b1e0b7f7f8a4d54e69202006c304fe",
216
+ "typeScriptVersion": "4.7"
230
217
  }
@@ -220,7 +220,7 @@ declare module "tls" {
220
220
  /**
221
221
  * Construct a new tls.TLSSocket object from an existing TCP socket.
222
222
  */
223
- constructor(socket: net.Socket, options?: TLSSocketOptions);
223
+ constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
224
224
  /**
225
225
  * This property is `true` if the peer certificate was signed by one of the CAs
226
226
  * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
@@ -5,7 +5,7 @@
5
5
  * ```js
6
6
  * import url from 'node:url';
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/url.js)
9
9
  */
10
10
  declare module "url" {
11
11
  import { Blob as NodeBlob } from "node:buffer";
@@ -74,7 +74,7 @@ declare module "url" {
74
74
  function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
75
75
  function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
76
76
  /**
77
- * The `url.format()` method returns a formatted URL string derived from`urlObject`.
77
+ * The `url.format()` method returns a formatted URL string derived from `urlObject`.
78
78
  *
79
79
  * ```js
80
80
  * const url = require('node:url');
@@ -100,33 +100,33 @@ declare module "url" {
100
100
  * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
101
101
  * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
102
102
  * colon (`:`) character, the literal string `:` will be appended to `result`.
103
- * * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
103
+ * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
104
104
  * * `urlObject.slashes` property is true;
105
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
106
- * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
107
- * and appended to `result`followed by the literal string `@`.
105
+ * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
106
+ * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
107
+ * and appended to `result` followed by the literal string `@`.
108
108
  * * If the `urlObject.host` property is `undefined` then:
109
109
  * * If the `urlObject.hostname` is a string, it is appended to `result`.
110
110
  * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
111
111
  * an `Error` is thrown.
112
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
112
+ * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
113
113
  * * The literal string `:` is appended to `result`, and
114
- * * The value of `urlObject.port` is coerced to a string and appended to`result`.
115
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
114
+ * * The value of `urlObject.port` is coerced to a string and appended to `result`.
115
+ * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
116
116
  * * If the `urlObject.pathname` property is a string that is not an empty string:
117
- * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
117
+ * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
118
118
  * (`/`), then the literal string `'/'` is appended to `result`.
119
119
  * * The value of `urlObject.pathname` is appended to `result`.
120
120
  * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
121
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
122
- * `querystring` module's `stringify()`method passing the value of `urlObject.query`.
121
+ * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
122
+ * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
123
123
  * * Otherwise, if `urlObject.search` is a string:
124
- * * If the value of `urlObject.search`_does not start_ with the ASCII question
124
+ * * If the value of `urlObject.search` _does not start_ with the ASCII question
125
125
  * mark (`?`) character, the literal string `?` is appended to `result`.
126
126
  * * The value of `urlObject.search` is appended to `result`.
127
127
  * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
128
128
  * * If the `urlObject.hash` property is a string:
129
- * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
129
+ * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
130
130
  * character, the literal string `#` is appended to `result`.
131
131
  * * The value of `urlObject.hash` is appended to `result`.
132
132
  * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
@@ -138,18 +138,18 @@ declare module "url" {
138
138
  */
139
139
  function format(urlObject: URL, options?: URLFormatOptions): string;
140
140
  /**
141
- * The `url.format()` method returns a formatted URL string derived from`urlObject`.
141
+ * The `url.format()` method returns a formatted URL string derived from `urlObject`.
142
142
  *
143
143
  * ```js
144
- * const url = require('url');
144
+ * const url = require('node:url');
145
145
  * url.format({
146
146
  * protocol: 'https',
147
147
  * hostname: 'example.com',
148
148
  * pathname: '/some/path',
149
149
  * query: {
150
150
  * page: 1,
151
- * format: 'json'
152
- * }
151
+ * format: 'json',
152
+ * },
153
153
  * });
154
154
  *
155
155
  * // => 'https://example.com/some/path?page=1&#x26;format=json'
@@ -164,33 +164,33 @@ declare module "url" {
164
164
  * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
165
165
  * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
166
166
  * colon (`:`) character, the literal string `:` will be appended to `result`.
167
- * * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
167
+ * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
168
168
  * * `urlObject.slashes` property is true;
169
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
170
- * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
171
- * and appended to `result`followed by the literal string `@`.
169
+ * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
170
+ * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
171
+ * and appended to `result` followed by the literal string `@`.
172
172
  * * If the `urlObject.host` property is `undefined` then:
173
173
  * * If the `urlObject.hostname` is a string, it is appended to `result`.
174
174
  * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
175
175
  * an `Error` is thrown.
176
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
176
+ * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
177
177
  * * The literal string `:` is appended to `result`, and
178
- * * The value of `urlObject.port` is coerced to a string and appended to`result`.
179
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
178
+ * * The value of `urlObject.port` is coerced to a string and appended to `result`.
179
+ * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
180
180
  * * If the `urlObject.pathname` property is a string that is not an empty string:
181
- * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
181
+ * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
182
182
  * (`/`), then the literal string `'/'` is appended to `result`.
183
183
  * * The value of `urlObject.pathname` is appended to `result`.
184
184
  * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
185
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
186
- * `querystring` module's `stringify()`method passing the value of `urlObject.query`.
185
+ * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
186
+ * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
187
187
  * * Otherwise, if `urlObject.search` is a string:
188
- * * If the value of `urlObject.search`_does not start_ with the ASCII question
188
+ * * If the value of `urlObject.search` _does not start_ with the ASCII question
189
189
  * mark (`?`) character, the literal string `?` is appended to `result`.
190
190
  * * The value of `urlObject.search` is appended to `result`.
191
191
  * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
192
192
  * * If the `urlObject.hash` property is a string:
193
- * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
193
+ * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
194
194
  * character, the literal string `#` is appended to `result`.
195
195
  * * The value of `urlObject.hash` is appended to `result`.
196
196
  * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
@@ -345,9 +345,26 @@ declare module "url" {
345
345
  */
346
346
  function urlToHttpOptions(url: URL): ClientRequestArgs;
347
347
  interface URLFormatOptions {
348
+ /**
349
+ * `true` if the serialized URL string should include the username and password, `false` otherwise.
350
+ * @default true
351
+ */
348
352
  auth?: boolean | undefined;
353
+ /**
354
+ * `true` if the serialized URL string should include the fragment, `false` otherwise.
355
+ * @default true
356
+ */
349
357
  fragment?: boolean | undefined;
358
+ /**
359
+ * `true` if the serialized URL string should include the search query, `false` otherwise.
360
+ * @default true
361
+ */
350
362
  search?: boolean | undefined;
363
+ /**
364
+ * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
365
+ * being Punycode encoded.
366
+ * @default false
367
+ */
351
368
  unicode?: boolean | undefined;
352
369
  }
353
370
  /**
@@ -357,7 +374,7 @@ declare module "url" {
357
374
  *
358
375
  * In accordance with browser conventions, all properties of `URL` objects
359
376
  * are implemented as getters and setters on the class prototype, rather than as
360
- * data properties on the object itself. Thus, unlike `legacy urlObject` s,
377
+ * data properties on the object itself. Thus, unlike `legacy urlObject`s,
361
378
  * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
362
379
  * return `true`.
363
380
  * @since v7.0.0, v6.13.0
@@ -381,7 +398,7 @@ declare module "url" {
381
398
  * console.log(otherBlob.size);
382
399
  * ```
383
400
  *
384
- * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it.
401
+ * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it.
385
402
  *
386
403
  * `Blob` objects are registered within the current thread. If using Worker
387
404
  * Threads, `Blob` objects registered within one Worker will not be available
@@ -397,7 +414,7 @@ declare module "url" {
397
414
  * @experimental
398
415
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
399
416
  */
400
- static revokeObjectURL(objectUrl: string): void;
417
+ static revokeObjectURL(id: string): void;
401
418
  /**
402
419
  * Checks if an `input` relative to the `base` can be parsed to a `URL`.
403
420
  *
@@ -412,7 +429,7 @@ declare module "url" {
412
429
  * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
413
430
  */
414
431
  static canParse(input: string, base?: string): boolean;
415
- constructor(input: string, base?: string | URL);
432
+ constructor(input: string | { toString: () => string }, base?: string | URL);
416
433
  /**
417
434
  * Gets and sets the fragment portion of the URL.
418
435
  *
@@ -541,14 +558,14 @@ declare module "url" {
541
558
  * // Prints https://example.org/abcdef?123
542
559
  * ```
543
560
  *
544
- * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters
561
+ * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters
545
562
  * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
546
563
  */
547
564
  pathname: string;
548
565
  /**
549
566
  * Gets and sets the port portion of the URL.
550
567
  *
551
- * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will
568
+ * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will
552
569
  * result in the `port` value becoming
553
570
  * the empty string (`''`).
554
571
  *
@@ -688,7 +705,7 @@ declare module "url" {
688
705
  * // Prints https://123:xyz@example.com/
689
706
  * ```
690
707
  *
691
- * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which
708
+ * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which
692
709
  * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
693
710
  */
694
711
  username: string;
@@ -716,7 +733,7 @@ declare module "url" {
716
733
  toJSON(): string;
717
734
  }
718
735
  /**
719
- * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the
736
+ * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
720
737
  * four following constructors.
721
738
  * The `URLSearchParams` class is also available on the global object.
722
739
  *
@@ -774,14 +791,14 @@ declare module "url" {
774
791
  append(name: string, value: string): void;
775
792
  /**
776
793
  * If `value` is provided, removes all name-value pairs
777
- * where name is `name` and value is `value`..
794
+ * where name is `name` and value is `value`.
778
795
  *
779
796
  * If `value` is not provided, removes all name-value pairs whose name is `name`.
780
797
  */
781
798
  delete(name: string, value?: string): void;
782
799
  /**
783
800
  * Returns an ES6 `Iterator` over each of the name-value pairs in the query.
784
- * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
801
+ * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
785
802
  *
786
803
  * Alias for `urlSearchParams[@@iterator]()`.
787
804
  */
@@ -802,7 +819,7 @@ declare module "url" {
802
819
  * @param thisArg To be used as `this` value for when `fn` is called
803
820
  */
804
821
  forEach<TThis = this>(
805
- callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
822
+ fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
806
823
  thisArg?: TThis,
807
824
  ): void;
808
825
  /**
@@ -817,7 +834,7 @@ declare module "url" {
817
834
  */
818
835
  getAll(name: string): string[];
819
836
  /**
820
- * Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument.
837
+ * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument.
821
838
  *
822
839
  * If `value` is provided, returns `true` when name-value pair with
823
840
  * same `name` and `value` exists.