New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.0.1] LaunchOptions and Page types are not exported from main #6816
Comments
For: dialog doesn't get inferred anymore. |
also |
and CDPSession. I don't think any of the types are actually being exported. |
So yes, no types are exported. Just the default is export. What should be happening is export * from "common/Browser"
export * from "common/Connection"
export * from "common/DeviceDescriptors"
export * from "common/Page"
... This ideally would happen in the node*.ts files and then the cjs shim at the root could Somehow the default export should also be a namespace... |
Also instead of re-exporting everything again, api-docs-entry already has all the things with types. So in
Still doesn't solve being able to do like |
As a maintainer of a plugin framework for puppeteer this is quite a painful situation for me 😅 Does anyone know a trick to make TS ignore the built-in types and use edit, a hacky workaround: Install import type * as Puppeteer from 'puppeteer-core' This will probably not work when consumers install |
Nuclear option:
🥲 |
even in v7.0.1 the type definitions don't work at all if you use cc @jackfranklin, I saw your comment on a7e3c2e |
Should be resolved by #6837 once it is merged/released |
Fixed in v7.0.4. Thanks. |
In case anyone else was using |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
What is the expected result?
Interfaces are available on the namespace.
Work the same way it did with @types/puppeteer.
What happens instead?
They are not exposed. I'm sure there are many more. Will write any I notice here.
The text was updated successfully, but these errors were encountered: