Browse Source

npm run check

Jonas Gloning 2 năm trước cách đây
mục cha
commit
b26a8e7ff7
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lib/negotiator.ts

+ 1 - 2
lib/negotiator.ts

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