Эх сурвалжийг харах

refactor: change `type SerializerMapping` to `interface`

Jonas Gloning 1 жил өмнө
parent
commit
7091f0351c
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      lib/peer.ts

+ 2 - 2
lib/peer.ts

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