alanshaw / it-ws

🕸 🔌 Simple async iterators for websocket client and server connections
Other
11 stars 11 forks source link

fix: export web-socket #99

Closed paralin closed 10 months ago

paralin commented 10 months ago

Export the WebSocket type and constructor.

Fixes: https://github.com/alanshaw/it-ws/issues/78

paralin commented 10 months ago
import duplex from 'it-ws/duplex'
import type WebSocket from 'it-ws/web-socket'
paralin commented 10 months ago

@alanshaw any word on this? thanks.

alanshaw commented 10 months ago

Why not export the type from the main export - do you need the constructor?

paralin commented 10 months ago

Yes

paralin commented 10 months ago

Thanks!

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 6.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: