浏览代码

npm run check

Jonas Gloning 2 年之前
父节点
当前提交
b26a8e7ff7
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/negotiator.ts

+ 1 - 2
lib/negotiator.ts

@@ -8,13 +8,12 @@ import {
 	ServerMessageType,
 	ServerMessageType,
 } from "./enums";
 } from "./enums";
 import type { BaseConnection, BaseConnectionEvents } from "./baseconnection";
 import type { BaseConnection, BaseConnectionEvents } from "./baseconnection";
-import type { ValidEventTypes } from "eventemitter3";
 
 
 /**
 /**
  * Manages all negotiations between Peers.
  * Manages all negotiations between Peers.
  */
  */
 export class Negotiator<
 export class Negotiator<
-	Events extends ValidEventTypes,
+	Events extends BaseConnectionEvents<ErrorType>,
 	ErrorType extends string,
 	ErrorType extends string,
 	ConnectionType extends BaseConnection<
 	ConnectionType extends BaseConnection<
 		any,
 		any,