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: fix typescript #995

Merged
merged 12 commits into from
Sep 2, 2024
Merged

fix: fix typescript #995

merged 12 commits into from
Sep 2, 2024

Conversation

Kabir-Ivan
Copy link
Collaborator

No description provided.

@Kabir-Ivan Kabir-Ivan force-pushed the fix-typescript branch 2 times, most recently from 6157cd6 to 57d0b18 Compare August 15, 2024 08:54
Copy link
Member

@shadowusr shadowusr left a comment

Choose a reason for hiding this comment

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

Also I get these errors when trying to compile a test project:

Another thing is that we probably need to specify "recommended" tsconfig in typescript.md in docs.

src/browser-pool/limited-pool.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
declare module "clear-require" {
Copy link
Member

Choose a reason for hiding this comment

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

Is this used in order to avoid including @types/clear-require to production?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. There is no types package as I remember.

package.json Outdated
"@jspm/core": "2.0.1",
"@types/mocha": "10.0.1",
"@types/bluebird": "3.5.38",
Copy link
Member

Choose a reason for hiding this comment

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

It's not a mistake, is it, we really do need those in production deps?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do, but can be fixed by rewriting a few more files

src/browser-pool/basic-pool.ts Outdated Show resolved Hide resolved
src/browser/browser.ts Outdated Show resolved Hide resolved
src/worker/runner/browser-agent.ts Show resolved Hide resolved
src/worker/runner/caching-test-parser.ts Show resolved Hide resolved
test/src/browser-pool/index.js Outdated Show resolved Hide resolved
typings/global.d.ts Outdated Show resolved Hide resolved
@shadowusr
Copy link
Member

Tested on a large project: https://nda.ya.ru/t/NGp9aTXW77yDqN

@shadowusr shadowusr merged commit 7273cf0 into master Sep 2, 2024
2 checks passed
@shadowusr shadowusr deleted the fix-typescript branch September 2, 2024 23:05
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.

3 participants