Browse Source

文档修复

poplark 4 years ago
parent
commit
d0d877d4fa
3 changed files with 14 additions and 14 deletions
  1. 6 6
      docs/interfaces/rtcevent.html
  2. 6 6
      lib/index.d.ts
  3. 2 2
      lib/index.js

+ 6 - 6
docs/interfaces/rtcevent.html

@@ -72,12 +72,12 @@
 					</div>
 					<ul>
 						<li>当 type - T 为 <a href="../index.html#rtcusereventtype">RtcUserEventType</a> 事件时,data - S 为 <a href="../classes/user.html">User</a> 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcstreameventtype">RtcStreamEventType</a> 事件时,data - S 为 <a href="../classes/localstream.html">LocalStream</a> | <a href="../classes/remotestream.html">RemoteStream</a> 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcconnectionstateeventtype"></a> 事件时,data - S 为 <a href="connectionstates.html"></a> 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcnetworkqualityeventtype"></a> 事件时,data - S 为 <a href="networkqualities.html"></a> 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcplayereventtype"></a> 事件时,data - S 为 <a href="playereventdata.html"></a> 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcdevicechangedeventtype"></a> 事件时,data - S 为 {@link RtcDeviceChangedEventData } 类型</li>
-						<li>当 type - T 为 <a href="../index.html#rtcerroreventtype"></a> 事件时,data - S 为 <a href="../classes/rtcerror.html"></a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcstreameventtype">RtcStreamEventType</a> 事件时,data - S 为 <a href="../classes/localstream.html">LocalStream</a>  <a href="../classes/remotestream.html">RemoteStream</a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcconnectionstateeventtype">RtcConnectionStateEventType</a> 事件时,data - S 为 <a href="connectionstates.html">ConnectionStates</a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcnetworkqualityeventtype">RtcNetworkQualityEventType</a> 事件时,data - S 为 <a href="networkqualities.html">NetworkQualities</a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcplayereventtype">RtcPlayerEventType</a> 事件时,data - S 为 <a href="playereventdata.html">PlayerEventData</a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcdevicechangedeventtype">RtcDeviceChangedEventType</a> 事件时,data - S 为 <a href="devicechangedeventdata.html">DeviceChangedEventData</a> 类型</li>
+						<li>当 type - T 为 <a href="../index.html#rtcerroreventtype">RtcErrorEventType</a> 事件时,data - S 为 <a href="../classes/rtcerror.html">RtcError</a> 类型</li>
 					</ul>
 				</div>
 			</section>

+ 6 - 6
lib/index.d.ts

@@ -1005,12 +1005,12 @@ declare module '__@urtc/sdk-web/event' {
     * Rtc 事件
     *
     * - 当 type - T 为 {@link RtcUserEventType} 事件时,data - S 为 {@link User} 类型
-    * - 当 type - T 为 {@link RtcStreamEventType} 事件时,data - S 为 {@link LocalStream} | {@link RemoteStream} 类型
-    * - 当 type - T 为 {@link RtcConnectionStateEventType } 事件时,data - S 为 {@link ConnectionStates } 类型
-    * - 当 type - T 为 {@link RtcNetworkQualityEventType } 事件时,data - S 为 {@link NetworkQualities } 类型
-    * - 当 type - T 为 {@link RtcPlayerEventType } 事件时,data - S 为 {@link PlayerEventData } 类型
-    * - 当 type - T 为 {@link RtcDeviceChangedEventType } 事件时,data - S 为 {@link RtcDeviceChangedEventData } 类型
-    * - 当 type - T 为 {@link RtcErrorEventType } 事件时,data - S 为 {@link RtcError } 类型
+    * - 当 type - T 为 {@link RtcStreamEventType} 事件时,data - S 为 {@link LocalStream}  {@link RemoteStream} 类型
+    * - 当 type - T 为 {@link RtcConnectionStateEventType} 事件时,data - S 为 {@link ConnectionStates} 类型
+    * - 当 type - T 为 {@link RtcNetworkQualityEventType} 事件时,data - S 为 {@link NetworkQualities} 类型
+    * - 当 type - T 为 {@link RtcPlayerEventType} 事件时,data - S 为 {@link PlayerEventData} 类型
+    * - 当 type - T 为 {@link RtcDeviceChangedEventType} 事件时,data - S 为 {@link DeviceChangedEventData} 类型
+    * - 当 type - T 为 {@link RtcErrorEventType} 事件时,data - S 为 {@link RtcError} 类型
     * @public
     */
   export interface RtcEvent<T, S> {

File diff suppressed because it is too large
+ 2 - 2
lib/index.js