Explorar o código

npm run check

Jonas Gloning %!s(int64=2) %!d(string=hai) anos
pai
achega
b26a8e7ff7
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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,