@types/node 14.18.22 → 14.18.25
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 v14.18/README.md +1 -1
- node v14.18/fs/promises.d.ts +15 -12
- node v14.18/inspector.d.ts +1 -1
- node v14.18/package.json +2 -2
- node v14.18/path.d.ts +30 -19
node v14.18/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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 21 Aug 2022 20:02:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v14.18/fs/promises.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
declare module 'fs/promises' {
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
BaseEncodingOptions,
|
|
4
4
|
BigIntStats,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
PathLike,
|
|
9
|
-
RmDirOptions,
|
|
10
|
-
RmOptions,
|
|
11
|
-
MakeDirectoryOptions,
|
|
5
|
+
BufferEncodingOption,
|
|
6
|
+
constants as fsConstants,
|
|
7
|
+
Dir,
|
|
12
8
|
Dirent,
|
|
9
|
+
MakeDirectoryOptions,
|
|
10
|
+
Mode,
|
|
13
11
|
OpenDirOptions,
|
|
14
|
-
Dir,
|
|
15
|
-
BaseEncodingOptions,
|
|
16
|
-
BufferEncodingOption,
|
|
17
12
|
OpenMode,
|
|
18
|
-
|
|
13
|
+
PathLike,
|
|
14
|
+
ReadVResult,
|
|
15
|
+
RmDirOptions,
|
|
16
|
+
RmOptions,
|
|
17
|
+
StatOptions,
|
|
18
|
+
Stats,
|
|
19
|
+
WriteVResult,
|
|
19
20
|
} from 'fs';
|
|
20
21
|
|
|
21
22
|
interface FileHandle {
|
|
@@ -161,6 +162,8 @@ declare module 'fs/promises' {
|
|
|
161
162
|
close(): Promise<void>;
|
|
162
163
|
}
|
|
163
164
|
|
|
165
|
+
const constants: typeof fsConstants;
|
|
166
|
+
|
|
164
167
|
/**
|
|
165
168
|
* Asynchronously tests a user's permissions for the file specified by path.
|
|
166
169
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
node v14.18/inspector.d.ts
CHANGED
node v14.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.25",
|
|
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": "5e2f8541a94e301e94394c3cb1bf886926899dd33953027a70b08178ad89af9a",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|
node v14.18/path.d.ts
CHANGED
|
@@ -54,18 +54,19 @@ declare module 'path' {
|
|
|
54
54
|
* Normalize a string path, reducing '..' and '.' parts.
|
|
55
55
|
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
|
|
56
56
|
*
|
|
57
|
-
* @param
|
|
57
|
+
* @param path string path to normalize.
|
|
58
|
+
* @throws {TypeError} if `path` is not a string.
|
|
58
59
|
*/
|
|
59
|
-
normalize(
|
|
60
|
+
normalize(path: string): string;
|
|
60
61
|
/**
|
|
61
62
|
* Join all arguments together and normalize the resulting path.
|
|
62
|
-
* Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
|
|
63
63
|
*
|
|
64
64
|
* @param paths paths to join.
|
|
65
|
+
* @throws {TypeError} if any of the path segments is not a string.
|
|
65
66
|
*/
|
|
66
67
|
join(...paths: string[]): string;
|
|
67
68
|
/**
|
|
68
|
-
* The right-most parameter is considered {to}.
|
|
69
|
+
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
|
|
69
70
|
*
|
|
70
71
|
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
|
|
71
72
|
*
|
|
@@ -74,41 +75,50 @@ declare module 'path' {
|
|
|
74
75
|
* the current working directory is used as well. The resulting path is normalized,
|
|
75
76
|
* and trailing slashes are removed unless the path gets resolved to the root directory.
|
|
76
77
|
*
|
|
77
|
-
* @param
|
|
78
|
+
* @param paths A sequence of paths or path segments.
|
|
79
|
+
* @throws {TypeError} if any of the arguments is not a string.
|
|
78
80
|
*/
|
|
79
|
-
resolve(...
|
|
81
|
+
resolve(...paths: string[]): string;
|
|
80
82
|
/**
|
|
81
83
|
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
82
84
|
*
|
|
85
|
+
* If the given {path} is a zero-length string, `false` will be returned.
|
|
86
|
+
*
|
|
83
87
|
* @param path path to test.
|
|
88
|
+
* @throws {TypeError} if `path` is not a string.
|
|
84
89
|
*/
|
|
85
|
-
isAbsolute(
|
|
90
|
+
isAbsolute(path: string): boolean;
|
|
86
91
|
/**
|
|
87
|
-
* Solve the relative path from {from} to {to}.
|
|
92
|
+
* Solve the relative path from {from} to {to} based on the current working directory.
|
|
88
93
|
* At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
|
|
94
|
+
*
|
|
95
|
+
* @throws {TypeError} if either `from` or `to` is not a string.
|
|
89
96
|
*/
|
|
90
97
|
relative(from: string, to: string): string;
|
|
91
98
|
/**
|
|
92
99
|
* Return the directory name of a path. Similar to the Unix dirname command.
|
|
93
100
|
*
|
|
94
|
-
* @param
|
|
101
|
+
* @param path the path to evaluate.
|
|
102
|
+
* @throws {TypeError} if `path` is not a string.
|
|
95
103
|
*/
|
|
96
|
-
dirname(
|
|
104
|
+
dirname(path: string): string;
|
|
97
105
|
/**
|
|
98
106
|
* Return the last portion of a path. Similar to the Unix basename command.
|
|
99
107
|
* Often used to extract the file name from a fully qualified path.
|
|
100
108
|
*
|
|
101
|
-
* @param
|
|
109
|
+
* @param path the path to evaluate.
|
|
102
110
|
* @param ext optionally, an extension to remove from the result.
|
|
111
|
+
* @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
|
|
103
112
|
*/
|
|
104
|
-
basename(
|
|
113
|
+
basename(path: string, ext?: string): string;
|
|
105
114
|
/**
|
|
106
115
|
* Return the extension of the path, from the last '.' to end of string in the last portion of the path.
|
|
107
|
-
* If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
|
|
116
|
+
* If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
|
|
108
117
|
*
|
|
109
|
-
* @param
|
|
118
|
+
* @param path the path to evaluate.
|
|
119
|
+
* @throws {TypeError} if `path` is not a string.
|
|
110
120
|
*/
|
|
111
|
-
extname(
|
|
121
|
+
extname(path: string): string;
|
|
112
122
|
/**
|
|
113
123
|
* The platform-specific file separator. '\\' or '/'.
|
|
114
124
|
*/
|
|
@@ -120,15 +130,16 @@ declare module 'path' {
|
|
|
120
130
|
/**
|
|
121
131
|
* Returns an object from a path string - the opposite of format().
|
|
122
132
|
*
|
|
123
|
-
* @param
|
|
133
|
+
* @param path path to evaluate.
|
|
134
|
+
* @throws {TypeError} if `path` is not a string.
|
|
124
135
|
*/
|
|
125
|
-
parse(
|
|
136
|
+
parse(path: string): ParsedPath;
|
|
126
137
|
/**
|
|
127
138
|
* Returns a path string from an object - the opposite of parse().
|
|
128
139
|
*
|
|
129
|
-
* @param
|
|
140
|
+
* @param pathObject path to evaluate.
|
|
130
141
|
*/
|
|
131
|
-
format(
|
|
142
|
+
format(pathObject: FormatInputPathObject): string;
|
|
132
143
|
/**
|
|
133
144
|
* On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
|
|
134
145
|
* If path is not a string, path will be returned without modifications.
|