浏览代码

Merge pull request #448 from Macil/ts-upgrade

Upgrade type definitions for TypeScript 3
Jairooo 6 年之前
父节点
当前提交
e8c074cb40
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 1 3
      index.d.ts
  2. 0 1
      package.json

+ 1 - 3
index.d.ts

@@ -2,8 +2,6 @@
 // Original definitions by Toshiya Nakakura <https://github.com/nakakura>
 // Original definitions by Toshiya Nakakura <https://github.com/nakakura>
 // at https://github.com/DefinitelyTyped/DefinitelyTyped
 // at https://github.com/DefinitelyTyped/DefinitelyTyped
 
 
-/// <reference types="webrtc" />
-
 export = Peer;
 export = Peer;
 
 
 declare class Peer {
 declare class Peer {
@@ -135,7 +133,7 @@ declare namespace Peer {
         port?: number;
         port?: number;
         path?: string;
         path?: string;
         secure?: boolean;
         secure?: boolean;
-        config?: RTCPeerConnectionConfig;
+        config?: RTCConfiguration;
         debug?: number;
         debug?: number;
     }
     }
 
 

+ 0 - 1
package.json

@@ -23,7 +23,6 @@
     "mocha": "*"
     "mocha": "*"
   },
   },
   "dependencies": {
   "dependencies": {
-    "@types/webrtc": "0.0.21",
     "eventemitter3": "^0.1.5",
     "eventemitter3": "^0.1.5",
     "js-binarypack": "0.0.9",
     "js-binarypack": "0.0.9",
     "opencollective": "^1.0.3",
     "opencollective": "^1.0.3",