@idlebox/stripe-node-types 24.0.14 → 24.0.15
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.
- package/README.md +1 -1
- package/assert/strict.d.ts +98 -1
- package/assert.d.ts +147 -248
- package/async_hooks.d.ts +5 -5
- package/buffer.buffer.d.ts +9 -6
- package/buffer.d.ts +49 -169
- package/child_process.d.ts +102 -223
- package/cluster.d.ts +236 -329
- package/console.d.ts +45 -346
- package/constants.d.ts +0 -1
- package/crypto.d.ts +698 -1149
- package/dgram.d.ts +15 -50
- package/diagnostics_channel.d.ts +1 -3
- package/dns.d.ts +135 -131
- package/domain.d.ts +10 -14
- package/events.d.ts +846 -722
- package/fs/promises.d.ts +102 -53
- package/fs.d.ts +714 -484
- package/globals.d.ts +130 -347
- package/globals.typedarray.d.ts +79 -0
- package/http.d.ts +343 -246
- package/http2.d.ts +563 -711
- package/https.d.ts +70 -216
- package/index.d.ts +24 -3
- package/inspector/promises.d.ts +54 -0
- package/inspector.d.ts +167 -3938
- package/inspector.generated.d.ts +4242 -0
- package/module.d.ts +45 -95
- package/net.d.ts +87 -186
- package/os.d.ts +17 -6
- package/package.json +3 -8
- package/path/posix.d.ts +20 -0
- package/path/win32.d.ts +20 -0
- package/path.d.ts +117 -122
- package/perf_hooks.d.ts +295 -644
- package/process.d.ts +177 -138
- package/punycode.d.ts +2 -2
- package/querystring.d.ts +1 -1
- package/quic.d.ts +926 -0
- package/readline/promises.d.ts +1 -1
- package/readline.d.ts +65 -118
- package/repl.d.ts +83 -96
- package/sea.d.ts +10 -1
- package/sqlite.d.ts +262 -13
- package/stream/consumers.d.ts +7 -7
- package/stream/promises.d.ts +133 -12
- package/stream/web.d.ts +173 -495
- package/stream.d.ts +593 -490
- package/string_decoder.d.ts +3 -3
- package/test/reporters.d.ts +112 -0
- package/test.d.ts +223 -199
- package/timers/promises.d.ts +1 -1
- package/timers.d.ts +1 -129
- package/tls.d.ts +148 -163
- package/trace_events.d.ts +6 -6
- package/ts5.6/buffer.buffer.d.ts +10 -8
- package/ts5.6/globals.typedarray.d.ts +16 -0
- package/ts5.6/index.d.ts +24 -3
- package/ts5.7/index.d.ts +24 -3
- package/tty.d.ts +55 -13
- package/url.d.ts +92 -587
- package/util/types.d.ts +571 -0
- package/util.d.ts +143 -792
- package/v8.d.ts +67 -7
- package/vm.d.ts +252 -108
- package/wasi.d.ts +23 -2
- package/web-globals/abortcontroller.d.ts +75 -0
- package/web-globals/blob.d.ts +39 -0
- package/{ts5.1/compatibility/disposable.d.ts → web-globals/console.d.ts} +6 -9
- package/web-globals/crypto.d.ts +55 -0
- package/web-globals/domexception.d.ts +84 -0
- package/web-globals/encoding.d.ts +27 -0
- package/{dom-events.d.ts → web-globals/events.d.ts} +57 -50
- package/web-globals/fetch.d.ts +70 -0
- package/web-globals/importmeta.d.ts +29 -0
- package/web-globals/messaging.d.ts +39 -0
- package/web-globals/navigator.d.ts +41 -0
- package/web-globals/performance.d.ts +61 -0
- package/web-globals/storage.d.ts +40 -0
- package/web-globals/streams.d.ts +131 -0
- package/web-globals/timers.d.ts +60 -0
- package/web-globals/url.d.ts +40 -0
- package/worker_threads.d.ts +291 -349
- package/zlib.d.ts +44 -94
- package/ts5.1/index.d.ts +0 -115
package/os.d.ts
CHANGED
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* ```js
|
|
21
21
|
* import os from 'node:os';
|
|
22
22
|
* ```
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/os.js)
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
declare module "node:os" {
|
|
27
|
+
import { NonSharedBuffer } from 'node:buffer';
|
|
27
28
|
interface CpuInfo {
|
|
28
29
|
model: string;
|
|
29
30
|
speed: number;
|
|
@@ -46,10 +47,10 @@ declare module "node:os" {
|
|
|
46
47
|
mac: string;
|
|
47
48
|
internal: boolean;
|
|
48
49
|
cidr: string | null;
|
|
50
|
+
scopeid?: number;
|
|
49
51
|
}
|
|
50
52
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
51
53
|
family: "IPv4";
|
|
52
|
-
scopeid?: undefined;
|
|
53
54
|
}
|
|
54
55
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
55
56
|
family: "IPv6";
|
|
@@ -247,6 +248,15 @@ declare module "node:os" {
|
|
|
247
248
|
* @since v2.3.0
|
|
248
249
|
*/
|
|
249
250
|
function homedir(): string;
|
|
251
|
+
interface UserInfoOptions {
|
|
252
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
253
|
+
}
|
|
254
|
+
interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
|
|
255
|
+
encoding: "buffer";
|
|
256
|
+
}
|
|
257
|
+
interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
|
|
258
|
+
encoding?: BufferEncoding | undefined;
|
|
259
|
+
}
|
|
250
260
|
/**
|
|
251
261
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
252
262
|
* this is typically a subset of the password file. The returned object includes
|
|
@@ -257,11 +267,12 @@ declare module "node:os" {
|
|
|
257
267
|
* environment variables for the home directory before falling back to the
|
|
258
268
|
* operating system response.
|
|
259
269
|
*
|
|
260
|
-
* Throws a [`SystemError`](https://nodejs.org/docs/latest-
|
|
270
|
+
* Throws a [`SystemError`](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
|
|
261
271
|
* @since v6.0.0
|
|
262
272
|
*/
|
|
263
|
-
function userInfo(options
|
|
264
|
-
function userInfo(options
|
|
273
|
+
function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
|
|
274
|
+
function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<NonSharedBuffer>;
|
|
275
|
+
function userInfo(options: UserInfoOptions): UserInfo<string | NonSharedBuffer>;
|
|
265
276
|
type SignalConstants = {
|
|
266
277
|
[key in NodeJS.Signals]: number;
|
|
267
278
|
};
|
|
@@ -436,7 +447,7 @@ declare module "node:os" {
|
|
|
436
447
|
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,
|
|
437
448
|
* `'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
|
|
438
449
|
*
|
|
439
|
-
* The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-
|
|
450
|
+
* The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v25.x/api/process.html#processarch).
|
|
440
451
|
* @since v0.5.0
|
|
441
452
|
*/
|
|
442
453
|
function arch(): NodeJS.Architecture;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idlebox/stripe-node-types",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.15",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -129,11 +129,6 @@
|
|
|
129
129
|
"main": "",
|
|
130
130
|
"types": "index.d.ts",
|
|
131
131
|
"typesVersions": {
|
|
132
|
-
"<=5.1": {
|
|
133
|
-
"*": [
|
|
134
|
-
"ts5.1/*"
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
132
|
"<=5.6": {
|
|
138
133
|
"*": [
|
|
139
134
|
"ts5.6/*"
|
|
@@ -152,7 +147,7 @@
|
|
|
152
147
|
},
|
|
153
148
|
"dependencies": {},
|
|
154
149
|
"peerDependencies": {},
|
|
155
|
-
"typesPublisherContentHash": "
|
|
156
|
-
"typeScriptVersion": "5.
|
|
150
|
+
"typesPublisherContentHash": "820c198d7a6ad561df9391e735b701c290d0da9e75d68c4a7e817a6c7ba1dc4f",
|
|
151
|
+
"typeScriptVersion": "5.2",
|
|
157
152
|
"scripts": {}
|
|
158
153
|
}
|
package/path/posix.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// biome-ignore-all lint: generated file
|
|
2
|
+
// biome-ignore-all assist: generated file
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
|
|
6
|
+
/******************************************************************************
|
|
7
|
+
* GENERATED FILE, DO NOT MODIFY
|
|
8
|
+
* 这是生成的文件,千万不要修改
|
|
9
|
+
*
|
|
10
|
+
* @build-script/codegen - The Simple Code Generater
|
|
11
|
+
* https://github.com/GongT/baobao
|
|
12
|
+
*
|
|
13
|
+
******************************************************************************/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
declare module "node:path/posix" {
|
|
18
|
+
import path = require('node:path');
|
|
19
|
+
export = path.posix;
|
|
20
|
+
}
|
package/path/win32.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// biome-ignore-all lint: generated file
|
|
2
|
+
// biome-ignore-all assist: generated file
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
|
|
6
|
+
/******************************************************************************
|
|
7
|
+
* GENERATED FILE, DO NOT MODIFY
|
|
8
|
+
* 这是生成的文件,千万不要修改
|
|
9
|
+
*
|
|
10
|
+
* @build-script/codegen - The Simple Code Generater
|
|
11
|
+
* https://github.com/GongT/baobao
|
|
12
|
+
*
|
|
13
|
+
******************************************************************************/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
declare module "node:path/win32" {
|
|
18
|
+
import path = require('node:path');
|
|
19
|
+
export = path.win32;
|
|
20
|
+
}
|
package/path.d.ts
CHANGED
|
@@ -20,17 +20,9 @@
|
|
|
20
20
|
* ```js
|
|
21
21
|
* import path from 'node:path';
|
|
22
22
|
* ```
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/path.js)
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
declare module "node:path/posix" {
|
|
27
|
-
import path = require('node:path');
|
|
28
|
-
export = path;
|
|
29
|
-
}
|
|
30
|
-
declare module "node:path/win32" {
|
|
31
|
-
import path = require('node:path');
|
|
32
|
-
export = path;
|
|
33
|
-
}
|
|
34
26
|
declare module "node:path" {
|
|
35
27
|
namespace path {
|
|
36
28
|
/**
|
|
@@ -80,125 +72,128 @@ declare module "node:path" {
|
|
|
80
72
|
*/
|
|
81
73
|
name?: string | undefined;
|
|
82
74
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Normalize a string path, reducing '..' and '.' parts.
|
|
77
|
+
* 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. If the path is a zero-length string, '.' is returned, representing the current working directory.
|
|
78
|
+
*
|
|
79
|
+
* @param path string path to normalize.
|
|
80
|
+
* @throws {TypeError} if `path` is not a string.
|
|
81
|
+
*/
|
|
82
|
+
function normalize(path: string): string;
|
|
83
|
+
/**
|
|
84
|
+
* Join all arguments together and normalize the resulting path.
|
|
85
|
+
*
|
|
86
|
+
* @param paths paths to join.
|
|
87
|
+
* @throws {TypeError} if any of the path segments is not a string.
|
|
88
|
+
*/
|
|
89
|
+
function join(...paths: string[]): string;
|
|
90
|
+
/**
|
|
91
|
+
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
|
|
92
|
+
*
|
|
93
|
+
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
|
|
94
|
+
*
|
|
95
|
+
* If {to} isn't already absolute, {from} arguments are prepended in right to left order,
|
|
96
|
+
* until an absolute path is found. If after using all {from} paths still no absolute path is found,
|
|
97
|
+
* the current working directory is used as well. The resulting path is normalized,
|
|
98
|
+
* and trailing slashes are removed unless the path gets resolved to the root directory.
|
|
99
|
+
*
|
|
100
|
+
* @param paths A sequence of paths or path segments.
|
|
101
|
+
* @throws {TypeError} if any of the arguments is not a string.
|
|
102
|
+
*/
|
|
103
|
+
function resolve(...paths: string[]): string;
|
|
104
|
+
/**
|
|
105
|
+
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
|
106
|
+
* @param path The path to glob-match against.
|
|
107
|
+
* @param pattern The glob to check the path against.
|
|
108
|
+
* @returns Whether or not the `path` matched the `pattern`.
|
|
109
|
+
* @throws {TypeError} if `path` or `pattern` are not strings.
|
|
110
|
+
* @since v22.5.0
|
|
111
|
+
*/
|
|
112
|
+
function matchesGlob(path: string, pattern: string): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
115
|
+
*
|
|
116
|
+
* If the given {path} is a zero-length string, `false` will be returned.
|
|
117
|
+
*
|
|
118
|
+
* @param path path to test.
|
|
119
|
+
* @throws {TypeError} if `path` is not a string.
|
|
120
|
+
*/
|
|
121
|
+
function isAbsolute(path: string): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Solve the relative path from {from} to {to} based on the current working directory.
|
|
124
|
+
* 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.
|
|
125
|
+
*
|
|
126
|
+
* @throws {TypeError} if either `from` or `to` is not a string.
|
|
127
|
+
*/
|
|
128
|
+
function relative(from: string, to: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* Return the directory name of a path. Similar to the Unix dirname command.
|
|
131
|
+
*
|
|
132
|
+
* @param path the path to evaluate.
|
|
133
|
+
* @throws {TypeError} if `path` is not a string.
|
|
134
|
+
*/
|
|
135
|
+
function dirname(path: string): string;
|
|
136
|
+
/**
|
|
137
|
+
* Return the last portion of a path. Similar to the Unix basename command.
|
|
138
|
+
* Often used to extract the file name from a fully qualified path.
|
|
139
|
+
*
|
|
140
|
+
* @param path the path to evaluate.
|
|
141
|
+
* @param suffix optionally, an extension to remove from the result.
|
|
142
|
+
* @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
|
|
143
|
+
*/
|
|
144
|
+
function basename(path: string, suffix?: string): string;
|
|
145
|
+
/**
|
|
146
|
+
* Return the extension of the path, from the last '.' to end of string in the last portion of the path.
|
|
147
|
+
* If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
|
|
148
|
+
*
|
|
149
|
+
* @param path the path to evaluate.
|
|
150
|
+
* @throws {TypeError} if `path` is not a string.
|
|
151
|
+
*/
|
|
152
|
+
function extname(path: string): string;
|
|
153
|
+
/**
|
|
154
|
+
* The platform-specific file separator. '\\' or '/'.
|
|
155
|
+
*/
|
|
156
|
+
const sep: "\\" | "/";
|
|
157
|
+
/**
|
|
158
|
+
* The platform-specific file delimiter. ';' or ':'.
|
|
159
|
+
*/
|
|
160
|
+
const delimiter: ";" | ":";
|
|
161
|
+
/**
|
|
162
|
+
* Returns an object from a path string - the opposite of format().
|
|
163
|
+
*
|
|
164
|
+
* @param path path to evaluate.
|
|
165
|
+
* @throws {TypeError} if `path` is not a string.
|
|
166
|
+
*/
|
|
167
|
+
function parse(path: string): ParsedPath;
|
|
168
|
+
/**
|
|
169
|
+
* Returns a path string from an object - the opposite of parse().
|
|
170
|
+
*
|
|
171
|
+
* @param pathObject path to evaluate.
|
|
172
|
+
*/
|
|
173
|
+
function format(pathObject: FormatInputPathObject): string;
|
|
174
|
+
/**
|
|
175
|
+
* On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
|
|
176
|
+
* If path is not a string, path will be returned without modifications.
|
|
177
|
+
* This method is meaningful only on Windows system.
|
|
178
|
+
* On POSIX systems, the method is non-operational and always returns path without modifications.
|
|
179
|
+
*/
|
|
180
|
+
function toNamespacedPath(path: string): string;
|
|
181
|
+
}
|
|
182
|
+
namespace path {
|
|
183
|
+
export {
|
|
170
184
|
/**
|
|
171
|
-
*
|
|
185
|
+
* The `path.posix` property provides access to POSIX specific implementations of the `path` methods.
|
|
172
186
|
*
|
|
173
|
-
*
|
|
174
|
-
* @throws {TypeError} if `path` is not a string.
|
|
187
|
+
* The API is accessible via `require('node:path').posix` or `require('node:path/posix')`.
|
|
175
188
|
*/
|
|
176
|
-
|
|
189
|
+
path as posix,
|
|
177
190
|
/**
|
|
178
|
-
*
|
|
191
|
+
* The `path.win32` property provides access to Windows-specific implementations of the `path` methods.
|
|
179
192
|
*
|
|
180
|
-
*
|
|
193
|
+
* The API is accessible via `require('node:path').win32` or `require('node:path/win32')`.
|
|
181
194
|
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
|
|
185
|
-
* If path is not a string, path will be returned without modifications.
|
|
186
|
-
* This method is meaningful only on Windows system.
|
|
187
|
-
* On POSIX systems, the method is non-operational and always returns path without modifications.
|
|
188
|
-
*/
|
|
189
|
-
toNamespacedPath(path: string): string;
|
|
190
|
-
/**
|
|
191
|
-
* Posix specific pathing.
|
|
192
|
-
* Same as parent object on posix.
|
|
193
|
-
*/
|
|
194
|
-
readonly posix: PlatformPath;
|
|
195
|
-
/**
|
|
196
|
-
* Windows specific pathing.
|
|
197
|
-
* Same as parent object on windows
|
|
198
|
-
*/
|
|
199
|
-
readonly win32: PlatformPath;
|
|
200
|
-
}
|
|
195
|
+
path as win32,
|
|
196
|
+
};
|
|
201
197
|
}
|
|
202
|
-
const path: path.PlatformPath;
|
|
203
198
|
export = path;
|
|
204
199
|
}
|