Skip to content

fix(WebSocket): annotate readyState as WebSocket['readyState']#767

Merged
kettanaito merged 1 commit intomswjs:mainfrom
dasa:WebSocket-readyState
Feb 13, 2026
Merged

fix(WebSocket): annotate readyState as WebSocket['readyState']#767
kettanaito merged 1 commit intomswjs:mainfrom
dasa:WebSocket-readyState

Conversation

@dasa
Copy link
Copy Markdown
Contributor

@dasa dasa commented Feb 12, 2026

Fix #765

@kettanaito kettanaito changed the title fix(WebSocketOverride): make sure the type of readyState is the same as in WebSocket fix(WebSocket): annotate readyState as WebSocket['readyState'] Feb 13, 2026
Copy link
Copy Markdown
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks, @dasa.

@kettanaito kettanaito merged commit db7fa65 into mswjs:main Feb 13, 2026
3 checks passed
@kettanaito
Copy link
Copy Markdown
Member

Released: v0.41.3 🎉

This has been released in v0.41.3.

Get these changes by running the following command:

npm i @mswjs/interceptors@latest

Predictable release automation by Release.

@dasa dasa deleted the WebSocket-readyState branch February 17, 2026 21:35
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.

TS 6.0: Property 'readyState' in type 'WebSocketOverride' is not assignable to the same property in base type 'WebSocket'

2 participants