@types/node 18.19.22 → 18.19.23

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 (56) hide show
  1. node v18.19/README.md +1 -1
  2. node v18.19/package.json +3 -10
  3. node v18.19/ts4.8/assert/strict.d.ts +0 -8
  4. node v18.19/ts4.8/assert.d.ts +0 -985
  5. node v18.19/ts4.8/async_hooks.d.ts +0 -522
  6. node v18.19/ts4.8/buffer.d.ts +0 -2353
  7. node v18.19/ts4.8/child_process.d.ts +0 -1544
  8. node v18.19/ts4.8/cluster.d.ts +0 -432
  9. node v18.19/ts4.8/console.d.ts +0 -412
  10. node v18.19/ts4.8/constants.d.ts +0 -19
  11. node v18.19/ts4.8/crypto.d.ts +0 -4457
  12. node v18.19/ts4.8/dgram.d.ts +0 -596
  13. node v18.19/ts4.8/diagnostics_channel.d.ts +0 -546
  14. node v18.19/ts4.8/dns/promises.d.ts +0 -381
  15. node v18.19/ts4.8/dns.d.ts +0 -809
  16. node v18.19/ts4.8/dom-events.d.ts +0 -122
  17. node v18.19/ts4.8/domain.d.ts +0 -170
  18. node v18.19/ts4.8/events.d.ts +0 -819
  19. node v18.19/ts4.8/fs/promises.d.ts +0 -1205
  20. node v18.19/ts4.8/fs.d.ts +0 -4231
  21. node v18.19/ts4.8/globals.d.ts +0 -377
  22. node v18.19/ts4.8/globals.global.d.ts +0 -1
  23. node v18.19/ts4.8/http.d.ts +0 -1803
  24. node v18.19/ts4.8/http2.d.ts +0 -2386
  25. node v18.19/ts4.8/https.d.ts +0 -544
  26. node v18.19/ts4.8/index.d.ts +0 -88
  27. node v18.19/ts4.8/inspector.d.ts +0 -2739
  28. node v18.19/ts4.8/module.d.ts +0 -298
  29. node v18.19/ts4.8/net.d.ts +0 -918
  30. node v18.19/ts4.8/os.d.ts +0 -473
  31. node v18.19/ts4.8/path.d.ts +0 -191
  32. node v18.19/ts4.8/perf_hooks.d.ts +0 -626
  33. node v18.19/ts4.8/process.d.ts +0 -1548
  34. node v18.19/ts4.8/punycode.d.ts +0 -117
  35. node v18.19/ts4.8/querystring.d.ts +0 -141
  36. node v18.19/ts4.8/readline/promises.d.ts +0 -143
  37. node v18.19/ts4.8/readline.d.ts +0 -666
  38. node v18.19/ts4.8/repl.d.ts +0 -430
  39. node v18.19/ts4.8/stream/consumers.d.ts +0 -12
  40. node v18.19/ts4.8/stream/promises.d.ts +0 -83
  41. node v18.19/ts4.8/stream/web.d.ts +0 -352
  42. node v18.19/ts4.8/stream.d.ts +0 -1731
  43. node v18.19/ts4.8/string_decoder.d.ts +0 -67
  44. node v18.19/ts4.8/test.d.ts +0 -1113
  45. node v18.19/ts4.8/timers/promises.d.ts +0 -93
  46. node v18.19/ts4.8/timers.d.ts +0 -126
  47. node v18.19/ts4.8/tls.d.ts +0 -1203
  48. node v18.19/ts4.8/trace_events.d.ts +0 -171
  49. node v18.19/ts4.8/tty.d.ts +0 -206
  50. node v18.19/ts4.8/url.d.ts +0 -954
  51. node v18.19/ts4.8/util.d.ts +0 -2075
  52. node v18.19/ts4.8/v8.d.ts +0 -753
  53. node v18.19/ts4.8/vm.d.ts +0 -667
  54. node v18.19/ts4.8/wasi.d.ts +0 -158
  55. node v18.19/ts4.8/worker_threads.d.ts +0 -692
  56. node v18.19/ts4.8/zlib.d.ts +0 -517
@@ -1,67 +0,0 @@
1
- /**
2
- * The `node:string_decoder` module provides an API for decoding `Buffer` objects
3
- * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16
4
- * characters. It can be accessed using:
5
- *
6
- * ```js
7
- * const { StringDecoder } = require('node:string_decoder');
8
- * ```
9
- *
10
- * The following example shows the basic use of the `StringDecoder` class.
11
- *
12
- * ```js
13
- * const { StringDecoder } = require('node:string_decoder');
14
- * const decoder = new StringDecoder('utf8');
15
- *
16
- * const cent = Buffer.from([0xC2, 0xA2]);
17
- * console.log(decoder.write(cent)); // Prints: ¢
18
- *
19
- * const euro = Buffer.from([0xE2, 0x82, 0xAC]);
20
- * console.log(decoder.write(euro)); // Prints: €
21
- * ```
22
- *
23
- * When a `Buffer` instance is written to the `StringDecoder` instance, an
24
- * internal buffer is used to ensure that the decoded string does not contain
25
- * any incomplete multibyte characters. These are held in the buffer until the
26
- * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
27
- *
28
- * In the following example, the three UTF-8 encoded bytes of the European Euro
29
- * symbol (`€`) are written over three separate operations:
30
- *
31
- * ```js
32
- * const { StringDecoder } = require('node:string_decoder');
33
- * const decoder = new StringDecoder('utf8');
34
- *
35
- * decoder.write(Buffer.from([0xE2]));
36
- * decoder.write(Buffer.from([0x82]));
37
- * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
38
- * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v18.19.0/lib/string_decoder.js)
40
- */
41
- declare module "string_decoder" {
42
- class StringDecoder {
43
- constructor(encoding?: BufferEncoding);
44
- /**
45
- * Returns a decoded string, ensuring that any incomplete multibyte characters at
46
- * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
47
- * returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`.
48
- * @since v0.1.99
49
- * @param buffer The bytes to decode.
50
- */
51
- write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
- /**
53
- * Returns any remaining input stored in the internal buffer as a string. Bytes
54
- * representing incomplete UTF-8 and UTF-16 characters will be replaced with
55
- * substitution characters appropriate for the character encoding.
56
- *
57
- * If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input.
58
- * After `end()` is called, the `stringDecoder` object can be reused for new input.
59
- * @since v0.9.3
60
- * @param buffer The bytes to decode.
61
- */
62
- end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
- }
64
- }
65
- declare module "node:string_decoder" {
66
- export * from "string_decoder";
67
- }