소스 검색

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

Jonas Gloning 3 년 전
부모
커밋
666dcd9770
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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?",