Преглед на файлове

add return type for Peer#getConnection in index.d.ts

afrokick преди 6 години
родител
ревизия
73d9dd653d
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      index.d.ts

+ 3 - 3
index.d.ts

@@ -101,10 +101,10 @@ declare class Peer {
 
   /**
    * Retrieve a data/media connection for this peer.
-   * @param peer
-   * @param id
+   * @param peerId
+   * @param connectionId
    */
-  getConnection(peer: Peer, id: string): any;
+  getConnection(peerId: string, connectionId: string): Peer.MediaConnection | Peer.DataConnection | null;
 
   /**
    * Get a list of available peer IDs