@types/node 22.15.33 → 22.17.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 v22.17/README.md +15 -0
- {node v22.15 → node v22.17}/buffer.d.ts +5 -1
- {node v22.15 → node v22.17}/crypto.d.ts +17 -1
- {node v22.15 → node v22.17}/dns/promises.d.ts +11 -10
- {node v22.15 → node v22.17}/dns.d.ts +18 -19
- {node v22.15 → node v22.17}/events.d.ts +0 -1
- {node v22.15 → node v22.17}/fs/promises.d.ts +22 -11
- {node v22.15 → node v22.17}/fs.d.ts +41 -13
- {node v22.15 → node v22.17}/http.d.ts +63 -1
- {node v22.15 → node v22.17}/http2.d.ts +12 -1
- {node v22.15 → node v22.17}/inspector.d.ts +157 -4
- {node v22.15 → node v22.17}/module.d.ts +47 -14
- {node v22.15 → node v22.17}/package.json +3 -83
- {node v22.15 → node v22.17}/process.d.ts +0 -2
- {node v22.15 → node v22.17}/readline/promises.d.ts +0 -1
- {node v22.15 → node v22.17}/repl.d.ts +3 -5
- {node v22.15 → node v22.17}/sqlite.d.ts +172 -0
- {node v22.15 → node v22.17}/stream/web.d.ts +8 -0
- {node v22.15 → node v22.17}/stream.d.ts +0 -11
- node v22.17/test.d.ts +2183 -0
- {node v22.15 → node v22.17}/url.d.ts +1 -3
- {node v22.15 → node v22.17}/util.d.ts +19 -4
- {node v22.15 → node v22.17}/v8.d.ts +27 -30
- {node v22.15 → node v22.17}/worker_threads.d.ts +33 -17
- {node v22.15 → node v22.17}/zlib.d.ts +8 -2
- node v22.15/README.md +0 -15
- node v22.15/test.d.ts +0 -2278
- {node v22.15 → node v22.17}/LICENSE +0 -0
- {node v22.15 → node v22.17}/assert/strict.d.ts +0 -0
- {node v22.15 → node v22.17}/assert.d.ts +0 -0
- {node v22.15 → node v22.17}/async_hooks.d.ts +1 -1
- {node v22.15 → node v22.17}/buffer.buffer.d.ts +0 -0
- {node v22.15 → node v22.17}/child_process.d.ts +0 -0
- {node v22.15 → node v22.17}/cluster.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/disposable.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/index.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/indexable.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/iterators.d.ts +0 -0
- {node v22.15 → node v22.17}/console.d.ts +0 -0
- {node v22.15 → node v22.17}/constants.d.ts +0 -0
- {node v22.15 → node v22.17}/dgram.d.ts +0 -0
- {node v22.15 → node v22.17}/diagnostics_channel.d.ts +0 -0
- {node v22.15 → node v22.17}/dom-events.d.ts +0 -0
- {node v22.15 → node v22.17}/domain.d.ts +0 -0
- {node v22.15 → node v22.17}/globals.d.ts +0 -0
- {node v22.15 → node v22.17}/globals.typedarray.d.ts +0 -0
- {node v22.15 → node v22.17}/https.d.ts +0 -0
- {node v22.15 → node v22.17}/index.d.ts +0 -0
- {node v22.15 → node v22.17}/net.d.ts +0 -0
- {node v22.15 → node v22.17}/os.d.ts +0 -0
- {node v22.15 → node v22.17}/path.d.ts +0 -0
- {node v22.15 → node v22.17}/perf_hooks.d.ts +0 -0
- {node v22.15 → node v22.17}/punycode.d.ts +0 -0
- {node v22.15 → node v22.17}/querystring.d.ts +0 -0
- {node v22.15 → node v22.17}/readline.d.ts +0 -0
- {node v22.15 → node v22.17}/sea.d.ts +0 -0
- {node v22.15 → node v22.17}/stream/consumers.d.ts +0 -0
- {node v22.15 → node v22.17}/stream/promises.d.ts +0 -0
- {node v22.15 → node v22.17}/string_decoder.d.ts +0 -0
- {node v22.15 → node v22.17}/timers/promises.d.ts +0 -0
- {node v22.15 → node v22.17}/timers.d.ts +0 -0
- {node v22.15 → node v22.17}/tls.d.ts +0 -0
- {node v22.15 → node v22.17}/trace_events.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/buffer.buffer.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/globals.typedarray.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/index.d.ts +0 -0
- {node v22.15 → node v22.17}/tty.d.ts +0 -0
- {node v22.15 → node v22.17}/vm.d.ts +0 -0
- {node v22.15 → node v22.17}/wasi.d.ts +0 -0
|
@@ -1768,12 +1768,26 @@ declare module 'inspector' {
|
|
|
1768
1768
|
status: number;
|
|
1769
1769
|
statusText: string;
|
|
1770
1770
|
headers: Headers;
|
|
1771
|
+
mimeType: string;
|
|
1772
|
+
charset: string;
|
|
1771
1773
|
}
|
|
1772
1774
|
/**
|
|
1773
1775
|
* Request / response headers as keys / values of JSON object.
|
|
1774
1776
|
*/
|
|
1775
1777
|
interface Headers {
|
|
1776
1778
|
}
|
|
1779
|
+
interface StreamResourceContentParameterType {
|
|
1780
|
+
/**
|
|
1781
|
+
* Identifier of the request to stream.
|
|
1782
|
+
*/
|
|
1783
|
+
requestId: RequestId;
|
|
1784
|
+
}
|
|
1785
|
+
interface StreamResourceContentReturnType {
|
|
1786
|
+
/**
|
|
1787
|
+
* Data that has been buffered until streaming is enabled.
|
|
1788
|
+
*/
|
|
1789
|
+
bufferedData: never;
|
|
1790
|
+
}
|
|
1777
1791
|
interface RequestWillBeSentEventDataType {
|
|
1778
1792
|
/**
|
|
1779
1793
|
* Request identifier.
|
|
@@ -1842,12 +1856,59 @@ declare module 'inspector' {
|
|
|
1842
1856
|
*/
|
|
1843
1857
|
timestamp: MonotonicTime;
|
|
1844
1858
|
}
|
|
1859
|
+
interface DataReceivedEventDataType {
|
|
1860
|
+
/**
|
|
1861
|
+
* Request identifier.
|
|
1862
|
+
*/
|
|
1863
|
+
requestId: RequestId;
|
|
1864
|
+
/**
|
|
1865
|
+
* Timestamp.
|
|
1866
|
+
*/
|
|
1867
|
+
timestamp: MonotonicTime;
|
|
1868
|
+
/**
|
|
1869
|
+
* Data chunk length.
|
|
1870
|
+
*/
|
|
1871
|
+
dataLength: number;
|
|
1872
|
+
/**
|
|
1873
|
+
* Actual bytes received (might be less than dataLength for compressed encodings).
|
|
1874
|
+
*/
|
|
1875
|
+
encodedDataLength: number;
|
|
1876
|
+
/**
|
|
1877
|
+
* Data that was received.
|
|
1878
|
+
* @experimental
|
|
1879
|
+
*/
|
|
1880
|
+
data?: never | undefined;
|
|
1881
|
+
}
|
|
1845
1882
|
}
|
|
1846
1883
|
namespace NodeRuntime {
|
|
1847
1884
|
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
1848
1885
|
enabled: boolean;
|
|
1849
1886
|
}
|
|
1850
1887
|
}
|
|
1888
|
+
namespace Target {
|
|
1889
|
+
type SessionID = string;
|
|
1890
|
+
type TargetID = string;
|
|
1891
|
+
interface TargetInfo {
|
|
1892
|
+
targetId: TargetID;
|
|
1893
|
+
type: string;
|
|
1894
|
+
title: string;
|
|
1895
|
+
url: string;
|
|
1896
|
+
attached: boolean;
|
|
1897
|
+
canAccessOpener: boolean;
|
|
1898
|
+
}
|
|
1899
|
+
interface SetAutoAttachParameterType {
|
|
1900
|
+
autoAttach: boolean;
|
|
1901
|
+
waitForDebuggerOnStart: boolean;
|
|
1902
|
+
}
|
|
1903
|
+
interface TargetCreatedEventDataType {
|
|
1904
|
+
targetInfo: TargetInfo;
|
|
1905
|
+
}
|
|
1906
|
+
interface AttachedToTargetEventDataType {
|
|
1907
|
+
sessionId: SessionID;
|
|
1908
|
+
targetInfo: TargetInfo;
|
|
1909
|
+
waitingForDebugger: boolean;
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1851
1912
|
|
|
1852
1913
|
/**
|
|
1853
1914
|
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
@@ -2224,6 +2285,17 @@ declare module 'inspector' {
|
|
|
2224
2285
|
* Enables network tracking, network events will now be delivered to the client.
|
|
2225
2286
|
*/
|
|
2226
2287
|
post(method: 'Network.enable', callback?: (err: Error | null) => void): void;
|
|
2288
|
+
/**
|
|
2289
|
+
* Enables streaming of the response for the given requestId.
|
|
2290
|
+
* If enabled, the dataReceived event contains the data that was received during streaming.
|
|
2291
|
+
* @experimental
|
|
2292
|
+
*/
|
|
2293
|
+
post(
|
|
2294
|
+
method: 'Network.streamResourceContent',
|
|
2295
|
+
params?: Network.StreamResourceContentParameterType,
|
|
2296
|
+
callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void
|
|
2297
|
+
): void;
|
|
2298
|
+
post(method: 'Network.streamResourceContent', callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void): void;
|
|
2227
2299
|
/**
|
|
2228
2300
|
* Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
|
|
2229
2301
|
*/
|
|
@@ -2237,6 +2309,8 @@ declare module 'inspector' {
|
|
|
2237
2309
|
*/
|
|
2238
2310
|
post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
|
|
2239
2311
|
post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
|
|
2312
|
+
post(method: 'Target.setAutoAttach', params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
|
|
2313
|
+
post(method: 'Target.setAutoAttach', callback?: (err: Error | null) => void): void;
|
|
2240
2314
|
|
|
2241
2315
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
2242
2316
|
/**
|
|
@@ -2343,6 +2417,10 @@ declare module 'inspector' {
|
|
|
2343
2417
|
addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2344
2418
|
addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2345
2419
|
addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2420
|
+
/**
|
|
2421
|
+
* Fired when data chunk was received over the network.
|
|
2422
|
+
*/
|
|
2423
|
+
addListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2346
2424
|
/**
|
|
2347
2425
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2348
2426
|
* enabled.
|
|
@@ -2355,6 +2433,8 @@ declare module 'inspector' {
|
|
|
2355
2433
|
* example, when inspector.waitingForDebugger is called
|
|
2356
2434
|
*/
|
|
2357
2435
|
addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
2436
|
+
addListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2437
|
+
addListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2358
2438
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2359
2439
|
emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
|
|
2360
2440
|
emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
@@ -2386,8 +2466,11 @@ declare module 'inspector' {
|
|
|
2386
2466
|
emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
|
|
2387
2467
|
emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
2388
2468
|
emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
2469
|
+
emit(event: 'Network.dataReceived', message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
2389
2470
|
emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
|
|
2390
2471
|
emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
|
|
2472
|
+
emit(event: 'Target.targetCreated', message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
2473
|
+
emit(event: 'Target.attachedToTarget', message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
|
|
2391
2474
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2392
2475
|
/**
|
|
2393
2476
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -2493,6 +2576,10 @@ declare module 'inspector' {
|
|
|
2493
2576
|
on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2494
2577
|
on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2495
2578
|
on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2579
|
+
/**
|
|
2580
|
+
* Fired when data chunk was received over the network.
|
|
2581
|
+
*/
|
|
2582
|
+
on(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2496
2583
|
/**
|
|
2497
2584
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2498
2585
|
* enabled.
|
|
@@ -2505,6 +2592,8 @@ declare module 'inspector' {
|
|
|
2505
2592
|
* example, when inspector.waitingForDebugger is called
|
|
2506
2593
|
*/
|
|
2507
2594
|
on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
2595
|
+
on(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2596
|
+
on(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2508
2597
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2509
2598
|
/**
|
|
2510
2599
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -2610,6 +2699,10 @@ declare module 'inspector' {
|
|
|
2610
2699
|
once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2611
2700
|
once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2612
2701
|
once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2702
|
+
/**
|
|
2703
|
+
* Fired when data chunk was received over the network.
|
|
2704
|
+
*/
|
|
2705
|
+
once(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2613
2706
|
/**
|
|
2614
2707
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2615
2708
|
* enabled.
|
|
@@ -2622,6 +2715,8 @@ declare module 'inspector' {
|
|
|
2622
2715
|
* example, when inspector.waitingForDebugger is called
|
|
2623
2716
|
*/
|
|
2624
2717
|
once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
2718
|
+
once(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2719
|
+
once(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2625
2720
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2626
2721
|
/**
|
|
2627
2722
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -2727,6 +2822,10 @@ declare module 'inspector' {
|
|
|
2727
2822
|
prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2728
2823
|
prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2729
2824
|
prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2825
|
+
/**
|
|
2826
|
+
* Fired when data chunk was received over the network.
|
|
2827
|
+
*/
|
|
2828
|
+
prependListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2730
2829
|
/**
|
|
2731
2830
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2732
2831
|
* enabled.
|
|
@@ -2739,6 +2838,8 @@ declare module 'inspector' {
|
|
|
2739
2838
|
* example, when inspector.waitingForDebugger is called
|
|
2740
2839
|
*/
|
|
2741
2840
|
prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
2841
|
+
prependListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2842
|
+
prependListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2742
2843
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
2743
2844
|
/**
|
|
2744
2845
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -2844,6 +2945,10 @@ declare module 'inspector' {
|
|
|
2844
2945
|
prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
2845
2946
|
prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
2846
2947
|
prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
2948
|
+
/**
|
|
2949
|
+
* Fired when data chunk was received over the network.
|
|
2950
|
+
*/
|
|
2951
|
+
prependOnceListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2847
2952
|
/**
|
|
2848
2953
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2849
2954
|
* enabled.
|
|
@@ -2856,6 +2961,8 @@ declare module 'inspector' {
|
|
|
2856
2961
|
* example, when inspector.waitingForDebugger is called
|
|
2857
2962
|
*/
|
|
2858
2963
|
prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
2964
|
+
prependOnceListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
2965
|
+
prependOnceListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
2859
2966
|
}
|
|
2860
2967
|
|
|
2861
2968
|
/**
|
|
@@ -2942,13 +3049,20 @@ declare module 'inspector' {
|
|
|
2942
3049
|
|
|
2943
3050
|
// DevTools protocol event broadcast methods
|
|
2944
3051
|
namespace Network {
|
|
3052
|
+
/**
|
|
3053
|
+
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
3054
|
+
*
|
|
3055
|
+
* Broadcasts the `Network.dataReceived` event to connected frontends, or buffers the data if
|
|
3056
|
+
* `Network.streamResourceContent` command was not invoked for the given request yet.
|
|
3057
|
+
* @since v22.17.0
|
|
3058
|
+
*/
|
|
3059
|
+
function dataReceived(params: DataReceivedEventDataType): void;
|
|
2945
3060
|
/**
|
|
2946
3061
|
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
2947
3062
|
*
|
|
2948
3063
|
* Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
|
|
2949
3064
|
* the application is about to send an HTTP request.
|
|
2950
3065
|
* @since v22.6.0
|
|
2951
|
-
* @experimental
|
|
2952
3066
|
*/
|
|
2953
3067
|
function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
|
|
2954
3068
|
/**
|
|
@@ -2957,7 +3071,6 @@ declare module 'inspector' {
|
|
|
2957
3071
|
* Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
|
|
2958
3072
|
* HTTP response is available.
|
|
2959
3073
|
* @since v22.6.0
|
|
2960
|
-
* @experimental
|
|
2961
3074
|
*/
|
|
2962
3075
|
function responseReceived(params: ResponseReceivedEventDataType): void;
|
|
2963
3076
|
/**
|
|
@@ -2966,7 +3079,6 @@ declare module 'inspector' {
|
|
|
2966
3079
|
* Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that
|
|
2967
3080
|
* HTTP request has finished loading.
|
|
2968
3081
|
* @since v22.6.0
|
|
2969
|
-
* @experimental
|
|
2970
3082
|
*/
|
|
2971
3083
|
function loadingFinished(params: LoadingFinishedEventDataType): void;
|
|
2972
3084
|
/**
|
|
@@ -2975,7 +3087,6 @@ declare module 'inspector' {
|
|
|
2975
3087
|
* Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
|
|
2976
3088
|
* HTTP request has failed to load.
|
|
2977
3089
|
* @since v22.7.0
|
|
2978
|
-
* @experimental
|
|
2979
3090
|
*/
|
|
2980
3091
|
function loadingFailed(params: LoadingFailedEventDataType): void;
|
|
2981
3092
|
}
|
|
@@ -3014,6 +3125,7 @@ declare module 'inspector/promises' {
|
|
|
3014
3125
|
NodeWorker,
|
|
3015
3126
|
Network,
|
|
3016
3127
|
NodeRuntime,
|
|
3128
|
+
Target,
|
|
3017
3129
|
} from 'inspector';
|
|
3018
3130
|
|
|
3019
3131
|
/**
|
|
@@ -3338,6 +3450,12 @@ declare module 'inspector/promises' {
|
|
|
3338
3450
|
* Enables network tracking, network events will now be delivered to the client.
|
|
3339
3451
|
*/
|
|
3340
3452
|
post(method: 'Network.enable'): Promise<void>;
|
|
3453
|
+
/**
|
|
3454
|
+
* Enables streaming of the response for the given requestId.
|
|
3455
|
+
* If enabled, the dataReceived event contains the data that was received during streaming.
|
|
3456
|
+
* @experimental
|
|
3457
|
+
*/
|
|
3458
|
+
post(method: 'Network.streamResourceContent', params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
|
|
3341
3459
|
/**
|
|
3342
3460
|
* Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
|
|
3343
3461
|
*/
|
|
@@ -3350,6 +3468,7 @@ declare module 'inspector/promises' {
|
|
|
3350
3468
|
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
3351
3469
|
*/
|
|
3352
3470
|
post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
|
|
3471
|
+
post(method: 'Target.setAutoAttach', params?: Target.SetAutoAttachParameterType): Promise<void>;
|
|
3353
3472
|
|
|
3354
3473
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
3355
3474
|
/**
|
|
@@ -3456,6 +3575,10 @@ declare module 'inspector/promises' {
|
|
|
3456
3575
|
addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3457
3576
|
addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3458
3577
|
addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3578
|
+
/**
|
|
3579
|
+
* Fired when data chunk was received over the network.
|
|
3580
|
+
*/
|
|
3581
|
+
addListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3459
3582
|
/**
|
|
3460
3583
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3461
3584
|
* enabled.
|
|
@@ -3468,6 +3591,8 @@ declare module 'inspector/promises' {
|
|
|
3468
3591
|
* example, when inspector.waitingForDebugger is called
|
|
3469
3592
|
*/
|
|
3470
3593
|
addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
3594
|
+
addListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3595
|
+
addListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3471
3596
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
3472
3597
|
emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
|
|
3473
3598
|
emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
@@ -3499,8 +3624,11 @@ declare module 'inspector/promises' {
|
|
|
3499
3624
|
emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
|
|
3500
3625
|
emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
3501
3626
|
emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
3627
|
+
emit(event: 'Network.dataReceived', message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
3502
3628
|
emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
|
|
3503
3629
|
emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
|
|
3630
|
+
emit(event: 'Target.targetCreated', message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
3631
|
+
emit(event: 'Target.attachedToTarget', message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
|
|
3504
3632
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
3505
3633
|
/**
|
|
3506
3634
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -3606,6 +3734,10 @@ declare module 'inspector/promises' {
|
|
|
3606
3734
|
on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3607
3735
|
on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3608
3736
|
on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3737
|
+
/**
|
|
3738
|
+
* Fired when data chunk was received over the network.
|
|
3739
|
+
*/
|
|
3740
|
+
on(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3609
3741
|
/**
|
|
3610
3742
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3611
3743
|
* enabled.
|
|
@@ -3618,6 +3750,8 @@ declare module 'inspector/promises' {
|
|
|
3618
3750
|
* example, when inspector.waitingForDebugger is called
|
|
3619
3751
|
*/
|
|
3620
3752
|
on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
3753
|
+
on(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3754
|
+
on(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3621
3755
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
3622
3756
|
/**
|
|
3623
3757
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -3723,6 +3857,10 @@ declare module 'inspector/promises' {
|
|
|
3723
3857
|
once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3724
3858
|
once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3725
3859
|
once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3860
|
+
/**
|
|
3861
|
+
* Fired when data chunk was received over the network.
|
|
3862
|
+
*/
|
|
3863
|
+
once(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3726
3864
|
/**
|
|
3727
3865
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3728
3866
|
* enabled.
|
|
@@ -3735,6 +3873,8 @@ declare module 'inspector/promises' {
|
|
|
3735
3873
|
* example, when inspector.waitingForDebugger is called
|
|
3736
3874
|
*/
|
|
3737
3875
|
once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
3876
|
+
once(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
3877
|
+
once(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3738
3878
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
3739
3879
|
/**
|
|
3740
3880
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -3840,6 +3980,10 @@ declare module 'inspector/promises' {
|
|
|
3840
3980
|
prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3841
3981
|
prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3842
3982
|
prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
3983
|
+
/**
|
|
3984
|
+
* Fired when data chunk was received over the network.
|
|
3985
|
+
*/
|
|
3986
|
+
prependListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3843
3987
|
/**
|
|
3844
3988
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3845
3989
|
* enabled.
|
|
@@ -3852,6 +3996,8 @@ declare module 'inspector/promises' {
|
|
|
3852
3996
|
* example, when inspector.waitingForDebugger is called
|
|
3853
3997
|
*/
|
|
3854
3998
|
prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
3999
|
+
prependListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
4000
|
+
prependListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3855
4001
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
3856
4002
|
/**
|
|
3857
4003
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -3957,6 +4103,10 @@ declare module 'inspector/promises' {
|
|
|
3957
4103
|
prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
|
|
3958
4104
|
prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
|
|
3959
4105
|
prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
|
|
4106
|
+
/**
|
|
4107
|
+
* Fired when data chunk was received over the network.
|
|
4108
|
+
*/
|
|
4109
|
+
prependOnceListener(event: 'Network.dataReceived', listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3960
4110
|
/**
|
|
3961
4111
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3962
4112
|
* enabled.
|
|
@@ -3969,6 +4119,8 @@ declare module 'inspector/promises' {
|
|
|
3969
4119
|
* example, when inspector.waitingForDebugger is called
|
|
3970
4120
|
*/
|
|
3971
4121
|
prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
|
|
4122
|
+
prependOnceListener(event: 'Target.targetCreated', listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
|
|
4123
|
+
prependOnceListener(event: 'Target.attachedToTarget', listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3972
4124
|
}
|
|
3973
4125
|
|
|
3974
4126
|
export {
|
|
@@ -3989,6 +4141,7 @@ declare module 'inspector/promises' {
|
|
|
3989
4141
|
NodeWorker,
|
|
3990
4142
|
Network,
|
|
3991
4143
|
NodeRuntime,
|
|
4144
|
+
Target,
|
|
3992
4145
|
};
|
|
3993
4146
|
}
|
|
3994
4147
|
|
|
@@ -623,34 +623,67 @@ declare module "module" {
|
|
|
623
623
|
global {
|
|
624
624
|
interface ImportMeta {
|
|
625
625
|
/**
|
|
626
|
-
* The directory name of the current module.
|
|
627
|
-
*
|
|
626
|
+
* The directory name of the current module.
|
|
627
|
+
*
|
|
628
|
+
* This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
629
|
+
*
|
|
630
|
+
* > **Caveat**: only present on `file:` modules.
|
|
631
|
+
* @since v21.2.0, v20.11.0
|
|
628
632
|
*/
|
|
629
633
|
dirname: string;
|
|
630
634
|
/**
|
|
631
|
-
* The full absolute path and filename of the current module, with
|
|
635
|
+
* The full absolute path and filename of the current module, with
|
|
636
|
+
* symlinks resolved.
|
|
637
|
+
*
|
|
632
638
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
633
|
-
*
|
|
639
|
+
*
|
|
640
|
+
* > **Caveat** only local modules support this property. Modules not using the
|
|
641
|
+
* > `file:` protocol will not provide it.
|
|
642
|
+
* @since v21.2.0, v20.11.0
|
|
634
643
|
*/
|
|
635
644
|
filename: string;
|
|
636
645
|
/**
|
|
637
646
|
* The absolute `file:` URL of the module.
|
|
647
|
+
*
|
|
648
|
+
* This is defined exactly the same as it is in browsers providing the URL of the
|
|
649
|
+
* current module file.
|
|
650
|
+
*
|
|
651
|
+
* This enables useful patterns such as relative file loading:
|
|
652
|
+
*
|
|
653
|
+
* ```js
|
|
654
|
+
* import { readFileSync } from 'node:fs';
|
|
655
|
+
* const buffer = readFileSync(new URL('./data.proto', import.meta.url));
|
|
656
|
+
* ```
|
|
638
657
|
*/
|
|
639
658
|
url: string;
|
|
640
659
|
/**
|
|
641
|
-
*
|
|
642
|
-
* the URL string.
|
|
660
|
+
* `import.meta.resolve` is a module-relative resolution function scoped to
|
|
661
|
+
* each module, returning the URL string.
|
|
643
662
|
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
663
|
+
* ```js
|
|
664
|
+
* const dependencyAsset = import.meta.resolve('component-lib/asset.css');
|
|
665
|
+
* // file:///app/node_modules/component-lib/asset.css
|
|
666
|
+
* import.meta.resolve('./dep.js');
|
|
667
|
+
* // file:///app/dep.js
|
|
668
|
+
* ```
|
|
646
669
|
*
|
|
647
|
-
*
|
|
670
|
+
* All features of the Node.js module resolution are supported. Dependency
|
|
671
|
+
* resolutions are subject to the permitted exports resolutions within the package.
|
|
648
672
|
*
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
*
|
|
652
|
-
|
|
653
|
-
|
|
673
|
+
* **Caveats**:
|
|
674
|
+
*
|
|
675
|
+
* * This can result in synchronous file-system operations, which
|
|
676
|
+
* can impact performance similarly to `require.resolve`.
|
|
677
|
+
* * This feature is not available within custom loaders (it would
|
|
678
|
+
* create a deadlock).
|
|
679
|
+
* @since v13.9.0, v12.16.0
|
|
680
|
+
* @param specifier The module specifier to resolve relative to the
|
|
681
|
+
* current module.
|
|
682
|
+
* @param parent An optional absolute parent module URL to resolve from.
|
|
683
|
+
* **Default:** `import.meta.url`
|
|
684
|
+
* @returns The absolute URL string that the specifier would resolve to.
|
|
685
|
+
*/
|
|
686
|
+
resolve(specifier: string, parent?: string | URL): string;
|
|
654
687
|
}
|
|
655
688
|
namespace NodeJS {
|
|
656
689
|
interface Module {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.17.1",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"githubUsername": "jkomyno",
|
|
16
16
|
"url": "https://github.com/jkomyno"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Alvis HT Tang",
|
|
20
|
-
"githubUsername": "alvis",
|
|
21
|
-
"url": "https://github.com/alvis"
|
|
22
|
-
},
|
|
23
18
|
{
|
|
24
19
|
"name": "Andrew Makarov",
|
|
25
20
|
"githubUsername": "r3nya",
|
|
@@ -30,56 +25,11 @@
|
|
|
30
25
|
"githubUsername": "btoueg",
|
|
31
26
|
"url": "https://github.com/btoueg"
|
|
32
27
|
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Chigozirim C.",
|
|
35
|
-
"githubUsername": "smac89",
|
|
36
|
-
"url": "https://github.com/smac89"
|
|
37
|
-
},
|
|
38
28
|
{
|
|
39
29
|
"name": "David Junger",
|
|
40
30
|
"githubUsername": "touffy",
|
|
41
31
|
"url": "https://github.com/touffy"
|
|
42
32
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Deividas Bakanas",
|
|
45
|
-
"githubUsername": "DeividasBakanas",
|
|
46
|
-
"url": "https://github.com/DeividasBakanas"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "Eugene Y. Q. Shen",
|
|
50
|
-
"githubUsername": "eyqs",
|
|
51
|
-
"url": "https://github.com/eyqs"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "Hannes Magnusson",
|
|
55
|
-
"githubUsername": "Hannes-Magnusson-CK",
|
|
56
|
-
"url": "https://github.com/Hannes-Magnusson-CK"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Huw",
|
|
60
|
-
"githubUsername": "hoo29",
|
|
61
|
-
"url": "https://github.com/hoo29"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "Kelvin Jin",
|
|
65
|
-
"githubUsername": "kjin",
|
|
66
|
-
"url": "https://github.com/kjin"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "Klaus Meinhardt",
|
|
70
|
-
"githubUsername": "ajafff",
|
|
71
|
-
"url": "https://github.com/ajafff"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "Lishude",
|
|
75
|
-
"githubUsername": "islishude",
|
|
76
|
-
"url": "https://github.com/islishude"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "Mariusz Wiktorczyk",
|
|
80
|
-
"githubUsername": "mwiktorczyk",
|
|
81
|
-
"url": "https://github.com/mwiktorczyk"
|
|
82
|
-
},
|
|
83
33
|
{
|
|
84
34
|
"name": "Mohsen Azimi",
|
|
85
35
|
"githubUsername": "mohsen1",
|
|
@@ -90,46 +40,16 @@
|
|
|
90
40
|
"githubUsername": "galkin",
|
|
91
41
|
"url": "https://github.com/galkin"
|
|
92
42
|
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Parambir Singh",
|
|
95
|
-
"githubUsername": "parambirs",
|
|
96
|
-
"url": "https://github.com/parambirs"
|
|
97
|
-
},
|
|
98
43
|
{
|
|
99
44
|
"name": "Sebastian Silbermann",
|
|
100
45
|
"githubUsername": "eps1lon",
|
|
101
46
|
"url": "https://github.com/eps1lon"
|
|
102
47
|
},
|
|
103
|
-
{
|
|
104
|
-
"name": "Thomas den Hollander",
|
|
105
|
-
"githubUsername": "ThomasdenH",
|
|
106
|
-
"url": "https://github.com/ThomasdenH"
|
|
107
|
-
},
|
|
108
48
|
{
|
|
109
49
|
"name": "Wilco Bakker",
|
|
110
50
|
"githubUsername": "WilcoBakker",
|
|
111
51
|
"url": "https://github.com/WilcoBakker"
|
|
112
52
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "wwwy3y3",
|
|
115
|
-
"githubUsername": "wwwy3y3",
|
|
116
|
-
"url": "https://github.com/wwwy3y3"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Samuel Ainsworth",
|
|
120
|
-
"githubUsername": "samuela",
|
|
121
|
-
"url": "https://github.com/samuela"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "Kyle Uehlein",
|
|
125
|
-
"githubUsername": "kuehlein",
|
|
126
|
-
"url": "https://github.com/kuehlein"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Thanik Bhongbhibhat",
|
|
130
|
-
"githubUsername": "bhongy",
|
|
131
|
-
"url": "https://github.com/bhongy"
|
|
132
|
-
},
|
|
133
53
|
{
|
|
134
54
|
"name": "Marcin Kopacz",
|
|
135
55
|
"githubUsername": "chyzwar",
|
|
@@ -220,6 +140,6 @@
|
|
|
220
140
|
"undici-types": "~6.21.0"
|
|
221
141
|
},
|
|
222
142
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "5.
|
|
143
|
+
"typesPublisherContentHash": "33e92244c7a444df791b68b0f0d1551aba172dd81d8c9ecff7a813e170182f11",
|
|
144
|
+
"typeScriptVersion": "5.2"
|
|
225
145
|
}
|
|
@@ -1566,13 +1566,11 @@ declare module "process" {
|
|
|
1566
1566
|
* See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
|
|
1567
1567
|
* information.
|
|
1568
1568
|
* @since v19.6.0, v18.15.0
|
|
1569
|
-
* @experimental
|
|
1570
1569
|
*/
|
|
1571
1570
|
constrainedMemory(): number;
|
|
1572
1571
|
/**
|
|
1573
1572
|
* Gets the amount of free memory that is still available to the process (in bytes).
|
|
1574
1573
|
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v22.x/api/process.html#processavailablememory) for more information.
|
|
1575
|
-
* @experimental
|
|
1576
1574
|
* @since v20.13.0
|
|
1577
1575
|
*/
|
|
1578
1576
|
availableMemory(): number;
|