| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ import { ConfigBinding } from './internalBinding/config'; | |||
| 4 | 4 | import { ConstantsBinding } from './internalBinding/constants'; | |
| 5 | 5 | import { DebugBinding } from './internalBinding/debug'; | |
| 6 | 6 | import { HttpParserBinding } from './internalBinding/http_parser'; | |
| 7 | + import { InspectorBinding } from './internalBinding/inspector'; | ||
| 7 | 8 | import { FsBinding } from './internalBinding/fs'; | |
| 8 | 9 | import { FsDirBinding } from './internalBinding/fs_dir'; | |
| 9 | 10 | import { MessagingBinding } from './internalBinding/messaging'; | |
@@ -29,6 +30,7 @@ interface InternalBindingMap { | |||
| 29 | 30 | fs: FsBinding; | |
| 30 | 31 | fs_dir: FsDirBinding; | |
| 31 | 32 | http_parser: HttpParserBinding; | |
| 33 | + inspector: InspectorBinding; | ||
| 32 | 34 | messaging: MessagingBinding; | |
| 33 | 35 | modules: ModulesBinding; | |
| 34 | 36 | options: OptionsBinding; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,36 @@ | |||
| 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 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments