@node-red/editor-client 3.1.8 → 4.0.0-beta.2

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 (149) hide show
  1. package/locales/de/editor.json +2 -0
  2. package/locales/en-US/editor.json +10 -1
  3. package/locales/fr/editor.json +8 -1
  4. package/locales/ja/editor.json +10 -3
  5. package/package.json +1 -1
  6. package/public/red/about +52 -0
  7. package/public/red/red.js +1433 -263
  8. package/public/red/red.min.js +3 -3
  9. package/public/red/style.min.css +2 -2
  10. package/public/red/tours/3.1/welcome.js +231 -0
  11. package/public/red/tours/images/nr4-auto-complete.png +0 -0
  12. package/public/red/tours/images/nr4-config-select.png +0 -0
  13. package/public/red/tours/images/nr4-multiplayer.png +0 -0
  14. package/public/red/tours/images/nr4-plugins.png +0 -0
  15. package/public/red/tours/images/nr4-sf-config.png +0 -0
  16. package/public/red/tours/images/nr4-timestamp-formatting.png +0 -0
  17. package/public/red/tours/welcome.js +105 -161
  18. package/public/types/node/assert/strict.d.ts +1 -1
  19. package/public/types/node/assert.d.ts +8 -9
  20. package/public/types/node/async_hooks.d.ts +9 -5
  21. package/public/types/node/buffer.d.ts +43 -18
  22. package/public/types/node/child_process.d.ts +8 -5
  23. package/public/types/node/cluster.d.ts +15 -19
  24. package/public/types/node/console.d.ts +2 -2
  25. package/public/types/node/crypto.d.ts +165 -70
  26. package/public/types/node/dgram.d.ts +4 -4
  27. package/public/types/node/diagnostics_channel.d.ts +8 -7
  28. package/public/types/node/dns/promises.d.ts +11 -9
  29. package/public/types/node/dns.d.ts +18 -13
  30. package/public/types/node/dom-events.d.ts +129 -0
  31. package/public/types/node/domain.d.ts +2 -2
  32. package/public/types/node/events.d.ts +49 -12
  33. package/public/types/node/fs/promises.d.ts +68 -24
  34. package/public/types/node/fs.d.ts +132 -59
  35. package/public/types/node/globals.d.ts +31 -17
  36. package/public/types/node/http.d.ts +138 -27
  37. package/public/types/node/http2.d.ts +38 -5
  38. package/public/types/node/https.d.ts +12 -3
  39. package/public/types/node/module.d.ts +1 -2
  40. package/public/types/node/net.d.ts +69 -28
  41. package/public/types/node/os.d.ts +16 -5
  42. package/public/types/node/path.d.ts +5 -5
  43. package/public/types/node/perf_hooks.d.ts +48 -9
  44. package/public/types/node/process.d.ts +18 -17
  45. package/public/types/node/querystring.d.ts +2 -2
  46. package/public/types/node/readline/promises.d.ts +146 -0
  47. package/public/types/node/readline.d.ts +141 -31
  48. package/public/types/node/stream/consumers.d.ts +2 -2
  49. package/public/types/node/stream/promises.d.ts +1 -1
  50. package/public/types/node/stream/web.d.ts +4 -66
  51. package/public/types/node/stream.d.ts +96 -118
  52. package/public/types/node/string_decoder.d.ts +2 -2
  53. package/public/types/node/test.d.ts +200 -16
  54. package/public/types/node/timers/promises.d.ts +1 -26
  55. package/public/types/node/timers.d.ts +2 -2
  56. package/public/types/node/tls.d.ts +21 -12
  57. package/public/types/node/trace_events.d.ts +12 -2
  58. package/public/types/node/ts4.8/assert/strict.d.ts +11 -0
  59. package/public/types/node/ts4.8/assert.d.ts +964 -0
  60. package/public/types/node/ts4.8/async_hooks.d.ts +504 -0
  61. package/public/types/node/ts4.8/buffer.d.ts +2262 -0
  62. package/public/types/node/ts4.8/child_process.d.ts +1372 -0
  63. package/public/types/node/ts4.8/cluster.d.ts +413 -0
  64. package/public/types/node/ts4.8/console.d.ts +415 -0
  65. package/public/types/node/ts4.8/crypto.d.ts +3967 -0
  66. package/public/types/node/ts4.8/dgram.d.ts +548 -0
  67. package/public/types/node/ts4.8/diagnostics_channel.d.ts +156 -0
  68. package/public/types/node/ts4.8/dns/promises.d.ts +373 -0
  69. package/public/types/node/ts4.8/dns.d.ts +662 -0
  70. package/public/types/node/ts4.8/dom-events.d.ts +129 -0
  71. package/public/types/node/ts4.8/domain.d.ts +173 -0
  72. package/public/types/node/ts4.8/events.d.ts +681 -0
  73. package/public/types/node/ts4.8/fs/promises.d.ts +1141 -0
  74. package/public/types/node/ts4.8/fs.d.ts +3875 -0
  75. package/public/types/node/ts4.8/globals.d.ts +297 -0
  76. package/public/types/node/ts4.8/http.d.ts +1617 -0
  77. package/public/types/node/ts4.8/http2.d.ts +2137 -0
  78. package/public/types/node/ts4.8/https.d.ts +544 -0
  79. package/public/types/node/ts4.8/module.d.ts +117 -0
  80. package/public/types/node/ts4.8/net.d.ts +872 -0
  81. package/public/types/node/ts4.8/os.d.ts +469 -0
  82. package/public/types/node/ts4.8/path.d.ts +194 -0
  83. package/public/types/node/ts4.8/perf_hooks.d.ts +628 -0
  84. package/public/types/node/ts4.8/process.d.ts +1485 -0
  85. package/public/types/node/ts4.8/querystring.d.ts +134 -0
  86. package/public/types/node/ts4.8/readline/promises.d.ts +146 -0
  87. package/public/types/node/ts4.8/readline.d.ts +656 -0
  88. package/public/types/node/ts4.8/stream/consumers.d.ts +15 -0
  89. package/public/types/node/ts4.8/stream/promises.d.ts +45 -0
  90. package/public/types/node/ts4.8/stream/web.d.ts +333 -0
  91. package/public/types/node/ts4.8/stream.d.ts +1343 -0
  92. package/public/types/node/ts4.8/string_decoder.d.ts +70 -0
  93. package/public/types/node/ts4.8/test.d.ts +377 -0
  94. package/public/types/node/ts4.8/timers/promises.d.ts +71 -0
  95. package/public/types/node/ts4.8/timers.d.ts +97 -0
  96. package/public/types/node/ts4.8/tls.d.ts +1031 -0
  97. package/public/types/node/ts4.8/trace_events.d.ts +174 -0
  98. package/public/types/node/ts4.8/tty.d.ts +209 -0
  99. package/public/types/node/ts4.8/url.d.ts +900 -0
  100. package/public/types/node/ts4.8/util.d.ts +1853 -0
  101. package/public/types/node/ts4.8/v8.d.ts +399 -0
  102. package/public/types/node/ts4.8/vm.d.ts +512 -0
  103. package/public/types/node/ts4.8/wasi.d.ts +161 -0
  104. package/public/types/node/ts4.8/worker_threads.d.ts +692 -0
  105. package/public/types/node/ts4.8/zlib.d.ts +520 -0
  106. package/public/types/node/tty.d.ts +5 -3
  107. package/public/types/node/url.d.ts +81 -39
  108. package/public/types/node/util.d.ts +269 -13
  109. package/public/types/node/v8.d.ts +22 -4
  110. package/public/types/node/vm.d.ts +7 -5
  111. package/public/types/node/wasi.d.ts +2 -2
  112. package/public/types/node/worker_threads.d.ts +51 -11
  113. package/public/types/node/zlib.d.ts +2 -2
  114. package/public/types/node-red/func.d.ts +26 -17
  115. package/public/vendor/ace/worker-jsonata.js +1 -1
  116. package/public/vendor/monaco/dist/{fa2cc0ab9f0bec2b3365.ttf → 0c718f5b7d2bce997c5f.ttf} +0 -0
  117. package/public/vendor/monaco/dist/css.worker.js +1 -1
  118. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
  119. package/public/vendor/monaco/dist/editor.js +1 -29
  120. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +2 -2
  121. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  122. package/public/vendor/monaco/dist/html.worker.js +1 -1
  123. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
  124. package/public/vendor/monaco/dist/json.worker.js +1 -1
  125. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
  126. package/public/vendor/monaco/dist/locale/cs.js +324 -106
  127. package/public/vendor/monaco/dist/locale/de.js +336 -118
  128. package/public/vendor/monaco/dist/locale/es.js +329 -111
  129. package/public/vendor/monaco/dist/locale/fr.js +334 -116
  130. package/public/vendor/monaco/dist/locale/it.js +327 -109
  131. package/public/vendor/monaco/dist/locale/ja.js +329 -111
  132. package/public/vendor/monaco/dist/locale/ko.js +330 -112
  133. package/public/vendor/monaco/dist/locale/pl.js +329 -111
  134. package/public/vendor/monaco/dist/locale/pt-br.js +329 -111
  135. package/public/vendor/monaco/dist/locale/qps-ploc.js +330 -112
  136. package/public/vendor/monaco/dist/locale/ru.js +331 -113
  137. package/public/vendor/monaco/dist/locale/tr.js +329 -111
  138. package/public/vendor/monaco/dist/locale/zh-hans.js +331 -113
  139. package/public/vendor/monaco/dist/locale/zh-hant.js +331 -113
  140. package/public/vendor/monaco/dist/ts.worker.js +2 -2
  141. package/public/vendor/vendor.js +1 -1
  142. package/public/vendor/monaco/dist/7064e66c3890a12c47b4.ttf +0 -0
  143. /package/public/red/tours/{images → 3.1/images}/context-menu.png +0 -0
  144. /package/public/red/tours/{images → 3.1/images}/global-env-vars.png +0 -0
  145. /package/public/red/tours/{images → 3.1/images}/hiding-flows.png +0 -0
  146. /package/public/red/tours/{images → 3.1/images}/locking-flows.png +0 -0
  147. /package/public/red/tours/{images → 3.1/images}/mermaid.png +0 -0
  148. /package/public/red/tours/{images → 3.1/images}/node-help.png +0 -0
  149. /package/public/red/tours/{images → 3.1/images}/tab-changes.png +0 -0
@@ -0,0 +1,964 @@
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ /**
5
+ * The `assert` module provides a set of assertion functions for verifying
6
+ * invariants.
7
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/assert.js)
8
+ */
9
+ declare module 'assert' {
10
+ /**
11
+ * An alias of {@link ok}.
12
+ * @since v0.5.9
13
+ * @param value The input that is checked for being truthy.
14
+ */
15
+ function assert(value: unknown, message?: string | Error): asserts value;
16
+ namespace assert {
17
+ /**
18
+ * Indicates the failure of an assertion. All errors thrown by the `assert` module
19
+ * will be instances of the `AssertionError` class.
20
+ */
21
+ class AssertionError extends Error {
22
+ actual: unknown;
23
+ expected: unknown;
24
+ operator: string;
25
+ generatedMessage: boolean;
26
+ code: 'ERR_ASSERTION';
27
+ constructor(options?: {
28
+ /** If provided, the error message is set to this value. */
29
+ message?: string | undefined;
30
+ /** The `actual` property on the error instance. */
31
+ actual?: unknown | undefined;
32
+ /** The `expected` property on the error instance. */
33
+ expected?: unknown | undefined;
34
+ /** The `operator` property on the error instance. */
35
+ operator?: string | undefined;
36
+ /** If provided, the generated stack trace omits frames before this function. */
37
+ // tslint:disable-next-line:ban-types
38
+ stackStartFn?: Function | undefined;
39
+ });
40
+ }
41
+ /**
42
+ * This feature is currently experimental and behavior might still change.
43
+ * @since v14.2.0, v12.19.0
44
+ * @experimental
45
+ */
46
+ class CallTracker {
47
+ /**
48
+ * The wrapper function is expected to be called exactly `exact` times. If the
49
+ * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
50
+ * error.
51
+ *
52
+ * ```js
53
+ * import assert from 'assert';
54
+ *
55
+ * // Creates call tracker.
56
+ * const tracker = new assert.CallTracker();
57
+ *
58
+ * function func() {}
59
+ *
60
+ * // Returns a function that wraps func() that must be called exact times
61
+ * // before tracker.verify().
62
+ * const callsfunc = tracker.calls(func);
63
+ * ```
64
+ * @since v14.2.0, v12.19.0
65
+ * @param [fn='A no-op function']
66
+ * @param [exact=1]
67
+ * @return that wraps `fn`.
68
+ */
69
+ calls(exact?: number): () => void;
70
+ calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
71
+ /**
72
+ * Example:
73
+ *
74
+ * ```js
75
+ * import assert from 'node:assert';
76
+ *
77
+ * const tracker = new assert.CallTracker();
78
+ *
79
+ * function func() {}
80
+ * const callsfunc = tracker.calls(func);
81
+ * callsfunc(1, 2, 3);
82
+ *
83
+ * assert.deepStrictEqual(tracker.getCalls(callsfunc),
84
+ * [{ thisArg: this, arguments: [1, 2, 3 ] }]);
85
+ * ```
86
+ *
87
+ * @since v18.8.0, v16.18.0
88
+ * @params fn
89
+ * @returns An Array with the calls to a tracked function.
90
+ */
91
+ getCalls(fn: Function): CallTrackerCall[];
92
+ /**
93
+ * The arrays contains information about the expected and actual number of calls of
94
+ * the functions that have not been called the expected number of times.
95
+ *
96
+ * ```js
97
+ * import assert from 'assert';
98
+ *
99
+ * // Creates call tracker.
100
+ * const tracker = new assert.CallTracker();
101
+ *
102
+ * function func() {}
103
+ *
104
+ * function foo() {}
105
+ *
106
+ * // Returns a function that wraps func() that must be called exact times
107
+ * // before tracker.verify().
108
+ * const callsfunc = tracker.calls(func, 2);
109
+ *
110
+ * // Returns an array containing information on callsfunc()
111
+ * tracker.report();
112
+ * // [
113
+ * // {
114
+ * // message: 'Expected the func function to be executed 2 time(s) but was
115
+ * // executed 0 time(s).',
116
+ * // actual: 0,
117
+ * // expected: 2,
118
+ * // operator: 'func',
119
+ * // stack: stack trace
120
+ * // }
121
+ * // ]
122
+ * ```
123
+ * @since v14.2.0, v12.19.0
124
+ * @return of objects containing information about the wrapper functions returned by `calls`.
125
+ */
126
+ report(): CallTrackerReportInformation[];
127
+ /**
128
+ * Reset calls of the call tracker.
129
+ * If a tracked function is passed as an argument, the calls will be reset for it.
130
+ * If no arguments are passed, all tracked functions will be reset.
131
+ *
132
+ * ```js
133
+ * import assert from 'node:assert';
134
+ *
135
+ * const tracker = new assert.CallTracker();
136
+ *
137
+ * function func() {}
138
+ * const callsfunc = tracker.calls(func);
139
+ *
140
+ * callsfunc();
141
+ * // Tracker was called once
142
+ * tracker.getCalls(callsfunc).length === 1;
143
+ *
144
+ * tracker.reset(callsfunc);
145
+ * tracker.getCalls(callsfunc).length === 0;
146
+ * ```
147
+ *
148
+ * @since v18.8.0, v16.18.0
149
+ * @param fn a tracked function to reset.
150
+ */
151
+ reset(fn?: Function): void;
152
+ /**
153
+ * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that
154
+ * have not been called the expected number of times.
155
+ *
156
+ * ```js
157
+ * import assert from 'assert';
158
+ *
159
+ * // Creates call tracker.
160
+ * const tracker = new assert.CallTracker();
161
+ *
162
+ * function func() {}
163
+ *
164
+ * // Returns a function that wraps func() that must be called exact times
165
+ * // before tracker.verify().
166
+ * const callsfunc = tracker.calls(func, 2);
167
+ *
168
+ * callsfunc();
169
+ *
170
+ * // Will throw an error since callsfunc() was only called once.
171
+ * tracker.verify();
172
+ * ```
173
+ * @since v14.2.0, v12.19.0
174
+ */
175
+ verify(): void;
176
+ }
177
+ interface CallTrackerCall {
178
+ thisArg: object;
179
+ arguments: unknown[];
180
+ }
181
+ interface CallTrackerReportInformation {
182
+ message: string;
183
+ /** The actual number of times the function was called. */
184
+ actual: number;
185
+ /** The number of times the function was expected to be called. */
186
+ expected: number;
187
+ /** The name of the function that is wrapped. */
188
+ operator: string;
189
+ /** A stack trace of the function. */
190
+ stack: object;
191
+ }
192
+ type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error;
193
+ /**
194
+ * Throws an `AssertionError` with the provided error message or a default
195
+ * error message. If the `message` parameter is an instance of an `Error` then
196
+ * it will be thrown instead of the `AssertionError`.
197
+ *
198
+ * ```js
199
+ * import assert from 'assert/strict';
200
+ *
201
+ * assert.fail();
202
+ * // AssertionError [ERR_ASSERTION]: Failed
203
+ *
204
+ * assert.fail('boom');
205
+ * // AssertionError [ERR_ASSERTION]: boom
206
+ *
207
+ * assert.fail(new TypeError('need array'));
208
+ * // TypeError: need array
209
+ * ```
210
+ *
211
+ * Using `assert.fail()` with more than two arguments is possible but deprecated.
212
+ * See below for further details.
213
+ * @since v0.1.21
214
+ * @param [message='Failed']
215
+ */
216
+ function fail(message?: string | Error): never;
217
+ /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
218
+ function fail(
219
+ actual: unknown,
220
+ expected: unknown,
221
+ message?: string | Error,
222
+ operator?: string,
223
+ // tslint:disable-next-line:ban-types
224
+ stackStartFn?: Function
225
+ ): never;
226
+ /**
227
+ * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
228
+ *
229
+ * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default
230
+ * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
231
+ * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
232
+ *
233
+ * Be aware that in the `repl` the error message will be different to the one
234
+ * thrown in a file! See below for further details.
235
+ *
236
+ * ```js
237
+ * import assert from 'assert/strict';
238
+ *
239
+ * assert.ok(true);
240
+ * // OK
241
+ * assert.ok(1);
242
+ * // OK
243
+ *
244
+ * assert.ok();
245
+ * // AssertionError: No value argument passed to `assert.ok()`
246
+ *
247
+ * assert.ok(false, 'it\'s false');
248
+ * // AssertionError: it's false
249
+ *
250
+ * // In the repl:
251
+ * assert.ok(typeof 123 === 'string');
252
+ * // AssertionError: false == true
253
+ *
254
+ * // In a file (e.g. test.js):
255
+ * assert.ok(typeof 123 === 'string');
256
+ * // AssertionError: The expression evaluated to a falsy value:
257
+ * //
258
+ * // assert.ok(typeof 123 === 'string')
259
+ *
260
+ * assert.ok(false);
261
+ * // AssertionError: The expression evaluated to a falsy value:
262
+ * //
263
+ * // assert.ok(false)
264
+ *
265
+ * assert.ok(0);
266
+ * // AssertionError: The expression evaluated to a falsy value:
267
+ * //
268
+ * // assert.ok(0)
269
+ * ```
270
+ *
271
+ * ```js
272
+ * import assert from 'assert/strict';
273
+ *
274
+ * // Using `assert()` works the same:
275
+ * assert(0);
276
+ * // AssertionError: The expression evaluated to a falsy value:
277
+ * //
278
+ * // assert(0)
279
+ * ```
280
+ * @since v0.1.21
281
+ */
282
+ function ok(value: unknown, message?: string | Error): asserts value;
283
+ /**
284
+ * **Strict assertion mode**
285
+ *
286
+ * An alias of {@link strictEqual}.
287
+ *
288
+ * **Legacy assertion mode**
289
+ *
290
+ * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
291
+ *
292
+ * Tests shallow, coercive equality between the `actual` and `expected` parameters
293
+ * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
294
+ * and treated as being identical if both sides are `NaN`.
295
+ *
296
+ * ```js
297
+ * import assert from 'assert';
298
+ *
299
+ * assert.equal(1, 1);
300
+ * // OK, 1 == 1
301
+ * assert.equal(1, '1');
302
+ * // OK, 1 == '1'
303
+ * assert.equal(NaN, NaN);
304
+ * // OK
305
+ *
306
+ * assert.equal(1, 2);
307
+ * // AssertionError: 1 == 2
308
+ * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
309
+ * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
310
+ * ```
311
+ *
312
+ * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
313
+ * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
314
+ * @since v0.1.21
315
+ */
316
+ function equal(actual: unknown, expected: unknown, message?: string | Error): void;
317
+ /**
318
+ * **Strict assertion mode**
319
+ *
320
+ * An alias of {@link notStrictEqual}.
321
+ *
322
+ * **Legacy assertion mode**
323
+ *
324
+ * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
325
+ *
326
+ * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
327
+ * specially handled and treated as being identical if both sides are `NaN`.
328
+ *
329
+ * ```js
330
+ * import assert from 'assert';
331
+ *
332
+ * assert.notEqual(1, 2);
333
+ * // OK
334
+ *
335
+ * assert.notEqual(1, 1);
336
+ * // AssertionError: 1 != 1
337
+ *
338
+ * assert.notEqual(1, '1');
339
+ * // AssertionError: 1 != '1'
340
+ * ```
341
+ *
342
+ * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
343
+ * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
344
+ * @since v0.1.21
345
+ */
346
+ function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
347
+ /**
348
+ * **Strict assertion mode**
349
+ *
350
+ * An alias of {@link deepStrictEqual}.
351
+ *
352
+ * **Legacy assertion mode**
353
+ *
354
+ * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
355
+ *
356
+ * Tests for deep equality between the `actual` and `expected` parameters. Consider
357
+ * using {@link deepStrictEqual} instead. {@link deepEqual} can have
358
+ * surprising results.
359
+ *
360
+ * _Deep equality_ means that the enumerable "own" properties of child objects
361
+ * are also recursively evaluated by the following rules.
362
+ * @since v0.1.21
363
+ */
364
+ function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
365
+ /**
366
+ * **Strict assertion mode**
367
+ *
368
+ * An alias of {@link notDeepStrictEqual}.
369
+ *
370
+ * **Legacy assertion mode**
371
+ *
372
+ * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
373
+ *
374
+ * Tests for any deep inequality. Opposite of {@link deepEqual}.
375
+ *
376
+ * ```js
377
+ * import assert from 'assert';
378
+ *
379
+ * const obj1 = {
380
+ * a: {
381
+ * b: 1
382
+ * }
383
+ * };
384
+ * const obj2 = {
385
+ * a: {
386
+ * b: 2
387
+ * }
388
+ * };
389
+ * const obj3 = {
390
+ * a: {
391
+ * b: 1
392
+ * }
393
+ * };
394
+ * const obj4 = Object.create(obj1);
395
+ *
396
+ * assert.notDeepEqual(obj1, obj1);
397
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
398
+ *
399
+ * assert.notDeepEqual(obj1, obj2);
400
+ * // OK
401
+ *
402
+ * assert.notDeepEqual(obj1, obj3);
403
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
404
+ *
405
+ * assert.notDeepEqual(obj1, obj4);
406
+ * // OK
407
+ * ```
408
+ *
409
+ * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
410
+ * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
411
+ * instead of the `AssertionError`.
412
+ * @since v0.1.21
413
+ */
414
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
415
+ /**
416
+ * Tests strict equality between the `actual` and `expected` parameters as
417
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
418
+ *
419
+ * ```js
420
+ * import assert from 'assert/strict';
421
+ *
422
+ * assert.strictEqual(1, 2);
423
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
424
+ * //
425
+ * // 1 !== 2
426
+ *
427
+ * assert.strictEqual(1, 1);
428
+ * // OK
429
+ *
430
+ * assert.strictEqual('Hello foobar', 'Hello World!');
431
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
432
+ * // + actual - expected
433
+ * //
434
+ * // + 'Hello foobar'
435
+ * // - 'Hello World!'
436
+ * // ^
437
+ *
438
+ * const apples = 1;
439
+ * const oranges = 2;
440
+ * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
441
+ * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
442
+ *
443
+ * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
444
+ * // TypeError: Inputs are not identical
445
+ * ```
446
+ *
447
+ * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
448
+ * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
449
+ * instead of the `AssertionError`.
450
+ * @since v0.1.21
451
+ */
452
+ function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
453
+ /**
454
+ * Tests strict inequality between the `actual` and `expected` parameters as
455
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
456
+ *
457
+ * ```js
458
+ * import assert from 'assert/strict';
459
+ *
460
+ * assert.notStrictEqual(1, 2);
461
+ * // OK
462
+ *
463
+ * assert.notStrictEqual(1, 1);
464
+ * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
465
+ * //
466
+ * // 1
467
+ *
468
+ * assert.notStrictEqual(1, '1');
469
+ * // OK
470
+ * ```
471
+ *
472
+ * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
473
+ * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
474
+ * instead of the `AssertionError`.
475
+ * @since v0.1.21
476
+ */
477
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
478
+ /**
479
+ * Tests for deep equality between the `actual` and `expected` parameters.
480
+ * "Deep" equality means that the enumerable "own" properties of child objects
481
+ * are recursively evaluated also by the following rules.
482
+ * @since v1.2.0
483
+ */
484
+ function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
485
+ /**
486
+ * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
487
+ *
488
+ * ```js
489
+ * import assert from 'assert/strict';
490
+ *
491
+ * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
492
+ * // OK
493
+ * ```
494
+ *
495
+ * If the values are deeply and strictly equal, an `AssertionError` is thrown
496
+ * with a `message` property set equal to the value of the `message` parameter. If
497
+ * the `message` parameter is undefined, a default error message is assigned. If
498
+ * the `message` parameter is an instance of an `Error` then it will be thrown
499
+ * instead of the `AssertionError`.
500
+ * @since v1.2.0
501
+ */
502
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
503
+ /**
504
+ * Expects the function `fn` to throw an error.
505
+ *
506
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
507
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
508
+ * a validation object where each property will be tested for strict deep equality,
509
+ * or an instance of error where each property will be tested for strict deep
510
+ * equality including the non-enumerable `message` and `name` properties. When
511
+ * using an object, it is also possible to use a regular expression, when
512
+ * validating against a string property. See below for examples.
513
+ *
514
+ * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation
515
+ * fails.
516
+ *
517
+ * Custom validation object/error instance:
518
+ *
519
+ * ```js
520
+ * import assert from 'assert/strict';
521
+ *
522
+ * const err = new TypeError('Wrong value');
523
+ * err.code = 404;
524
+ * err.foo = 'bar';
525
+ * err.info = {
526
+ * nested: true,
527
+ * baz: 'text'
528
+ * };
529
+ * err.reg = /abc/i;
530
+ *
531
+ * assert.throws(
532
+ * () => {
533
+ * throw err;
534
+ * },
535
+ * {
536
+ * name: 'TypeError',
537
+ * message: 'Wrong value',
538
+ * info: {
539
+ * nested: true,
540
+ * baz: 'text'
541
+ * }
542
+ * // Only properties on the validation object will be tested for.
543
+ * // Using nested objects requires all properties to be present. Otherwise
544
+ * // the validation is going to fail.
545
+ * }
546
+ * );
547
+ *
548
+ * // Using regular expressions to validate error properties:
549
+ * throws(
550
+ * () => {
551
+ * throw err;
552
+ * },
553
+ * {
554
+ * // The `name` and `message` properties are strings and using regular
555
+ * // expressions on those will match against the string. If they fail, an
556
+ * // error is thrown.
557
+ * name: /^TypeError$/,
558
+ * message: /Wrong/,
559
+ * foo: 'bar',
560
+ * info: {
561
+ * nested: true,
562
+ * // It is not possible to use regular expressions for nested properties!
563
+ * baz: 'text'
564
+ * },
565
+ * // The `reg` property contains a regular expression and only if the
566
+ * // validation object contains an identical regular expression, it is going
567
+ * // to pass.
568
+ * reg: /abc/i
569
+ * }
570
+ * );
571
+ *
572
+ * // Fails due to the different `message` and `name` properties:
573
+ * throws(
574
+ * () => {
575
+ * const otherErr = new Error('Not found');
576
+ * // Copy all enumerable properties from `err` to `otherErr`.
577
+ * for (const [key, value] of Object.entries(err)) {
578
+ * otherErr[key] = value;
579
+ * }
580
+ * throw otherErr;
581
+ * },
582
+ * // The error's `message` and `name` properties will also be checked when using
583
+ * // an error as validation object.
584
+ * err
585
+ * );
586
+ * ```
587
+ *
588
+ * Validate instanceof using constructor:
589
+ *
590
+ * ```js
591
+ * import assert from 'assert/strict';
592
+ *
593
+ * assert.throws(
594
+ * () => {
595
+ * throw new Error('Wrong value');
596
+ * },
597
+ * Error
598
+ * );
599
+ * ```
600
+ *
601
+ * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
602
+ *
603
+ * Using a regular expression runs `.toString` on the error object, and will
604
+ * therefore also include the error name.
605
+ *
606
+ * ```js
607
+ * import assert from 'assert/strict';
608
+ *
609
+ * assert.throws(
610
+ * () => {
611
+ * throw new Error('Wrong value');
612
+ * },
613
+ * /^Error: Wrong value$/
614
+ * );
615
+ * ```
616
+ *
617
+ * Custom error validation:
618
+ *
619
+ * The function must return `true` to indicate all internal validations passed.
620
+ * It will otherwise fail with an `AssertionError`.
621
+ *
622
+ * ```js
623
+ * import assert from 'assert/strict';
624
+ *
625
+ * assert.throws(
626
+ * () => {
627
+ * throw new Error('Wrong value');
628
+ * },
629
+ * (err) => {
630
+ * assert(err instanceof Error);
631
+ * assert(/value/.test(err));
632
+ * // Avoid returning anything from validation functions besides `true`.
633
+ * // Otherwise, it's not clear what part of the validation failed. Instead,
634
+ * // throw an error about the specific validation that failed (as done in this
635
+ * // example) and add as much helpful debugging information to that error as
636
+ * // possible.
637
+ * return true;
638
+ * },
639
+ * 'unexpected error'
640
+ * );
641
+ * ```
642
+ *
643
+ * `error` cannot be a string. If a string is provided as the second
644
+ * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
645
+ * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
646
+ * a string as the second argument gets considered:
647
+ *
648
+ * ```js
649
+ * import assert from 'assert/strict';
650
+ *
651
+ * function throwingFirst() {
652
+ * throw new Error('First');
653
+ * }
654
+ *
655
+ * function throwingSecond() {
656
+ * throw new Error('Second');
657
+ * }
658
+ *
659
+ * function notThrowing() {}
660
+ *
661
+ * // The second argument is a string and the input function threw an Error.
662
+ * // The first case will not throw as it does not match for the error message
663
+ * // thrown by the input function!
664
+ * assert.throws(throwingFirst, 'Second');
665
+ * // In the next example the message has no benefit over the message from the
666
+ * // error and since it is not clear if the user intended to actually match
667
+ * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
668
+ * assert.throws(throwingSecond, 'Second');
669
+ * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
670
+ *
671
+ * // The string is only used (as message) in case the function does not throw:
672
+ * assert.throws(notThrowing, 'Second');
673
+ * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
674
+ *
675
+ * // If it was intended to match for the error message do this instead:
676
+ * // It does not throw because the error messages match.
677
+ * assert.throws(throwingSecond, /Second$/);
678
+ *
679
+ * // If the error message does not match, an AssertionError is thrown.
680
+ * assert.throws(throwingFirst, /Second$/);
681
+ * // AssertionError [ERR_ASSERTION]
682
+ * ```
683
+ *
684
+ * Due to the confusing error-prone notation, avoid a string as the second
685
+ * argument.
686
+ * @since v0.1.21
687
+ */
688
+ function throws(block: () => unknown, message?: string | Error): void;
689
+ function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
690
+ /**
691
+ * Asserts that the function `fn` does not throw an error.
692
+ *
693
+ * Using `assert.doesNotThrow()` is actually not useful because there
694
+ * is no benefit in catching an error and then rethrowing it. Instead, consider
695
+ * adding a comment next to the specific code path that should not throw and keep
696
+ * error messages as expressive as possible.
697
+ *
698
+ * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function.
699
+ *
700
+ * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a
701
+ * different type, or if the `error` parameter is undefined, the error is
702
+ * propagated back to the caller.
703
+ *
704
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
705
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
706
+ * function. See {@link throws} for more details.
707
+ *
708
+ * The following, for instance, will throw the `TypeError` because there is no
709
+ * matching error type in the assertion:
710
+ *
711
+ * ```js
712
+ * import assert from 'assert/strict';
713
+ *
714
+ * assert.doesNotThrow(
715
+ * () => {
716
+ * throw new TypeError('Wrong value');
717
+ * },
718
+ * SyntaxError
719
+ * );
720
+ * ```
721
+ *
722
+ * However, the following will result in an `AssertionError` with the message
723
+ * 'Got unwanted exception...':
724
+ *
725
+ * ```js
726
+ * import assert from 'assert/strict';
727
+ *
728
+ * assert.doesNotThrow(
729
+ * () => {
730
+ * throw new TypeError('Wrong value');
731
+ * },
732
+ * TypeError
733
+ * );
734
+ * ```
735
+ *
736
+ * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
737
+ *
738
+ * ```js
739
+ * import assert from 'assert/strict';
740
+ *
741
+ * assert.doesNotThrow(
742
+ * () => {
743
+ * throw new TypeError('Wrong value');
744
+ * },
745
+ * /Wrong value/,
746
+ * 'Whoops'
747
+ * );
748
+ * // Throws: AssertionError: Got unwanted exception: Whoops
749
+ * ```
750
+ * @since v0.1.21
751
+ */
752
+ function doesNotThrow(block: () => unknown, message?: string | Error): void;
753
+ function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
754
+ /**
755
+ * Throws `value` if `value` is not `undefined` or `null`. This is useful when
756
+ * testing the `error` argument in callbacks. The stack trace contains all frames
757
+ * from the error passed to `ifError()` including the potential new frames for`ifError()` itself.
758
+ *
759
+ * ```js
760
+ * import assert from 'assert/strict';
761
+ *
762
+ * assert.ifError(null);
763
+ * // OK
764
+ * assert.ifError(0);
765
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
766
+ * assert.ifError('error');
767
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
768
+ * assert.ifError(new Error());
769
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
770
+ *
771
+ * // Create some random error frames.
772
+ * let err;
773
+ * (function errorFrame() {
774
+ * err = new Error('test error');
775
+ * })();
776
+ *
777
+ * (function ifErrorFrame() {
778
+ * assert.ifError(err);
779
+ * })();
780
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
781
+ * // at ifErrorFrame
782
+ * // at errorFrame
783
+ * ```
784
+ * @since v0.1.97
785
+ */
786
+ function ifError(value: unknown): asserts value is null | undefined;
787
+ /**
788
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
789
+ * calls the function and awaits the returned promise to complete. It will then
790
+ * check that the promise is rejected.
791
+ *
792
+ * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the
793
+ * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error
794
+ * handler is skipped.
795
+ *
796
+ * Besides the async nature to await the completion behaves identically to {@link throws}.
797
+ *
798
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
799
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
800
+ * an object where each property will be tested for, or an instance of error where
801
+ * each property will be tested for including the non-enumerable `message` and`name` properties.
802
+ *
803
+ * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
804
+ *
805
+ * ```js
806
+ * import assert from 'assert/strict';
807
+ *
808
+ * await assert.rejects(
809
+ * async () => {
810
+ * throw new TypeError('Wrong value');
811
+ * },
812
+ * {
813
+ * name: 'TypeError',
814
+ * message: 'Wrong value'
815
+ * }
816
+ * );
817
+ * ```
818
+ *
819
+ * ```js
820
+ * import assert from 'assert/strict';
821
+ *
822
+ * await assert.rejects(
823
+ * async () => {
824
+ * throw new TypeError('Wrong value');
825
+ * },
826
+ * (err) => {
827
+ * assert.strictEqual(err.name, 'TypeError');
828
+ * assert.strictEqual(err.message, 'Wrong value');
829
+ * return true;
830
+ * }
831
+ * );
832
+ * ```
833
+ *
834
+ * ```js
835
+ * import assert from 'assert/strict';
836
+ *
837
+ * assert.rejects(
838
+ * Promise.reject(new Error('Wrong value')),
839
+ * Error
840
+ * ).then(() => {
841
+ * // ...
842
+ * });
843
+ * ```
844
+ *
845
+ * `error` cannot be a string. If a string is provided as the second
846
+ * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the
847
+ * example in {@link throws} carefully if using a string as the second
848
+ * argument gets considered.
849
+ * @since v10.0.0
850
+ */
851
+ function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
852
+ function rejects(block: (() => Promise<unknown>) | Promise<unknown>, error: AssertPredicate, message?: string | Error): Promise<void>;
853
+ /**
854
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
855
+ * calls the function and awaits the returned promise to complete. It will then
856
+ * check that the promise is not rejected.
857
+ *
858
+ * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If
859
+ * the function does not return a promise, `assert.doesNotReject()` will return a
860
+ * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases
861
+ * the error handler is skipped.
862
+ *
863
+ * Using `assert.doesNotReject()` is actually not useful because there is little
864
+ * benefit in catching a rejection and then rejecting it again. Instead, consider
865
+ * adding a comment next to the specific code path that should not reject and keep
866
+ * error messages as expressive as possible.
867
+ *
868
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
869
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
870
+ * function. See {@link throws} for more details.
871
+ *
872
+ * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
873
+ *
874
+ * ```js
875
+ * import assert from 'assert/strict';
876
+ *
877
+ * await assert.doesNotReject(
878
+ * async () => {
879
+ * throw new TypeError('Wrong value');
880
+ * },
881
+ * SyntaxError
882
+ * );
883
+ * ```
884
+ *
885
+ * ```js
886
+ * import assert from 'assert/strict';
887
+ *
888
+ * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
889
+ * .then(() => {
890
+ * // ...
891
+ * });
892
+ * ```
893
+ * @since v10.0.0
894
+ */
895
+ function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
896
+ function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, error: AssertPredicate, message?: string | Error): Promise<void>;
897
+ /**
898
+ * Expects the `string` input to match the regular expression.
899
+ *
900
+ * ```js
901
+ * import assert from 'assert/strict';
902
+ *
903
+ * assert.match('I will fail', /pass/);
904
+ * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
905
+ *
906
+ * assert.match(123, /pass/);
907
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
908
+ *
909
+ * assert.match('I will pass', /pass/);
910
+ * // OK
911
+ * ```
912
+ *
913
+ * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
914
+ * to the value of the `message` parameter. If the `message` parameter is
915
+ * undefined, a default error message is assigned. If the `message` parameter is an
916
+ * instance of an `Error` then it will be thrown instead of the `AssertionError`.
917
+ * @since v13.6.0, v12.16.0
918
+ */
919
+ function match(value: string, regExp: RegExp, message?: string | Error): void;
920
+ /**
921
+ * Expects the `string` input not to match the regular expression.
922
+ *
923
+ * ```js
924
+ * import assert from 'assert/strict';
925
+ *
926
+ * assert.doesNotMatch('I will fail', /fail/);
927
+ * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
928
+ *
929
+ * assert.doesNotMatch(123, /pass/);
930
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
931
+ *
932
+ * assert.doesNotMatch('I will pass', /different/);
933
+ * // OK
934
+ * ```
935
+ *
936
+ * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
937
+ * to the value of the `message` parameter. If the `message` parameter is
938
+ * undefined, a default error message is assigned. If the `message` parameter is an
939
+ * instance of an `Error` then it will be thrown instead of the `AssertionError`.
940
+ * @since v13.6.0, v12.16.0
941
+ */
942
+ function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
943
+ const strict: Omit<typeof assert, 'equal' | 'notEqual' | 'deepEqual' | 'notDeepEqual' | 'ok' | 'strictEqual' | 'deepStrictEqual' | 'ifError' | 'strict'> & {
944
+ (value: unknown, message?: string | Error): asserts value;
945
+ equal: typeof strictEqual;
946
+ notEqual: typeof notStrictEqual;
947
+ deepEqual: typeof deepStrictEqual;
948
+ notDeepEqual: typeof notDeepStrictEqual;
949
+ // Mapped types and assertion functions are incompatible?
950
+ // TS2775: Assertions require every name in the call target
951
+ // to be declared with an explicit type annotation.
952
+ ok: typeof ok;
953
+ strictEqual: typeof strictEqual;
954
+ deepStrictEqual: typeof deepStrictEqual;
955
+ ifError: typeof ifError;
956
+ strict: typeof strict;
957
+ };
958
+ }
959
+ export = assert;
960
+ }
961
+ declare module 'node:assert' {
962
+ import assert = require('assert');
963
+ export = assert;
964
+ }