Skip to content

WebSocket.send() has invalid parameter types #21266

Closed
microsoft/TypeScript-DOM-lib-generator
#358
@TheColorRed

Description

@TheColorRed

The .d.ts file shows the following for WebSocket.send():

WebSocket.send(data: any) 

However, according to MDN it should look something like this:

WebSocket.send(data: USVString | ArrayBuffer | Blob | ArrayBufferView)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions