@types/node 18.7.0 → 18.7.1
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.
- node/README.md +1 -1
- node/fs/promises.d.ts +4 -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: Wed, 10 Aug 2022
|
|
11
|
+
* Last updated: Wed, 10 Aug 2022 20:02:19 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
|
@@ -33,6 +33,7 @@ declare module 'fs/promises' {
|
|
|
33
33
|
WatchEventType,
|
|
34
34
|
CopyOptions,
|
|
35
35
|
ReadStream,
|
|
36
|
+
TimeLike,
|
|
36
37
|
WriteStream,
|
|
37
38
|
} from 'node:fs';
|
|
38
39
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
@@ -329,7 +330,7 @@ declare module 'fs/promises' {
|
|
|
329
330
|
* Change the file system timestamps of the object referenced by the `FileHandle` then resolves the promise with no arguments upon success.
|
|
330
331
|
* @since v10.0.0
|
|
331
332
|
*/
|
|
332
|
-
utimes(atime:
|
|
333
|
+
utimes(atime: TimeLike, mtime: TimeLike): Promise<void>;
|
|
333
334
|
/**
|
|
334
335
|
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
|
|
335
336
|
* [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface) or
|
|
@@ -762,7 +763,7 @@ declare module 'fs/promises' {
|
|
|
762
763
|
* @since v14.5.0, v12.19.0
|
|
763
764
|
* @return Fulfills with `undefined` upon success.
|
|
764
765
|
*/
|
|
765
|
-
function lutimes(path: PathLike, atime:
|
|
766
|
+
function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
|
|
766
767
|
/**
|
|
767
768
|
* Changes the ownership of a file.
|
|
768
769
|
* @since v10.0.0
|
|
@@ -780,7 +781,7 @@ declare module 'fs/promises' {
|
|
|
780
781
|
* @since v10.0.0
|
|
781
782
|
* @return Fulfills with `undefined` upon success.
|
|
782
783
|
*/
|
|
783
|
-
function utimes(path: PathLike, atime:
|
|
784
|
+
function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
|
|
784
785
|
/**
|
|
785
786
|
* Determines the actual location of `path` using the same semantics as the`fs.realpath.native()` function.
|
|
786
787
|
*
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.7.
|
|
3
|
+
"version": "18.7.1",
|
|
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": "
|
|
223
|
+
"typesPublisherContentHash": "dabf6406f99a6dad52b569d7fc0180c6fdcb855b56d14b54fb274ff38f94d24f",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|