Kaynağa Gözat

refactor: change `type SerializerMapping` to `interface`

Jonas Gloning 1 yıl önce
ebeveyn
işleme
7091f0351c
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lib/peer.ts

+ 2 - 2
lib/peer.ts

@@ -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 {
 	/**
 	/**