File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { ConfigBinding } from './internalBinding/config';
44import { ConstantsBinding } from './internalBinding/constants' ;
55import { DebugBinding } from './internalBinding/debug' ;
66import { HttpParserBinding } from './internalBinding/http_parser' ;
7+ import { InspectorBinding } from './internalBinding/inspector' ;
78import { FsBinding } from './internalBinding/fs' ;
89import { FsDirBinding } from './internalBinding/fs_dir' ;
910import { MessagingBinding } from './internalBinding/messaging' ;
@@ -31,6 +32,7 @@ interface InternalBindingMap {
3132 fs : FsBinding ;
3233 fs_dir : FsDirBinding ;
3334 http_parser : HttpParserBinding ;
35+ inspector : InspectorBinding ;
3436 messaging : MessagingBinding ;
3537 modules : ModulesBinding ;
3638 options : OptionsBinding ;
Original file line number Diff line number Diff line change 1+ interface InspectorConnectionInstance {
2+ dispatch ( message : string ) : void ;
3+ disconnect ( ) : void ;
4+ }
5+
6+ interface InspectorConnectionConstructor {
7+ new ( onMessageHandler : ( message : string ) => void ) : InspectorConnectionInstance ;
8+ }
9+
10+ export interface InspectorBinding {
11+ consoleCall (
12+ inspectorMethod : ( ...args : any [ ] ) => any ,
13+ nodeMethod : ( ...args : any [ ] ) => any ,
14+ ...args : any [ ]
15+ ) : void ;
16+ setConsoleExtensionInstaller ( installer : Function ) : void ;
17+ callAndPauseOnStart (
18+ fn : ( ...args : any [ ] ) => any ,
19+ thisArg : any ,
20+ ...args : any [ ]
21+ ) : any ;
22+ open ( port : number , host : string ) : void ;
23+ url ( ) : string | undefined ;
24+ waitForDebugger ( ) : boolean ;
25+ asyncTaskScheduled ( taskName : string , taskId : number , recurring : boolean ) : void ;
26+ asyncTaskCanceled ( taskId : number ) : void ;
27+ asyncTaskStarted ( taskId : number ) : void ;
28+ asyncTaskFinished ( taskId : number ) : void ;
29+ registerAsyncHook ( enable : ( ) => void , disable : ( ) => void ) : void ;
30+ isEnabled ( ) : boolean ;
31+ emitProtocolEvent ( eventName : string , params : object ) : void ;
32+ setupNetworkTracking ( enable : ( ) => void , disable : ( ) => void ) : void ;
33+ console : Console ;
34+ Connection : InspectorConnectionConstructor ;
35+ MainThreadConnection : InspectorConnectionConstructor ;
36+ }
You can’t perform that action at this time.
0 commit comments