chore: abstract types to shared package (#1593)
* chore: update types * small typing change * fix typing issue * typed node * add extra lint skip * add changeset --------- Co-authored-by: Eoghan Murray <eoghan@getthere.ie> Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import type { Mirror } from 'rrweb-snapshot';
|
||||
import SimplePeer from 'simple-peer-light';
|
||||
import type { RecordPlugin, ICrossOriginIframeMirror } from '@rrweb/types';
|
||||
import type {
|
||||
RecordPlugin,
|
||||
ICrossOriginIframeMirror,
|
||||
IMirror,
|
||||
} from '@rrweb/types';
|
||||
import type { WebRTCDataChannel } from './types';
|
||||
|
||||
export const PLUGIN_NAME = 'rrweb/canvas-webrtc@1';
|
||||
@@ -25,7 +28,7 @@ export type CrossOriginIframeMessageEventContent = {
|
||||
|
||||
export class RRWebPluginCanvasWebRTCRecord {
|
||||
private peer: SimplePeer.Instance | null = null;
|
||||
private mirror: Mirror | undefined;
|
||||
private mirror: IMirror<Node> | undefined;
|
||||
private crossOriginIframeMirror: ICrossOriginIframeMirror | undefined;
|
||||
private streamMap: Map<number, MediaStream> = new Map();
|
||||
private incomingStreams = new Set<MediaStream>();
|
||||
|
||||
Reference in New Issue
Block a user