cloudflare / workers-types

TypeScript type definitions for authoring Cloudflare Workers.
BSD 3-Clause "New" or "Revised" License
359 stars 89 forks source link

WebSocketPair and WebSocket types #281

Closed imdavidmin closed 2 years ago

imdavidmin commented 2 years ago

WebSocket type does not have accept() when using the WebSocketPair constructor.

v. 3.16.0 Code sample

KianNH commented 2 years ago

Seems to appear fine when using the recommended tsconfig.json

image
imdavidmin commented 2 years ago

Hmm weird, must be my local environment playing up. Having the same config. Will look into this and open another issue if necessary.