浏览代码

refactor: change `type SerializerMapping` to `interface`

Jonas Gloning 1 年之前
父节点
当前提交
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 {
 	/**