We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f763da2 commit 2d5e4faCopy full SHA for 2d5e4fa
src/tools/pages.ts
@@ -5,7 +5,7 @@
5
*/
6
7
import {logger} from '../logger.js';
8
-import type {Dialog} from '../third_party/index.js';
+import type {CdpPage, Dialog} from '../third_party/index.js';
9
import {zod} from '../third_party/index.js';
10
11
import {ToolCategory} from './categories.js';
@@ -385,8 +385,7 @@ export const getTabId = definePageTool({
385
},
386
handler: async (request, response, context) => {
387
const page = context.getPageById(request.params.pageId);
388
- // @ts-expect-error _tabId is internal.
389
- const tabId = page.pptrPage._tabId;
+ const tabId = (page.pptrPage as unknown as CdpPage)._tabId;
390
response.setTabId(tabId);
391
392
});
0 commit comments