Skip to content

Commit 31cc1a9

Browse files
authored
Export ElementHandle and JSHandle types from puppeteer (#55)
1 parent 6aa66e4 commit 31cc1a9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/ninety-kids-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'test-mule': patch
3+
---
4+
5+
Export `JSHandle` and `ElementHandle` types from puppeteer. Now if you want to use those types you can import them directly from test-mule.

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { fileURLToPath } from 'url';
1515
import type { TestMuleUser } from './user';
1616
import { testMuleUser } from './user';
1717
import { assertElementHandle, removeFuncFromStackTrace } from './utils';
18+
export { JSHandle, ElementHandle } from 'puppeteer';
1819
koloristOpts.enabled = true;
1920
const ansiRegex = _ansiRegex({ onlyFirst: true });
2021
export type { TestMuleUser };

0 commit comments

Comments
 (0)