Explorar el Código

fix(typings): `MediaConnection.answer()` doesn’t need a `stream` anymore, thanks @matallui!

Jonas Gloning hace 3 años
padre
commit
666dcd9770
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/mediaconnection.ts

+ 1 - 1
lib/mediaconnection.ts

@@ -76,7 +76,7 @@ export class MediaConnection extends BaseConnection {
 		}
 	}
 
-	answer(stream: MediaStream, options: AnswerOption = {}): void {
+	answer(stream?: MediaStream, options: AnswerOption = {}): void {
 		if (this._localStream) {
 			logger.warn(
 				"Local stream already exists on this MediaConnection. Are you answering a call twice?",