-
Couldn't load subscription status.
- Fork 39
Open
Description
I'm trying to integrate this module with some isomorphic code that runs on node and in browsers but I've noticed some incompatibilities with the WebRTC types as supplied with TypeScript in lib.dom.d.ts.
-
RTCPeerConnection
- Missing properties
- constructor arg
iceServersis typeIceServerbut theIceServer.urlsproperty is incompatible - it isstringbut it should bestring | string[]
-
RTCDataChannel
- Missing properties
-
RTCSessionDescription
- the constructor signature here expects two arguments,
sdp: stringandtype: "offer" | "answer"- the spec says it should be one argument, a RTCSessionDescriptionInit dictionary with two keystypewhich is a value from RTCSdpType andsdp, a string
- the constructor signature here expects two arguments,
-
RTCErrorEvent
- Does not extend Event
-
General
- Uses EventTarget/Event polyfills instead of globals supplied by Node
These are just the errors tsc reported, there may be others.
ris-work, nandito, AntoninRousset and mertushka
Metadata
Metadata
Assignees
Labels
No labels