Skip to content

Commit

Permalink
chore: export both
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Dec 8, 2023
1 parent 3bd1e58 commit 3b06f27
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions polyfill/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,18 @@ export {
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};

declare const _default: {
RTCCertificate: typeof RTCCertificate;
RTCDataChannel: typeof RTCDataChannel;
RTCDtlsTransport: typeof RTCDtlsTransport;
RTCIceCandidate: typeof RTCIceCandidate;
RTCIceTransport: typeof RTCIceTransport;
RTCPeerConnection: typeof RTCPeerConnection;
RTCSctpTransport: typeof RTCSctpTransport;
RTCSessionDescription: typeof RTCSessionDescription;
RTCDataChannelEvent: typeof RTCDataChannelEvent;
RTCPeerConnectionIceEvent: typeof RTCPeerConnectionIceEvent;
};

export default _default;
13 changes: 13 additions & 0 deletions polyfill/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ export {
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};

export default {
RTCCertificate,
RTCDataChannel,
RTCDtlsTransport,
RTCIceCandidate,
RTCIceTransport,
RTCPeerConnection,
RTCSctpTransport,
RTCSessionDescription,
RTCDataChannelEvent,
RTCPeerConnectionIceEvent,
};

0 comments on commit 3b06f27

Please sign in to comment.