@types/node 10.12.14 → 10.12.18
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/index.d.ts +25 -3
- node/inspector.d.ts +264 -0
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://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,
|
|
11
|
+
* Last updated: Wed, 19 Dec 2018 18:17:49 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ interface Console {
|
|
|
113
113
|
/**
|
|
114
114
|
* For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
|
|
115
115
|
*/
|
|
116
|
-
timeLog(label
|
|
116
|
+
timeLog(label?: string, ...data: any[]): void;
|
|
117
117
|
/**
|
|
118
118
|
* Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
|
|
119
119
|
*/
|
|
@@ -124,6 +124,13 @@ interface Console {
|
|
|
124
124
|
warn(message?: any, ...optionalParams: any[]): void;
|
|
125
125
|
|
|
126
126
|
// --- Inspector mode only ---
|
|
127
|
+
/**
|
|
128
|
+
* This method does not display anything unless used in the inspector.
|
|
129
|
+
* The console.markTimeline() method is the deprecated form of console.timeStamp().
|
|
130
|
+
*
|
|
131
|
+
* @deprecated Use console.timeStamp() instead.
|
|
132
|
+
*/
|
|
133
|
+
markTimeline(label?: string): void;
|
|
127
134
|
/**
|
|
128
135
|
* This method does not display anything unless used in the inspector.
|
|
129
136
|
* Starts a JavaScript CPU profile with an optional label.
|
|
@@ -133,12 +140,26 @@ interface Console {
|
|
|
133
140
|
* This method does not display anything unless used in the inspector.
|
|
134
141
|
* Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
|
|
135
142
|
*/
|
|
136
|
-
profileEnd(): void;
|
|
143
|
+
profileEnd(label?: string): void;
|
|
137
144
|
/**
|
|
138
145
|
* This method does not display anything unless used in the inspector.
|
|
139
146
|
* Adds an event with the label `label` to the Timeline panel of the inspector.
|
|
140
147
|
*/
|
|
141
148
|
timeStamp(label?: string): void;
|
|
149
|
+
/**
|
|
150
|
+
* This method does not display anything unless used in the inspector.
|
|
151
|
+
* The console.timeline() method is the deprecated form of console.time().
|
|
152
|
+
*
|
|
153
|
+
* @deprecated Use console.time() instead.
|
|
154
|
+
*/
|
|
155
|
+
timeline(label?: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* This method does not display anything unless used in the inspector.
|
|
158
|
+
* The console.timelineEnd() method is the deprecated form of console.timeEnd().
|
|
159
|
+
*
|
|
160
|
+
* @deprecated Use console.timeEnd() instead.
|
|
161
|
+
*/
|
|
162
|
+
timelineEnd(label?: string): void;
|
|
142
163
|
}
|
|
143
164
|
|
|
144
165
|
interface Error {
|
|
@@ -1194,6 +1215,7 @@ declare module "http" {
|
|
|
1194
1215
|
agent?: Agent | boolean;
|
|
1195
1216
|
_defaultAgent?: Agent;
|
|
1196
1217
|
timeout?: number;
|
|
1218
|
+
setHost?: boolean;
|
|
1197
1219
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
1198
1220
|
createConnection?: (options: ClientRequestArgs, oncreate: (err: Error, socket: net.Socket) => void) => net.Socket;
|
|
1199
1221
|
}
|
|
@@ -6612,7 +6634,7 @@ declare module "tls" {
|
|
|
6612
6634
|
*/
|
|
6613
6635
|
function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined;
|
|
6614
6636
|
function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
|
|
6615
|
-
function connect(options: ConnectionOptions,
|
|
6637
|
+
function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6616
6638
|
function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6617
6639
|
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6618
6640
|
function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
node/inspector.d.ts
CHANGED
|
@@ -1912,6 +1912,90 @@ declare module "inspector" {
|
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
+
namespace NodeTracing {
|
|
1916
|
+
interface TraceConfig {
|
|
1917
|
+
/**
|
|
1918
|
+
* Controls how the trace buffer stores data.
|
|
1919
|
+
*/
|
|
1920
|
+
recordMode?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Included category filters.
|
|
1923
|
+
*/
|
|
1924
|
+
includedCategories: string[];
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
interface StartParameterType {
|
|
1928
|
+
traceConfig: TraceConfig;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
interface GetCategoriesReturnType {
|
|
1932
|
+
/**
|
|
1933
|
+
* A list of supported tracing categories.
|
|
1934
|
+
*/
|
|
1935
|
+
categories: string[];
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
interface DataCollectedEventDataType {
|
|
1939
|
+
value: Array<{}>;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
namespace NodeWorker {
|
|
1944
|
+
type WorkerID = string;
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* Unique identifier of attached debugging session.
|
|
1948
|
+
*/
|
|
1949
|
+
type SessionID = string;
|
|
1950
|
+
|
|
1951
|
+
interface WorkerInfo {
|
|
1952
|
+
workerId: WorkerID;
|
|
1953
|
+
type: string;
|
|
1954
|
+
title: string;
|
|
1955
|
+
url: string;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
interface SendMessageToWorkerParameterType {
|
|
1959
|
+
message: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* Identifier of the session.
|
|
1962
|
+
*/
|
|
1963
|
+
sessionId: SessionID;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
interface EnableParameterType {
|
|
1967
|
+
/**
|
|
1968
|
+
* Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
|
|
1969
|
+
* message to run them.
|
|
1970
|
+
*/
|
|
1971
|
+
waitForDebuggerOnStart: boolean;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
interface AttachedToWorkerEventDataType {
|
|
1975
|
+
/**
|
|
1976
|
+
* Identifier assigned to the session used to send/receive messages.
|
|
1977
|
+
*/
|
|
1978
|
+
sessionId: SessionID;
|
|
1979
|
+
workerInfo: WorkerInfo;
|
|
1980
|
+
waitingForDebugger: boolean;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
interface DetachedFromWorkerEventDataType {
|
|
1984
|
+
/**
|
|
1985
|
+
* Detached session identifier.
|
|
1986
|
+
*/
|
|
1987
|
+
sessionId: SessionID;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
interface ReceivedMessageFromWorkerEventDataType {
|
|
1991
|
+
/**
|
|
1992
|
+
* Identifier of a session which sends a message.
|
|
1993
|
+
*/
|
|
1994
|
+
sessionId: SessionID;
|
|
1995
|
+
message: string;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1915
1999
|
/**
|
|
1916
2000
|
* The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
|
|
1917
2001
|
*/
|
|
@@ -1958,6 +2042,7 @@ declare module "inspector" {
|
|
|
1958
2042
|
* `messageAdded` notification.
|
|
1959
2043
|
*/
|
|
1960
2044
|
post(method: "Console.enable", callback?: (err: Error | null) => void): void;
|
|
2045
|
+
|
|
1961
2046
|
/**
|
|
1962
2047
|
* Continues execution until specific location is reached.
|
|
1963
2048
|
*/
|
|
@@ -2155,6 +2240,7 @@ declare module "inspector" {
|
|
|
2155
2240
|
* Steps over the statement.
|
|
2156
2241
|
*/
|
|
2157
2242
|
post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
|
|
2243
|
+
|
|
2158
2244
|
/**
|
|
2159
2245
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details
|
|
2160
2246
|
* $x functions).
|
|
@@ -2193,6 +2279,7 @@ declare module "inspector" {
|
|
|
2193
2279
|
|
|
2194
2280
|
post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
|
|
2195
2281
|
post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
|
|
2282
|
+
|
|
2196
2283
|
post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
|
|
2197
2284
|
|
|
2198
2285
|
post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
|
|
@@ -2250,6 +2337,7 @@ declare module "inspector" {
|
|
|
2250
2337
|
* @experimental
|
|
2251
2338
|
*/
|
|
2252
2339
|
post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
|
|
2340
|
+
|
|
2253
2341
|
/**
|
|
2254
2342
|
* Add handler to promise with given promise object id.
|
|
2255
2343
|
*/
|
|
@@ -2360,11 +2448,47 @@ declare module "inspector" {
|
|
|
2360
2448
|
* @experimental
|
|
2361
2449
|
*/
|
|
2362
2450
|
post(method: "Runtime.terminateExecution", callback?: (err: Error | null) => void): void;
|
|
2451
|
+
|
|
2363
2452
|
/**
|
|
2364
2453
|
* Returns supported domains.
|
|
2365
2454
|
*/
|
|
2366
2455
|
post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
|
|
2367
2456
|
|
|
2457
|
+
/**
|
|
2458
|
+
* Gets supported tracing categories.
|
|
2459
|
+
*/
|
|
2460
|
+
post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Start trace events collection.
|
|
2464
|
+
*/
|
|
2465
|
+
post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
|
|
2466
|
+
post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Stop trace events collection. Remaining collected events will be sent as a sequence of
|
|
2470
|
+
* dataCollected events followed by tracingComplete event.
|
|
2471
|
+
*/
|
|
2472
|
+
post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Sends protocol message over session with given id.
|
|
2476
|
+
*/
|
|
2477
|
+
post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
|
|
2478
|
+
post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Instructs the inspector to attach to running workers. Will also attach to new workers
|
|
2482
|
+
* as they start
|
|
2483
|
+
*/
|
|
2484
|
+
post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
|
|
2485
|
+
post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Detaches from all running workers and disables attaching to new workers as they are started.
|
|
2489
|
+
*/
|
|
2490
|
+
post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
|
|
2491
|
+
|
|
2368
2492
|
// Events
|
|
2369
2493
|
|
|
2370
2494
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -2464,6 +2588,33 @@ declare module "inspector" {
|
|
|
2464
2588
|
*/
|
|
2465
2589
|
addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2466
2590
|
|
|
2591
|
+
/**
|
|
2592
|
+
* Contains an bucket of collected trace events.
|
|
2593
|
+
*/
|
|
2594
|
+
addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2598
|
+
* delivered via dataCollected events.
|
|
2599
|
+
*/
|
|
2600
|
+
addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* Issued when attached to a worker.
|
|
2604
|
+
*/
|
|
2605
|
+
addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* Issued when detached from the worker.
|
|
2609
|
+
*/
|
|
2610
|
+
addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Notifies about a new protocol message received from the session
|
|
2614
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2615
|
+
*/
|
|
2616
|
+
addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2617
|
+
|
|
2467
2618
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2468
2619
|
emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
|
|
2469
2620
|
emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
|
|
@@ -2486,6 +2637,11 @@ declare module "inspector" {
|
|
|
2486
2637
|
emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
|
|
2487
2638
|
emit(event: "Runtime.executionContextsCleared"): boolean;
|
|
2488
2639
|
emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
|
|
2640
|
+
emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
2641
|
+
emit(event: "NodeTracing.tracingComplete"): boolean;
|
|
2642
|
+
emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
2643
|
+
emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
2644
|
+
emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
2489
2645
|
|
|
2490
2646
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2491
2647
|
|
|
@@ -2584,6 +2740,33 @@ declare module "inspector" {
|
|
|
2584
2740
|
*/
|
|
2585
2741
|
on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2586
2742
|
|
|
2743
|
+
/**
|
|
2744
|
+
* Contains an bucket of collected trace events.
|
|
2745
|
+
*/
|
|
2746
|
+
on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2750
|
+
* delivered via dataCollected events.
|
|
2751
|
+
*/
|
|
2752
|
+
on(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Issued when attached to a worker.
|
|
2756
|
+
*/
|
|
2757
|
+
on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* Issued when detached from the worker.
|
|
2761
|
+
*/
|
|
2762
|
+
on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
* Notifies about a new protocol message received from the session
|
|
2766
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2767
|
+
*/
|
|
2768
|
+
on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2769
|
+
|
|
2587
2770
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2588
2771
|
|
|
2589
2772
|
/**
|
|
@@ -2681,6 +2864,33 @@ declare module "inspector" {
|
|
|
2681
2864
|
*/
|
|
2682
2865
|
once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2683
2866
|
|
|
2867
|
+
/**
|
|
2868
|
+
* Contains an bucket of collected trace events.
|
|
2869
|
+
*/
|
|
2870
|
+
once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2874
|
+
* delivered via dataCollected events.
|
|
2875
|
+
*/
|
|
2876
|
+
once(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* Issued when attached to a worker.
|
|
2880
|
+
*/
|
|
2881
|
+
once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2882
|
+
|
|
2883
|
+
/**
|
|
2884
|
+
* Issued when detached from the worker.
|
|
2885
|
+
*/
|
|
2886
|
+
once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* Notifies about a new protocol message received from the session
|
|
2890
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2891
|
+
*/
|
|
2892
|
+
once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2893
|
+
|
|
2684
2894
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2685
2895
|
|
|
2686
2896
|
/**
|
|
@@ -2778,6 +2988,33 @@ declare module "inspector" {
|
|
|
2778
2988
|
*/
|
|
2779
2989
|
prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
2780
2990
|
|
|
2991
|
+
/**
|
|
2992
|
+
* Contains an bucket of collected trace events.
|
|
2993
|
+
*/
|
|
2994
|
+
prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2995
|
+
|
|
2996
|
+
/**
|
|
2997
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2998
|
+
* delivered via dataCollected events.
|
|
2999
|
+
*/
|
|
3000
|
+
prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Issued when attached to a worker.
|
|
3004
|
+
*/
|
|
3005
|
+
prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* Issued when detached from the worker.
|
|
3009
|
+
*/
|
|
3010
|
+
prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
* Notifies about a new protocol message received from the session
|
|
3014
|
+
* (session ID is provided in attachedToWorker notification).
|
|
3015
|
+
*/
|
|
3016
|
+
prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3017
|
+
|
|
2781
3018
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
2782
3019
|
|
|
2783
3020
|
/**
|
|
@@ -2874,6 +3111,33 @@ declare module "inspector" {
|
|
|
2874
3111
|
* call).
|
|
2875
3112
|
*/
|
|
2876
3113
|
prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
* Contains an bucket of collected trace events.
|
|
3117
|
+
*/
|
|
3118
|
+
prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
3122
|
+
* delivered via dataCollected events.
|
|
3123
|
+
*/
|
|
3124
|
+
prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* Issued when attached to a worker.
|
|
3128
|
+
*/
|
|
3129
|
+
prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* Issued when detached from the worker.
|
|
3133
|
+
*/
|
|
3134
|
+
prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* Notifies about a new protocol message received from the session
|
|
3138
|
+
* (session ID is provided in attachedToWorker notification).
|
|
3139
|
+
*/
|
|
3140
|
+
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2877
3141
|
}
|
|
2878
3142
|
|
|
2879
3143
|
// Top Level API
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.18",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -173,6 +173,6 @@
|
|
|
173
173
|
},
|
|
174
174
|
"scripts": {},
|
|
175
175
|
"dependencies": {},
|
|
176
|
-
"typesPublisherContentHash": "
|
|
176
|
+
"typesPublisherContentHash": "2ab4e2583634afae0837756aa0330daeca55b67e8b9947d540c0efdd33becf3d",
|
|
177
177
|
"typeScriptVersion": "2.0"
|
|
178
178
|
}
|