@types/simple-peer
Advanced tools
Comparing version 6.1.6 to 9.6.0
@@ -1,5 +0,7 @@ | ||
// Type definitions for simple-peer 6.1 | ||
// Type definitions for simple-peer 9.6 | ||
// Project: https://github.com/feross/simple-peer | ||
// Definitions by: Tomasz Łaziuk <https://github.com/tlaziuk> | ||
// xWiiLLz <https://github.com/xWiiLLz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
@@ -38,3 +40,12 @@ /// <reference types="node" /> | ||
type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; | ||
type TypedArray = | ||
| Int8Array | ||
| Uint8Array | ||
| Uint8ClampedArray | ||
| Int16Array | ||
| Uint16Array | ||
| Int32Array | ||
| Uint32Array | ||
| Float32Array | ||
| Float64Array; | ||
@@ -44,3 +55,3 @@ type SimplePeerData = string | Buffer | TypedArray | ArrayBuffer | Blob; | ||
interface SignalData { | ||
type?: "offer" | "pranswer" | "answer" | "rollback"; | ||
type?: 'offer' | 'pranswer' | 'answer' | 'rollback'; | ||
sdp?: any; | ||
@@ -57,2 +68,17 @@ candidate?: any; | ||
// https://github.com/feross/simple-peer/tree/v9.6.1#peeraddstreamstream | ||
addStream(stream: MediaStream): void; | ||
// https://github.com/feross/simple-peer/tree/v9.6.1#peerremovestreamstream | ||
removeStream(stream: MediaStream): void; | ||
// https://github.com/feross/simple-peer/tree/v9.6.1#peeraddtracktrack-stream | ||
addTrack(track: MediaStreamTrack, stream: MediaStream): void; | ||
// https://github.com/feross/simple-peer/tree/v9.6.1#peerremovetracktrack-stream | ||
removeTrack(track: MediaStreamTrack, stream: MediaStream): void; | ||
// https://github.com/feross/simple-peer/blob/v9.6.1/index.js#L306 | ||
replaceTrack(oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack, stream: MediaStream): void; | ||
// https://github.com/feross/simple-peer/tree/v6.1.5#peersenddata | ||
@@ -67,3 +93,3 @@ // TODO: https://github.com/feross/simple-peer/issues/187 | ||
readonly bufferSize: number; | ||
address(): { port: string, family: string, address: string, }; | ||
address(): { port: string; family: string; address: string }; | ||
@@ -70,0 +96,0 @@ // used for debug logging |
{ | ||
"name": "@types/simple-peer", | ||
"version": "6.1.6", | ||
"version": "9.6.0", | ||
"description": "TypeScript definitions for simple-peer", | ||
@@ -11,6 +11,11 @@ "license": "MIT", | ||
"githubUsername": "tlaziuk" | ||
}, | ||
{ | ||
"name": "xWiiLLz", | ||
"url": "https://github.com/xWiiLLz", | ||
"githubUsername": "xWiiLLz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +30,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "d43aecd609303078e9622854f733d79ddc4b9dda749aa811c9d10b401a8d844d", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "390752833338885daf6a621f6e00ee50029e533be72c1eb466a21e3c626c3ceb", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-peer | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-peer. | ||
Additional Details | ||
* Last updated: Wed, 26 Jun 2019 18:32:43 GMT | ||
* Dependencies: @types/node | ||
### Additional Details | ||
* Last updated: Thu, 14 Nov 2019 21:17:46 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Tomasz Łaziuk <https://github.com/tlaziuk>. | ||
These definitions were written by Tomasz Łaziuk (https://github.com/tlaziuk), and xWiiLLz (https://github.com/xWiiLLz). |
6936
77