We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8378ffd commit 4ff4de8Copy full SHA for 4ff4de8
packages/dd-trace/src/debugger/devtools_client/session.js
@@ -2,6 +2,16 @@
2
3
const inspector = require('./inspector_promises_polyfill')
4
5
-const session = module.exports = new inspector.Session()
+/**
6
+ * @typedef {import('node:events').EventEmitter & {
7
+ * connect: () => void,
8
+ * connectToMainThread: () => void
9
+ * disconnect: () => void,
10
+ * post: (method: string, params?: object) => Promise<any>,
11
+ * }} CDPSession
12
+ */
13
+const session = /** @type {CDPSession} */ (new inspector.Session())
14
15
session.connectToMainThread()
16
+
17
+module.exports = session
0 commit comments