/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
@types
/
node
/
/home/techb158/balavpn.abdallabala.com/node_modules/@types/node
mkdir
upload
Name
Size
Mode
Actions
assert/
-
0777
rm
dns/
-
0777
rm
fs/
-
0777
rm
inspector/
-
0777
rm
path/
-
0777
rm
readline/
-
0777
rm
stream/
-
0777
rm
test/
-
0777
rm
timers/
-
0777
rm
ts5.6/
-
0777
rm
ts5.7/
-
0777
rm
util/
-
0777
rm
web-globals/
-
0777
rm
zlib/
-
0777
rm
assert.d.ts
42891
0666
edit
dl
rm
async_hooks.d.ts
29929
0666
edit
dl
rm
buffer.buffer.d.ts
22604
0666
edit
dl
rm
buffer.d.ts
81152
0666
edit
dl
rm
child_process.d.ts
59930
0666
edit
dl
rm
cluster.d.ts
19527
0666
edit
dl
rm
console.d.ts
4250
0666
edit
dl
rm
constants.d.ts
491
0666
edit
dl
rm
crypto.d.ts
168455
0666
edit
dl
rm
dgram.d.ts
24921
0666
edit
dl
rm
diagnostics_channel.d.ts
34577
0666
edit
dl
rm
dns.d.ts
34348
0666
edit
dl
rm
domain.d.ts
6597
0666
edit
dl
rm
events.d.ts
47375
0666
edit
dl
rm
ffi.d.ts
20013
0666
edit
dl
rm
fs.d.ts
201283
0666
edit
dl
rm
globals.d.ts
5084
0666
edit
dl
rm
globals.typedarray.d.ts
4864
0666
edit
dl
rm
http.d.ts
96833
0666
edit
dl
rm
http2.d.ts
119039
0666
edit
dl
rm
https.d.ts
16812
0666
edit
dl
rm
index.d.ts
5019
0666
edit
dl
rm
inspector.d.ts
12198
0666
edit
dl
rm
inspector.generated.d.ts
228362
0666
edit
dl
rm
LICENSE
1141
0666
edit
dl
rm
module.d.ts
32983
0666
edit
dl
rm
net.d.ts
43748
0666
edit
dl
rm
os.d.ts
19193
0666
edit
dl
rm
package.json
4508
0666
edit
dl
rm
path.d.ts
7639
0666
edit
dl
rm
perf_hooks.d.ts
22973
0666
edit
dl
rm
process.d.ts
112070
0666
edit
dl
rm
punycode.d.ts
3780
0666
edit
dl
rm
querystring.d.ts
6642
0666
edit
dl
rm
quic.d.ts
33850
0666
edit
dl
rm
readline.d.ts
21216
0666
edit
dl
rm
README.md
1582
0666
edit
dl
rm
repl.d.ts
19023
0666
edit
dl
rm
sea.d.ts
2045
0666
edit
dl
rm
sqlite.d.ts
54652
0666
edit
dl
rm
stream.d.ts
90588
0666
edit
dl
rm
string_decoder.d.ts
1318
0666
edit
dl
rm
test.d.ts
111992
0666
edit
dl
rm
timers.d.ts
7351
0666
edit
dl
rm
tls.d.ts
58012
0666
edit
dl
rm
trace_events.d.ts
3842
0666
edit
dl
rm
tty.d.ts
11152
0666
edit
dl
rm
url.d.ts
25457
0666
edit
dl
rm
util.d.ts
65409
0666
edit
dl
rm
v8.d.ts
42920
0666
edit
dl
rm
vm.d.ts
53143
0666
edit
dl
rm
wasi.d.ts
6250
0666
edit
dl
rm
worker_threads.d.ts
29736
0666
edit
dl
rm
zlib.d.ts
22874
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/@types/node/domain.d.ts
(6597B)
declare module "node:domain" { import { EventEmitter } from "node:events"; /** * The `Domain` class encapsulates the functionality of routing errors and * uncaught exceptions to the active `Domain` object. * * To handle the errors that it catches, listen to its `'error'` event. */ class Domain extends EventEmitter { /** * An array of event emitters that have been explicitly added to the domain. */ members: EventEmitter[]; /** * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly * pushes the domain onto the domain * stack managed by the domain module (see {@link exit} for details on the * domain stack). The call to `enter()` delimits the beginning of a chain of * asynchronous calls and I/O operations bound to a domain. * * Calling `enter()` changes only the active domain, and does not alter the domain * itself. `enter()` and `exit()` can be called an arbitrary number of times on a * single domain. */ enter(): void; /** * The `exit()` method exits the current domain, popping it off the domain stack. * Any time execution is going to switch to the context of a different chain of * asynchronous calls, it's important to ensure that the current domain is exited. * The call to `exit()` delimits either the end of or an interruption to the chain * of asynchronous calls and I/O operations bound to a domain. * * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain. * * Calling `exit()` changes only the active domain, and does not alter the domain * itself. `enter()` and `exit()` can be called an arbitrary number of times on a * single domain. */ exit(): void; /** * Run the supplied function in the context of the domain, implicitly * binding all event emitters, timers, and low-level requests that are * created in that context. Optionally, arguments can be passed to * the function. * * This is the most basic way to use a domain. * * ```js * import domain from 'node:domain'; * import fs from 'node:fs'; * const d = domain.create(); * d.on('error', (er) => { * console.error('Caught error!', er); * }); * d.run(() => { * process.nextTick(() => { * setTimeout(() => { // Simulating some various async stuff * fs.open('non-existent file', 'r', (er, fd) => { * if (er) throw er; * // proceed... * }); * }, 100); * }); * }); * ``` * * In this example, the `d.on('error')` handler will be triggered, rather * than crashing the program. */ run<T>(fn: (...args: any[]) => T, ...args: any[]): T; /** * Explicitly adds an emitter to the domain. If any event handlers called by * the emitter throw an error, or if the emitter emits an `'error'` event, it * will be routed to the domain's `'error'` event, just like with implicit * binding. * * If the `EventEmitter` was already bound to a domain, it is removed from that * one, and bound to this one instead. * @param emitter emitter to be added to the domain */ add(emitter: EventEmitter): void; /** * The opposite of {@link add}. Removes domain handling from the * specified emitter. * @param emitter emitter to be removed from the domain */ remove(emitter: EventEmitter): void; /** * The returned function will be a wrapper around the supplied callback * function. When the returned function is called, any errors that are * thrown will be routed to the domain's `'error'` event. * * ```js * const d = domain.create(); * * function readSomeFile(filename, cb) { * fs.readFile(filename, 'utf8', d.bind((er, data) => { * // If this throws, it will also be passed to the domain. * return cb(er, data ? JSON.parse(data) : null); * })); * } * * d.on('error', (er) => { * // An error occurred somewhere. If we throw it now, it will crash the program * // with the normal line number and stack message. * }); * ``` * @param callback The callback function * @return The bound function */ bind<T extends Function>(callback: T): T; /** * This method is almost identical to {@link bind}. However, in * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. * * In this way, the common `if (err) return callback(err);` pattern can be replaced * with a single error handler in a single place. * * ```js * const d = domain.create(); * * function readSomeFile(filename, cb) { * fs.readFile(filename, 'utf8', d.intercept((data) => { * // Note, the first argument is never passed to the * // callback since it is assumed to be the 'Error' argument * // and thus intercepted by the domain. * * // If this throws, it will also be passed to the domain * // so the error-handling logic can be moved to the 'error' * // event on the domain instead of being repeated throughout * // the program. * return cb(null, JSON.parse(data)); * })); * } * * d.on('error', (er) => { * // An error occurred somewhere. If we throw it now, it will crash the program * // with the normal line number and stack message. * }); * ``` * @param callback The callback function * @return The intercepted function */ intercept<T extends Function>(callback: T): T; } function create(): Domain; } declare module "domain" { export * from "node:domain"; }
Save
cmd:
run