Skip to content

Conversation

@barjin
Copy link
Member

@barjin barjin commented Dec 29, 2025

Should unblock failing Crawlee E2E tests, see here.

@barjin barjin requested a review from Copilot December 29, 2025 10:46
@barjin barjin self-assigned this Dec 29, 2025
@barjin barjin added the adhoc Ad-hoc unplanned task added during the sprint. label Dec 29, 2025
@github-actions github-actions bot added this to the 131st sprint - Tooling team milestone Dec 29, 2025
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the type signatures for listeners and rawListeners methods in the WrappedAgent class to ensure compatibility with Node.js 25 EventEmitter types. The changes address failing Crawlee E2E tests by using TypeScript utility types instead of explicit type annotations.

Key Changes:

  • Replaced explicit parameter type string | symbol with Parameters<HttpAgent['listeners']>[0] to derive the correct type from HttpAgent
  • Replaced explicit return type Function[] with ReturnType<HttpAgent['listeners']> to maintain type compatibility
  • Removed eslint-disable comments for @typescript-eslint/ban-types that are no longer needed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@barjin barjin merged commit aa7001f into master Dec 29, 2025
17 checks passed
@barjin barjin deleted the chore/improve-event-emitter-typing branch December 29, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants