@types/node 20.11.25 → 20.11.27

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 (57) hide show
  1. node/README.md +1 -1
  2. node/crypto.d.ts +1 -1
  3. node/package.json +3 -10
  4. node/ts4.8/assert/strict.d.ts +0 -8
  5. node/ts4.8/assert.d.ts +0 -996
  6. node/ts4.8/async_hooks.d.ts +0 -539
  7. node/ts4.8/buffer.d.ts +0 -2363
  8. node/ts4.8/child_process.d.ts +0 -1540
  9. node/ts4.8/cluster.d.ts +0 -432
  10. node/ts4.8/console.d.ts +0 -415
  11. node/ts4.8/constants.d.ts +0 -19
  12. node/ts4.8/crypto.d.ts +0 -4487
  13. node/ts4.8/dgram.d.ts +0 -596
  14. node/ts4.8/diagnostics_channel.d.ts +0 -545
  15. node/ts4.8/dns/promises.d.ts +0 -425
  16. node/ts4.8/dns.d.ts +0 -809
  17. node/ts4.8/dom-events.d.ts +0 -122
  18. node/ts4.8/domain.d.ts +0 -170
  19. node/ts4.8/events.d.ts +0 -896
  20. node/ts4.8/fs/promises.d.ts +0 -1239
  21. node/ts4.8/fs.d.ts +0 -4311
  22. node/ts4.8/globals.d.ts +0 -411
  23. node/ts4.8/globals.global.d.ts +0 -1
  24. node/ts4.8/http.d.ts +0 -1889
  25. node/ts4.8/http2.d.ts +0 -2382
  26. node/ts4.8/https.d.ts +0 -550
  27. node/ts4.8/index.d.ts +0 -88
  28. node/ts4.8/inspector.d.ts +0 -2747
  29. node/ts4.8/module.d.ts +0 -315
  30. node/ts4.8/net.d.ts +0 -954
  31. node/ts4.8/os.d.ts +0 -478
  32. node/ts4.8/path.d.ts +0 -191
  33. node/ts4.8/perf_hooks.d.ts +0 -645
  34. node/ts4.8/process.d.ts +0 -1561
  35. node/ts4.8/punycode.d.ts +0 -117
  36. node/ts4.8/querystring.d.ts +0 -141
  37. node/ts4.8/readline/promises.d.ts +0 -150
  38. node/ts4.8/readline.d.ts +0 -539
  39. node/ts4.8/repl.d.ts +0 -430
  40. node/ts4.8/stream/consumers.d.ts +0 -12
  41. node/ts4.8/stream/promises.d.ts +0 -83
  42. node/ts4.8/stream/web.d.ts +0 -366
  43. node/ts4.8/stream.d.ts +0 -1701
  44. node/ts4.8/string_decoder.d.ts +0 -67
  45. node/ts4.8/test.d.ts +0 -1465
  46. node/ts4.8/timers/promises.d.ts +0 -93
  47. node/ts4.8/timers.d.ts +0 -240
  48. node/ts4.8/tls.d.ts +0 -1210
  49. node/ts4.8/trace_events.d.ts +0 -182
  50. node/ts4.8/tty.d.ts +0 -208
  51. node/ts4.8/url.d.ts +0 -944
  52. node/ts4.8/util.d.ts +0 -2183
  53. node/ts4.8/v8.d.ts +0 -764
  54. node/ts4.8/vm.d.ts +0 -903
  55. node/ts4.8/wasi.d.ts +0 -179
  56. node/ts4.8/worker_threads.d.ts +0 -691
  57. node/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/v20.2.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
- }