@types/node 18.7.4 → 18.7.5

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 (3) hide show
  1. node/README.md +1 -1
  2. node/fs/promises.d.ts +20 -15
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 15 Aug 2022 10:32:01 GMT
11
+ * Last updated: Mon, 15 Aug 2022 18:32:42 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/fs/promises.d.ts CHANGED
@@ -13,29 +13,31 @@ declare module 'fs/promises' {
13
13
  import { Stream } from 'node:stream';
14
14
  import { ReadableStream } from 'node:stream/web';
15
15
  import {
16
- Stats,
17
16
  BigIntStats,
18
- StatOptions,
19
- WriteVResult,
20
- ReadVResult,
21
- PathLike,
22
- RmDirOptions,
23
- RmOptions,
24
- MakeDirectoryOptions,
25
- Dirent,
26
- OpenDirOptions,
17
+ BufferEncodingOption,
18
+ constants as fsConstants,
19
+ CopyOptions,
27
20
  Dir,
21
+ Dirent,
22
+ MakeDirectoryOptions,
23
+ Mode,
28
24
  ObjectEncodingOptions,
29
- BufferEncodingOption,
25
+ OpenDirOptions,
30
26
  OpenMode,
31
- Mode,
32
- WatchOptions,
33
- WatchEventType,
34
- CopyOptions,
27
+ PathLike,
35
28
  ReadStream,
29
+ ReadVResult,
30
+ RmDirOptions,
31
+ RmOptions,
32
+ StatOptions,
33
+ Stats,
36
34
  TimeLike,
35
+ WatchEventType,
36
+ WatchOptions,
37
37
  WriteStream,
38
+ WriteVResult,
38
39
  } from 'node:fs';
40
+
39
41
  interface FileChangeInfo<T extends string | Buffer> {
40
42
  eventType: WatchEventType;
41
43
  filename: T;
@@ -427,6 +429,9 @@ declare module 'fs/promises' {
427
429
  */
428
430
  close(): Promise<void>;
429
431
  }
432
+
433
+ const constants: typeof fsConstants;
434
+
430
435
  /**
431
436
  * Tests a user's permissions for the file or directory specified by `path`.
432
437
  * The `mode` argument is an optional integer that specifies the accessibility
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.4",
3
+ "version": "18.7.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "b8180530e67efb3e6400cf53960bd6eaa9ba0a0b1aed842028c45354ea07124d",
223
+ "typesPublisherContentHash": "b3d2ce548d64952af2585c97148879dfa054b7a7ea087a095c93ddd158dbb37b",
224
224
  "typeScriptVersion": "4.0"
225
225
  }