Skip to content

fix: declare types in IsolateSocket#873

Merged
KazuCocoa merged 1 commit into
mainfrom
fix-declare
Jun 6, 2026
Merged

fix: declare types in IsolateSocket#873
KazuCocoa merged 1 commit into
mainfrom
fix-declare

Conversation

@KazuCocoa

Copy link
Copy Markdown
Member

Fixes #872

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses issue #872 by preventing IsolateSocket from emitting runtime class fields that can shadow inherited rpc-websockets Client methods (e.g., on, call), which can lead to failures like TypeError: socket.on is not a function.

Changes:

  • Converts inherited-member “declarations” on IsolateSocket into declare-only members so they remain available to TypeScript without producing runtime properties.

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

@KazuCocoa KazuCocoa merged commit 53f590f into main Jun 6, 2026
11 of 12 checks passed
@KazuCocoa KazuCocoa deleted the fix-declare branch June 6, 2026 17:37
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.

Possible bug: IsolateSocket class fields may shadow rpc-websockets Client methods in 3.7.0

2 participants