mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed parameter type, removed excess properties, in 'skyway'.
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
var peerByOption: PeerJs.Peer = new Peer({
|
||||
key: 'peerKey',
|
||||
debug: 3,
|
||||
logFunction: ()=>{
|
||||
}
|
||||
});
|
||||
|
||||
peerByOption.listAllPeers(function(items){
|
||||
@@ -21,8 +19,6 @@ var peerByIdAndOption: PeerJs.Peer = new Peer(
|
||||
{
|
||||
key: 'peerKey',
|
||||
debug: 3,
|
||||
logFunction: ()=>{
|
||||
}
|
||||
});
|
||||
|
||||
var id = peerByOption.id;
|
||||
|
||||
Vendored
+1
-1
@@ -77,7 +77,7 @@ declare module PeerJs{
|
||||
* @param id The brokering ID of the remote peer (their peer.id).
|
||||
* @param options for specifying details about Peer Connection
|
||||
*/
|
||||
connect(id: string, options?: PeerJs.PeerJSOption): PeerJs.DataConnection;
|
||||
connect(id: string, options?: PeerJs.PeerConnectOption): PeerJs.DataConnection;
|
||||
/**
|
||||
* Connects to the remote peer specified by id and returns a data connection.
|
||||
* @param id The brokering ID of the remote peer (their peer.id).
|
||||
|
||||
Reference in New Issue
Block a user