Explorar el Código

refactor: change `type SerializerMapping` to `interface`

Jonas Gloning hace 1 año
padre
commit
7091f0351c
Se han modificado 1 ficheros con 2 adiciones y 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 {
 	/**