Skip to content
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

fix: change injected.ts imports #8987

Merged
merged 2 commits into from Sep 20, 2022
Merged

fix: change injected.ts imports #8987

merged 2 commits into from Sep 20, 2022

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Sep 19, 2022

it looks like local type aliases have to be marked as @internal too or they leak into types.d.ts. Also, not sure why api-extractor generates broken .d.ts files if the star import is used for Poller and TextContext.

Drive-by: updated tsd tests to use the generated types.d.ts instead of only using esm/types.d.ts

Closes #8986

@OrKoN OrKoN requested a review from jrandolf September 19, 2022 18:14
@OrKoN OrKoN marked this pull request as draft September 19, 2022 18:43
Not sure why api-extractor generates broken .d.ts
files if the start import is used for Poller and TextContext.
@OrKoN OrKoN force-pushed the fix-internal-puppeteer-utils branch from fec6f09 to 6513bfc Compare September 19, 2022 19:13
@OrKoN OrKoN changed the title fix: mark PuppeteerUtil as internal fix: change injected.ts imports Sep 19, 2022
@OrKoN OrKoN marked this pull request as ready for review September 19, 2022 19:14
@OrKoN
Copy link
Collaborator Author

OrKoN commented Sep 19, 2022

Also, not sure why api-extractor generates broken .d.ts files if the star import is used for Poller and TextContext.

I guess Poller.ts and TextContext.ts also export Poller and TextContext and, thus, two types with the same name exist. I guess it is some kind of bug in api-extractor.

Copy link
Member

@mathiasbynens mathiasbynens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RLGTM

@OrKoN OrKoN merged commit 10a114d into main Sep 20, 2022
@OrKoN OrKoN deleted the fix-internal-puppeteer-utils branch September 20, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: TS2304 compilation errors
2 participants