|
@@ -69,13 +69,13 @@ class PeerOptions implements PeerJSOption {
|
|
|
|
|
|
export { type PeerOptions };
|
|
export { type PeerOptions };
|
|
|
|
|
|
-export type SerializerMapping = {
|
|
|
|
|
|
+export interface SerializerMapping {
|
|
[key: string]: new (
|
|
[key: string]: new (
|
|
peerId: string,
|
|
peerId: string,
|
|
provider: Peer,
|
|
provider: Peer,
|
|
options: any,
|
|
options: any,
|
|
) => DataConnection;
|
|
) => DataConnection;
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
export interface PeerEvents {
|
|
export interface PeerEvents {
|
|
/**
|
|
/**
|