Przeglądaj źródła

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

Jonas Gloning 3 lat temu
rodzic
commit
666dcd9770
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
 		if (this._localStream) {
 			logger.warn(
 			logger.warn(
 				"Local stream already exists on this MediaConnection. Are you answering a call twice?",
 				"Local stream already exists on this MediaConnection. Are you answering a call twice?",