Explorar o código

refactor: change `type SerializerMapping` to `interface`

Jonas Gloning hai 1 ano
pai
achega
7091f0351c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 {
 	/**