node-red-contrib-tak-registration 0.11.0 → 0.11.4

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 (250) hide show
  1. package/node_modules/@types/node/LICENSE +0 -0
  2. package/node_modules/@types/node/README.md +4 -5
  3. package/node_modules/@types/node/assert/strict.d.ts +4 -4
  4. package/node_modules/@types/node/assert.d.ts +50 -26
  5. package/node_modules/@types/node/async_hooks.d.ts +13 -6
  6. package/node_modules/@types/node/buffer.d.ts +46 -38
  7. package/node_modules/@types/node/child_process.d.ts +278 -138
  8. package/node_modules/@types/node/cluster.d.ts +107 -89
  9. package/node_modules/@types/node/console.d.ts +18 -15
  10. package/node_modules/@types/node/constants.d.ts +12 -11
  11. package/node_modules/@types/node/crypto.d.ts +746 -268
  12. package/node_modules/@types/node/dgram.d.ts +82 -46
  13. package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  14. package/node_modules/@types/node/dns/promises.d.ts +37 -26
  15. package/node_modules/@types/node/dns.d.ts +204 -63
  16. package/node_modules/@types/node/dom-events.d.ts +67 -71
  17. package/node_modules/@types/node/domain.d.ts +4 -4
  18. package/node_modules/@types/node/events.d.ts +99 -8
  19. package/node_modules/@types/node/fs/promises.d.ts +122 -85
  20. package/node_modules/@types/node/fs.d.ts +520 -316
  21. package/node_modules/@types/node/globals.d.ts +346 -286
  22. package/node_modules/@types/node/globals.global.d.ts +0 -0
  23. package/node_modules/@types/node/http.d.ts +321 -189
  24. package/node_modules/@types/node/http2.d.ts +630 -377
  25. package/node_modules/@types/node/https.d.ts +221 -112
  26. package/node_modules/@types/node/index.d.ts +0 -45
  27. package/node_modules/@types/node/inspector.d.ts +0 -1
  28. package/node_modules/@types/node/module.d.ts +75 -31
  29. package/node_modules/@types/node/net.d.ts +149 -93
  30. package/node_modules/@types/node/os.d.ts +10 -9
  31. package/node_modules/@types/node/package.json +88 -90
  32. package/node_modules/@types/node/path.d.ts +13 -13
  33. package/node_modules/@types/node/perf_hooks.d.ts +19 -18
  34. package/node_modules/@types/node/process.d.ts +170 -126
  35. package/node_modules/@types/node/punycode.d.ts +4 -4
  36. package/node_modules/@types/node/querystring.d.ts +14 -4
  37. package/node_modules/@types/node/readline/promises.d.ts +12 -7
  38. package/node_modules/@types/node/readline.d.ts +69 -56
  39. package/node_modules/@types/node/repl.d.ts +67 -61
  40. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  41. package/node_modules/@types/node/stream/promises.d.ts +56 -15
  42. package/node_modules/@types/node/stream/web.d.ts +40 -20
  43. package/node_modules/@types/node/stream.d.ts +365 -232
  44. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  45. package/node_modules/@types/node/test.d.ts +133 -212
  46. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  47. package/node_modules/@types/node/timers.d.ts +26 -11
  48. package/node_modules/@types/node/tls.d.ts +152 -72
  49. package/node_modules/@types/node/trace_events.d.ts +3 -3
  50. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  51. package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
  52. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
  53. package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
  54. package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
  55. package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  56. package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
  57. package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  58. package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
  59. package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
  60. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  61. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
  62. package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
  63. package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  64. package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  65. package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
  66. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
  67. package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
  68. package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
  69. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  70. package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
  71. package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
  72. package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  73. package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  74. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
  75. package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
  76. package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
  77. package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
  78. package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  79. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  80. package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
  81. package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
  82. package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  83. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  84. package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  85. package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  86. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  87. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  88. package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  89. package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
  90. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  91. package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
  92. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  93. package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
  94. package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
  95. package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  96. package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  97. package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
  98. package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
  99. package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  100. package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
  101. package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
  102. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
  103. package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  104. package/node_modules/@types/node/tty.d.ts +10 -10
  105. package/node_modules/@types/node/url.d.ts +26 -14
  106. package/node_modules/@types/node/util.d.ts +187 -120
  107. package/node_modules/@types/node/v8.d.ts +4 -4
  108. package/node_modules/@types/node/vm.d.ts +58 -50
  109. package/node_modules/@types/node/wasi.d.ts +10 -4
  110. package/node_modules/@types/node/worker_threads.d.ts +83 -86
  111. package/node_modules/@types/node/zlib.d.ts +9 -9
  112. package/node_modules/axios/CHANGELOG.md +225 -0
  113. package/node_modules/axios/README.md +273 -9
  114. package/node_modules/axios/dist/axios.js +249 -178
  115. package/node_modules/axios/dist/axios.js.map +1 -1
  116. package/node_modules/axios/dist/axios.min.js +1 -1
  117. package/node_modules/axios/dist/axios.min.js.map +1 -1
  118. package/node_modules/axios/dist/browser/axios.cjs +213 -193
  119. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  120. package/node_modules/axios/dist/esm/axios.js +213 -193
  121. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  122. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  123. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  124. package/node_modules/axios/dist/node/axios.cjs +297 -213
  125. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  126. package/node_modules/axios/index.d.cts +20 -11
  127. package/node_modules/axios/index.d.ts +21 -12
  128. package/node_modules/axios/lib/adapters/adapters.js +33 -15
  129. package/node_modules/axios/lib/adapters/http.js +25 -12
  130. package/node_modules/axios/lib/adapters/xhr.js +17 -10
  131. package/node_modules/axios/lib/core/mergeConfig.js +1 -0
  132. package/node_modules/axios/lib/defaults/index.js +1 -1
  133. package/node_modules/axios/lib/env/data.js +1 -1
  134. package/node_modules/axios/lib/helpers/cookies.js +39 -49
  135. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
  136. package/node_modules/axios/lib/platform/browser/index.js +0 -51
  137. package/node_modules/axios/lib/platform/common/utils.js +47 -0
  138. package/node_modules/axios/lib/platform/index.js +5 -1
  139. package/node_modules/axios/package.json +2 -1
  140. package/node_modules/call-bind/.eslintrc +0 -1
  141. package/node_modules/call-bind/.nycrc +0 -4
  142. package/node_modules/call-bind/CHANGELOG.md +35 -0
  143. package/node_modules/call-bind/README.md +63 -1
  144. package/node_modules/call-bind/index.js +10 -13
  145. package/node_modules/call-bind/package.json +33 -23
  146. package/node_modules/call-bind/test/callBound.js +0 -1
  147. package/node_modules/call-bind/test/index.js +18 -4
  148. package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
  149. package/node_modules/deep-equal/.eslintrc +6 -0
  150. package/node_modules/deep-equal/.nycrc +17 -0
  151. package/node_modules/deep-equal/CHANGELOG.md +204 -4
  152. package/node_modules/deep-equal/assert.js +3 -0
  153. package/node_modules/deep-equal/package.json +39 -17
  154. package/node_modules/deep-equal/readme.markdown +28 -12
  155. package/node_modules/deep-equal/test/_tape.js +24 -3
  156. package/node_modules/deep-equal/test/cmp.js +1047 -48
  157. package/node_modules/define-data-property/CHANGELOG.md +10 -0
  158. package/node_modules/define-data-property/index.d.ts.map +1 -1
  159. package/node_modules/define-data-property/index.js +8 -0
  160. package/node_modules/define-data-property/package.json +11 -9
  161. package/node_modules/define-data-property/test/index.js +6 -11
  162. package/node_modules/define-data-property/tsconfig.json +1 -0
  163. package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
  164. package/node_modules/fast-xml-parser/package.json +5 -5
  165. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
  166. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
  167. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
  168. package/node_modules/follow-redirects/index.js +16 -4
  169. package/node_modules/follow-redirects/package.json +2 -3
  170. package/node_modules/function-bind/.eslintrc +11 -5
  171. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  172. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  173. package/node_modules/function-bind/.nycrc +13 -0
  174. package/node_modules/function-bind/CHANGELOG.md +136 -0
  175. package/node_modules/function-bind/README.md +25 -27
  176. package/node_modules/function-bind/implementation.js +44 -12
  177. package/node_modules/function-bind/package.json +38 -14
  178. package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
  179. package/node_modules/get-intrinsic/index.js +1 -1
  180. package/node_modules/get-intrinsic/package.json +11 -11
  181. package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
  182. package/node_modules/has-property-descriptors/package.json +13 -6
  183. package/node_modules/hasown/.eslintrc +5 -0
  184. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  185. package/node_modules/hasown/.nycrc +13 -0
  186. package/node_modules/hasown/CHANGELOG.md +20 -0
  187. package/node_modules/hasown/LICENSE +21 -0
  188. package/node_modules/hasown/README.md +40 -0
  189. package/node_modules/hasown/index.d.ts +3 -0
  190. package/node_modules/hasown/index.d.ts.map +1 -0
  191. package/node_modules/hasown/index.js +8 -0
  192. package/node_modules/hasown/package.json +91 -0
  193. package/node_modules/hasown/tsconfig.json +49 -0
  194. package/node_modules/set-function-length/.eslintrc +27 -0
  195. package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  196. package/node_modules/set-function-length/.nycrc +13 -0
  197. package/node_modules/set-function-length/CHANGELOG.md +41 -0
  198. package/node_modules/set-function-length/LICENSE +21 -0
  199. package/node_modules/set-function-length/README.md +56 -0
  200. package/node_modules/set-function-length/env.js +19 -0
  201. package/node_modules/set-function-length/index.js +41 -0
  202. package/node_modules/set-function-length/package.json +84 -0
  203. package/node_modules/undici-types/README.md +6 -0
  204. package/node_modules/undici-types/agent.d.ts +31 -0
  205. package/node_modules/undici-types/api.d.ts +43 -0
  206. package/node_modules/undici-types/balanced-pool.d.ts +18 -0
  207. package/node_modules/undici-types/cache.d.ts +36 -0
  208. package/node_modules/undici-types/client.d.ts +97 -0
  209. package/node_modules/undici-types/connector.d.ts +34 -0
  210. package/node_modules/undici-types/content-type.d.ts +21 -0
  211. package/node_modules/undici-types/cookies.d.ts +28 -0
  212. package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  213. package/node_modules/undici-types/dispatcher.d.ts +241 -0
  214. package/node_modules/undici-types/errors.d.ts +128 -0
  215. package/node_modules/undici-types/fetch.d.ts +209 -0
  216. package/node_modules/undici-types/file.d.ts +39 -0
  217. package/node_modules/undici-types/filereader.d.ts +54 -0
  218. package/node_modules/undici-types/formdata.d.ts +108 -0
  219. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  220. package/node_modules/undici-types/global-origin.d.ts +7 -0
  221. package/node_modules/undici-types/handlers.d.ts +9 -0
  222. package/node_modules/undici-types/header.d.ts +4 -0
  223. package/node_modules/undici-types/index.d.ts +63 -0
  224. package/node_modules/undici-types/interceptors.d.ts +5 -0
  225. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  226. package/node_modules/undici-types/mock-client.d.ts +25 -0
  227. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  228. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  229. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  230. package/node_modules/undici-types/package.json +55 -0
  231. package/node_modules/undici-types/patch.d.ts +71 -0
  232. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  233. package/node_modules/undici-types/pool.d.ts +28 -0
  234. package/node_modules/undici-types/proxy-agent.d.ts +30 -0
  235. package/node_modules/undici-types/readable.d.ts +61 -0
  236. package/node_modules/undici-types/webidl.d.ts +220 -0
  237. package/node_modules/undici-types/websocket.d.ts +131 -0
  238. package/package.json +3 -3
  239. package/tak-ingest.js +39 -24
  240. package/tak-registration.html +4 -4
  241. package/tak-registration.js +2 -3
  242. package/node_modules/define-data-property/tsinit +0 -109
  243. package/node_modules/function-bind/.jscs.json +0 -176
  244. package/node_modules/function-bind/.npmignore +0 -22
  245. package/node_modules/function-bind/.travis.yml +0 -168
  246. package/node_modules/has/LICENSE-MIT +0 -22
  247. package/node_modules/has/README.md +0 -18
  248. package/node_modules/has/package.json +0 -48
  249. package/node_modules/has/src/index.js +0 -5
  250. package/node_modules/has/test/index.js +0 -10
@@ -8,9 +8,13 @@
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/timers.js)
10
10
  */
11
- declare module 'timers' {
12
- import { Abortable } from 'node:events';
13
- import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises';
11
+ declare module "timers" {
12
+ import { Abortable } from "node:events";
13
+ import {
14
+ setImmediate as setImmediatePromise,
15
+ setInterval as setIntervalPromise,
16
+ setTimeout as setTimeoutPromise,
17
+ } from "node:timers/promises";
14
18
  interface TimerOptions extends Abortable {
15
19
  /**
16
20
  * Set to `false` to indicate that the scheduled `Timeout`
@@ -145,9 +149,13 @@ declare module 'timers' {
145
149
  * @param args Optional arguments to pass when the `callback` is called.
146
150
  * @return for use with {@link clearTimeout}
147
151
  */
148
- function setTimeout<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
152
+ function setTimeout<TArgs extends any[]>(
153
+ callback: (...args: TArgs) => void,
154
+ ms?: number,
155
+ ...args: TArgs
156
+ ): NodeJS.Timeout;
149
157
  // util.promisify no rest args compability
150
- // tslint:disable-next-line void-return
158
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
151
159
  function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
152
160
  namespace setTimeout {
153
161
  const __promisify__: typeof setTimeoutPromise;
@@ -173,9 +181,13 @@ declare module 'timers' {
173
181
  * @param args Optional arguments to pass when the `callback` is called.
174
182
  * @return for use with {@link clearInterval}
175
183
  */
176
- function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
184
+ function setInterval<TArgs extends any[]>(
185
+ callback: (...args: TArgs) => void,
186
+ ms?: number,
187
+ ...args: TArgs
188
+ ): NodeJS.Timeout;
177
189
  // util.promisify no rest args compability
178
- // tslint:disable-next-line void-return
190
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
179
191
  function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
180
192
  namespace setInterval {
181
193
  const __promisify__: typeof setIntervalPromise;
@@ -204,9 +216,12 @@ declare module 'timers' {
204
216
  * @param args Optional arguments to pass when the `callback` is called.
205
217
  * @return for use with {@link clearImmediate}
206
218
  */
207
- function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
219
+ function setImmediate<TArgs extends any[]>(
220
+ callback: (...args: TArgs) => void,
221
+ ...args: TArgs
222
+ ): NodeJS.Immediate;
208
223
  // util.promisify no rest args compability
209
- // tslint:disable-next-line void-return
224
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
210
225
  function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
211
226
  namespace setImmediate {
212
227
  const __promisify__: typeof setImmediatePromise;
@@ -220,6 +235,6 @@ declare module 'timers' {
220
235
  function queueMicrotask(callback: () => void): void;
221
236
  }
222
237
  }
223
- declare module 'node:timers' {
224
- export * from 'timers';
238
+ declare module "node:timers" {
239
+ export * from "timers";
225
240
  }
@@ -8,10 +8,10 @@
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/tls.js)
10
10
  */
11
- declare module 'tls' {
12
- import { X509Certificate } from 'node:crypto';
13
- import * as net from 'node:net';
14
- import * as stream from 'stream';
11
+ declare module "tls" {
12
+ import { X509Certificate } from "node:crypto";
13
+ import * as net from "node:net";
14
+ import * as stream from "stream";
15
15
  const CLIENT_RENEG_LIMIT: number;
16
16
  const CLIENT_RENEG_WINDOW: number;
17
17
  interface Certificate {
@@ -396,7 +396,7 @@ declare module 'tls' {
396
396
  rejectUnauthorized?: boolean | undefined;
397
397
  requestCert?: boolean | undefined;
398
398
  },
399
- callback: (err: Error | null) => void
399
+ callback: (err: Error | null) => void,
400
400
  ): undefined | boolean;
401
401
  /**
402
402
  * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size.
@@ -472,35 +472,35 @@ declare module 'tls' {
472
472
  */
473
473
  exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer;
474
474
  addListener(event: string, listener: (...args: any[]) => void): this;
475
- addListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this;
476
- addListener(event: 'secureConnect', listener: () => void): this;
477
- addListener(event: 'session', listener: (session: Buffer) => void): this;
478
- addListener(event: 'keylog', listener: (line: Buffer) => void): this;
475
+ addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
476
+ addListener(event: "secureConnect", listener: () => void): this;
477
+ addListener(event: "session", listener: (session: Buffer) => void): this;
478
+ addListener(event: "keylog", listener: (line: Buffer) => void): this;
479
479
  emit(event: string | symbol, ...args: any[]): boolean;
480
- emit(event: 'OCSPResponse', response: Buffer): boolean;
481
- emit(event: 'secureConnect'): boolean;
482
- emit(event: 'session', session: Buffer): boolean;
483
- emit(event: 'keylog', line: Buffer): boolean;
480
+ emit(event: "OCSPResponse", response: Buffer): boolean;
481
+ emit(event: "secureConnect"): boolean;
482
+ emit(event: "session", session: Buffer): boolean;
483
+ emit(event: "keylog", line: Buffer): boolean;
484
484
  on(event: string, listener: (...args: any[]) => void): this;
485
- on(event: 'OCSPResponse', listener: (response: Buffer) => void): this;
486
- on(event: 'secureConnect', listener: () => void): this;
487
- on(event: 'session', listener: (session: Buffer) => void): this;
488
- on(event: 'keylog', listener: (line: Buffer) => void): this;
485
+ on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
486
+ on(event: "secureConnect", listener: () => void): this;
487
+ on(event: "session", listener: (session: Buffer) => void): this;
488
+ on(event: "keylog", listener: (line: Buffer) => void): this;
489
489
  once(event: string, listener: (...args: any[]) => void): this;
490
- once(event: 'OCSPResponse', listener: (response: Buffer) => void): this;
491
- once(event: 'secureConnect', listener: () => void): this;
492
- once(event: 'session', listener: (session: Buffer) => void): this;
493
- once(event: 'keylog', listener: (line: Buffer) => void): this;
490
+ once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
491
+ once(event: "secureConnect", listener: () => void): this;
492
+ once(event: "session", listener: (session: Buffer) => void): this;
493
+ once(event: "keylog", listener: (line: Buffer) => void): this;
494
494
  prependListener(event: string, listener: (...args: any[]) => void): this;
495
- prependListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this;
496
- prependListener(event: 'secureConnect', listener: () => void): this;
497
- prependListener(event: 'session', listener: (session: Buffer) => void): this;
498
- prependListener(event: 'keylog', listener: (line: Buffer) => void): this;
495
+ prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
496
+ prependListener(event: "secureConnect", listener: () => void): this;
497
+ prependListener(event: "session", listener: (session: Buffer) => void): this;
498
+ prependListener(event: "keylog", listener: (line: Buffer) => void): this;
499
499
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
500
- prependOnceListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this;
501
- prependOnceListener(event: 'secureConnect', listener: () => void): this;
502
- prependOnceListener(event: 'session', listener: (session: Buffer) => void): this;
503
- prependOnceListener(event: 'keylog', listener: (line: Buffer) => void): this;
500
+ prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
501
+ prependOnceListener(event: "secureConnect", listener: () => void): this;
502
+ prependOnceListener(event: "session", listener: (session: Buffer) => void): this;
503
+ prependOnceListener(event: "keylog", listener: (line: Buffer) => void): this;
504
504
  }
505
505
  interface CommonConnectionOptions {
506
506
  /**
@@ -561,7 +561,6 @@ declare module 'tls' {
561
561
  */
562
562
  ticketKeys?: Buffer | undefined;
563
563
  /**
564
- *
565
564
  * @param socket
566
565
  * @param identity identity parameter sent from the client.
567
566
  * @return pre-shared key that must either be
@@ -677,47 +676,118 @@ declare module 'tls' {
677
676
  * 6. keylog
678
677
  */
679
678
  addListener(event: string, listener: (...args: any[]) => void): this;
680
- addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this;
681
- addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
682
- addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
683
- addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
684
- addListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this;
685
- addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
679
+ addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
680
+ addListener(
681
+ event: "newSession",
682
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
683
+ ): this;
684
+ addListener(
685
+ event: "OCSPRequest",
686
+ listener: (
687
+ certificate: Buffer,
688
+ issuer: Buffer,
689
+ callback: (err: Error | null, resp: Buffer) => void,
690
+ ) => void,
691
+ ): this;
692
+ addListener(
693
+ event: "resumeSession",
694
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
695
+ ): this;
696
+ addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
697
+ addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
686
698
  emit(event: string | symbol, ...args: any[]): boolean;
687
- emit(event: 'tlsClientError', err: Error, tlsSocket: TLSSocket): boolean;
688
- emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: () => void): boolean;
689
- emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
690
- emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void): boolean;
691
- emit(event: 'secureConnection', tlsSocket: TLSSocket): boolean;
692
- emit(event: 'keylog', line: Buffer, tlsSocket: TLSSocket): boolean;
699
+ emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
700
+ emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: () => void): boolean;
701
+ emit(
702
+ event: "OCSPRequest",
703
+ certificate: Buffer,
704
+ issuer: Buffer,
705
+ callback: (err: Error | null, resp: Buffer) => void,
706
+ ): boolean;
707
+ emit(
708
+ event: "resumeSession",
709
+ sessionId: Buffer,
710
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
711
+ ): boolean;
712
+ emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
713
+ emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean;
693
714
  on(event: string, listener: (...args: any[]) => void): this;
694
- on(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this;
695
- on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
696
- on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
697
- on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
698
- on(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this;
699
- on(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
715
+ on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
716
+ on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
717
+ on(
718
+ event: "OCSPRequest",
719
+ listener: (
720
+ certificate: Buffer,
721
+ issuer: Buffer,
722
+ callback: (err: Error | null, resp: Buffer) => void,
723
+ ) => void,
724
+ ): this;
725
+ on(
726
+ event: "resumeSession",
727
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
728
+ ): this;
729
+ on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
730
+ on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
700
731
  once(event: string, listener: (...args: any[]) => void): this;
701
- once(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this;
702
- once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
703
- once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
704
- once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
705
- once(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this;
706
- once(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
732
+ once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
733
+ once(
734
+ event: "newSession",
735
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
736
+ ): this;
737
+ once(
738
+ event: "OCSPRequest",
739
+ listener: (
740
+ certificate: Buffer,
741
+ issuer: Buffer,
742
+ callback: (err: Error | null, resp: Buffer) => void,
743
+ ) => void,
744
+ ): this;
745
+ once(
746
+ event: "resumeSession",
747
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
748
+ ): this;
749
+ once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
750
+ once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
707
751
  prependListener(event: string, listener: (...args: any[]) => void): this;
708
- prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this;
709
- prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
710
- prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
711
- prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
712
- prependListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this;
713
- prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
752
+ prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
753
+ prependListener(
754
+ event: "newSession",
755
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
756
+ ): this;
757
+ prependListener(
758
+ event: "OCSPRequest",
759
+ listener: (
760
+ certificate: Buffer,
761
+ issuer: Buffer,
762
+ callback: (err: Error | null, resp: Buffer) => void,
763
+ ) => void,
764
+ ): this;
765
+ prependListener(
766
+ event: "resumeSession",
767
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
768
+ ): this;
769
+ prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
770
+ prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
714
771
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
715
- prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this;
716
- prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
717
- prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
718
- prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
719
- prependOnceListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this;
720
- prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
772
+ prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
773
+ prependOnceListener(
774
+ event: "newSession",
775
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
776
+ ): this;
777
+ prependOnceListener(
778
+ event: "OCSPRequest",
779
+ listener: (
780
+ certificate: Buffer,
781
+ issuer: Buffer,
782
+ callback: (err: Error | null, resp: Buffer) => void,
783
+ ) => void,
784
+ ): this;
785
+ prependOnceListener(
786
+ event: "resumeSession",
787
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
788
+ ): this;
789
+ prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
790
+ prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
721
791
  }
722
792
  /**
723
793
  * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
@@ -726,7 +796,7 @@ declare module 'tls' {
726
796
  encrypted: TLSSocket;
727
797
  cleartext: TLSSocket;
728
798
  }
729
- type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
799
+ type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
730
800
  interface SecureContextOptions {
731
801
  /**
732
802
  * If set, this will be called when a client opens a connection using the ALPN extension.
@@ -1008,7 +1078,12 @@ declare module 'tls' {
1008
1078
  * @since v0.11.3
1009
1079
  */
1010
1080
  function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1011
- function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1081
+ function connect(
1082
+ port: number,
1083
+ host?: string,
1084
+ options?: ConnectionOptions,
1085
+ secureConnectListener?: () => void,
1086
+ ): TLSSocket;
1012
1087
  function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1013
1088
  /**
1014
1089
  * Creates a new secure pair object with two streams, one of which reads and writes
@@ -1043,7 +1118,12 @@ declare module 'tls' {
1043
1118
  * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`.
1044
1119
  * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`.
1045
1120
  */
1046
- function createSecurePair(context?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
1121
+ function createSecurePair(
1122
+ context?: SecureContext,
1123
+ isServer?: boolean,
1124
+ requestCert?: boolean,
1125
+ rejectUnauthorized?: boolean,
1126
+ ): SecurePair;
1047
1127
  /**
1048
1128
  * {@link createServer} sets the default value of the `honorCipherOrder` option
1049
1129
  * to `true`, other APIs that create secure contexts leave it unset.
@@ -1123,8 +1203,8 @@ declare module 'tls' {
1123
1203
  * format) used for verifying peer certificates. This is the default value
1124
1204
  * of the ca option to tls.createSecureContext().
1125
1205
  */
1126
- const rootCertificates: ReadonlyArray<string>;
1206
+ const rootCertificates: readonly string[];
1127
1207
  }
1128
- declare module 'node:tls' {
1129
- export * from 'tls';
1208
+ declare module "node:tls" {
1209
+ export * from "tls";
1130
1210
  }
@@ -96,7 +96,7 @@
96
96
  * @experimental
97
97
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/trace_events.js)
98
98
  */
99
- declare module 'trace_events' {
99
+ declare module "trace_events" {
100
100
  /**
101
101
  * The `Tracing` object is used to enable or disable tracing for sets of
102
102
  * categories. Instances are created using the
@@ -177,6 +177,6 @@ declare module 'trace_events' {
177
177
  */
178
178
  function getEnabledCategories(): string | undefined;
179
179
  }
180
- declare module 'node:trace_events' {
181
- export * from 'trace_events';
180
+ declare module "node:trace_events" {
181
+ export * from "trace_events";
182
182
  }
@@ -1,8 +1,8 @@
1
- declare module 'assert/strict' {
2
- import { strict } from 'node:assert';
1
+ declare module "assert/strict" {
2
+ import { strict } from "node:assert";
3
3
  export = strict;
4
4
  }
5
- declare module 'node:assert/strict' {
6
- import { strict } from 'node:assert';
5
+ declare module "node:assert/strict" {
6
+ import { strict } from "node:assert";
7
7
  export = strict;
8
8
  }
@@ -3,7 +3,7 @@
3
3
  * invariants.
4
4
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/assert.js)
5
5
  */
6
- declare module 'assert' {
6
+ declare module "assert" {
7
7
  /**
8
8
  * An alias of {@link ok}.
9
9
  * @since v0.5.9
@@ -34,7 +34,7 @@ declare module 'assert' {
34
34
  /**
35
35
  * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
36
36
  */
37
- code: 'ERR_ASSERTION';
37
+ code: "ERR_ASSERTION";
38
38
  constructor(options?: {
39
39
  /** If provided, the error message is set to this value. */
40
40
  message?: string | undefined;
@@ -45,7 +45,7 @@ declare module 'assert' {
45
45
  /** The `operator` property on the error instance. */
46
46
  operator?: string | undefined;
47
47
  /** If provided, the generated stack trace omits frames before this function. */
48
- // tslint:disable-next-line:ban-types
48
+ // eslint-disable-next-line @typescript-eslint/ban-types
49
49
  stackStartFn?: Function | undefined;
50
50
  });
51
51
  }
@@ -197,7 +197,7 @@ declare module 'assert' {
197
197
  /** A stack trace of the function. */
198
198
  stack: object;
199
199
  }
200
- type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error;
200
+ type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
201
201
  /**
202
202
  * Throws an `AssertionError` with the provided error message or a default
203
203
  * error message. If the `message` parameter is an instance of an `Error` then
@@ -228,8 +228,8 @@ declare module 'assert' {
228
228
  expected: unknown,
229
229
  message?: string | Error,
230
230
  operator?: string,
231
- // tslint:disable-next-line:ban-types
232
- stackStartFn?: Function
231
+ // eslint-disable-next-line @typescript-eslint/ban-types
232
+ stackStartFn?: Function,
233
233
  ): never;
234
234
  /**
235
235
  * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
@@ -857,7 +857,11 @@ declare module 'assert' {
857
857
  * @since v10.0.0
858
858
  */
859
859
  function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
860
- function rejects(block: (() => Promise<unknown>) | Promise<unknown>, error: AssertPredicate, message?: string | Error): Promise<void>;
860
+ function rejects(
861
+ block: (() => Promise<unknown>) | Promise<unknown>,
862
+ error: AssertPredicate,
863
+ message?: string | Error,
864
+ ): Promise<void>;
861
865
  /**
862
866
  * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
863
867
  * calls the function and awaits the returned promise to complete. It will then
@@ -900,8 +904,15 @@ declare module 'assert' {
900
904
  * ```
901
905
  * @since v10.0.0
902
906
  */
903
- function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
904
- function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, error: AssertPredicate, message?: string | Error): Promise<void>;
907
+ function doesNotReject(
908
+ block: (() => Promise<unknown>) | Promise<unknown>,
909
+ message?: string | Error,
910
+ ): Promise<void>;
911
+ function doesNotReject(
912
+ block: (() => Promise<unknown>) | Promise<unknown>,
913
+ error: AssertPredicate,
914
+ message?: string | Error,
915
+ ): Promise<void>;
905
916
  /**
906
917
  * Expects the `string` input to match the regular expression.
907
918
  *
@@ -948,25 +959,38 @@ declare module 'assert' {
948
959
  * @since v13.6.0, v12.16.0
949
960
  */
950
961
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
951
- const strict: Omit<typeof assert, 'equal' | 'notEqual' | 'deepEqual' | 'notDeepEqual' | 'ok' | 'strictEqual' | 'deepStrictEqual' | 'ifError' | 'strict'> & {
952
- (value: unknown, message?: string | Error): asserts value;
953
- equal: typeof strictEqual;
954
- notEqual: typeof notStrictEqual;
955
- deepEqual: typeof deepStrictEqual;
956
- notDeepEqual: typeof notDeepStrictEqual;
957
- // Mapped types and assertion functions are incompatible?
958
- // TS2775: Assertions require every name in the call target
959
- // to be declared with an explicit type annotation.
960
- ok: typeof ok;
961
- strictEqual: typeof strictEqual;
962
- deepStrictEqual: typeof deepStrictEqual;
963
- ifError: typeof ifError;
964
- strict: typeof strict;
965
- };
962
+ const strict:
963
+ & Omit<
964
+ typeof assert,
965
+ | "equal"
966
+ | "notEqual"
967
+ | "deepEqual"
968
+ | "notDeepEqual"
969
+ | "ok"
970
+ | "strictEqual"
971
+ | "deepStrictEqual"
972
+ | "ifError"
973
+ | "strict"
974
+ >
975
+ & {
976
+ (value: unknown, message?: string | Error): asserts value;
977
+ equal: typeof strictEqual;
978
+ notEqual: typeof notStrictEqual;
979
+ deepEqual: typeof deepStrictEqual;
980
+ notDeepEqual: typeof notDeepStrictEqual;
981
+ // Mapped types and assertion functions are incompatible?
982
+ // TS2775: Assertions require every name in the call target
983
+ // to be declared with an explicit type annotation.
984
+ ok: typeof ok;
985
+ strictEqual: typeof strictEqual;
986
+ deepStrictEqual: typeof deepStrictEqual;
987
+ ifError: typeof ifError;
988
+ strict: typeof strict;
989
+ };
966
990
  }
967
991
  export = assert;
968
992
  }
969
- declare module 'node:assert' {
970
- import assert = require('assert');
993
+ declare module "node:assert" {
994
+ import assert = require("assert");
971
995
  export = assert;
972
996
  }
@@ -14,7 +14,7 @@
14
14
  * @experimental
15
15
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/async_hooks.js)
16
16
  */
17
- declare module 'async_hooks' {
17
+ declare module "async_hooks" {
18
18
  /**
19
19
  * ```js
20
20
  * import { executionAsyncId } from 'node:async_hooks';
@@ -275,7 +275,11 @@ declare module 'async_hooks' {
275
275
  * @param fn The function to bind to the current execution context.
276
276
  * @param type An optional name to associate with the underlying `AsyncResource`.
277
277
  */
278
- static bind<Func extends (this: ThisArg, ...args: any[]) => any, ThisArg>(fn: Func, type?: string, thisArg?: ThisArg): Func;
278
+ static bind<Func extends (this: ThisArg, ...args: any[]) => any, ThisArg>(
279
+ fn: Func,
280
+ type?: string,
281
+ thisArg?: ThisArg,
282
+ ): Func;
279
283
  /**
280
284
  * Binds the given function to execute to this `AsyncResource`'s scope.
281
285
  * @since v14.8.0, v12.19.0
@@ -292,7 +296,11 @@ declare module 'async_hooks' {
292
296
  * @param thisArg The receiver to be used for the function call.
293
297
  * @param args Optional arguments to pass to the function.
294
298
  */
295
- runInAsyncScope<This, Result>(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
299
+ runInAsyncScope<This, Result>(
300
+ fn: (this: This, ...args: any[]) => Result,
301
+ thisArg?: This,
302
+ ...args: any[]
303
+ ): Result;
296
304
  /**
297
305
  * Call all `destroy` hooks. This should only ever be called once. An error will
298
306
  * be thrown if it is called more than once. This **must** be manually called. If
@@ -306,7 +314,6 @@ declare module 'async_hooks' {
306
314
  */
307
315
  asyncId(): number;
308
316
  /**
309
- *
310
317
  * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor.
311
318
  */
312
319
  triggerAsyncId(): number;
@@ -527,6 +534,6 @@ declare module 'async_hooks' {
527
534
  enterWith(store: T): void;
528
535
  }
529
536
  }
530
- declare module 'node:async_hooks' {
531
- export * from 'async_hooks';
537
+ declare module "node:async_hooks" {
538
+ export * from "async_hooks";
532
539
  }