Comparing version 6.0.1 to 6.0.2
@@ -8,2 +8,3 @@ // Type definitions for ws 6.0 | ||
// Orblazer <https://github.com/orblazer> | ||
// reduckted <https://github.com/reduckted> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -37,6 +38,6 @@ | ||
onopen: (event: { target: WebSocket }) => void; | ||
onerror: (event: {error: any, message: string, type: string, target: WebSocket }) => void; | ||
onclose: (event: { wasClean: boolean; code: number; reason: string; target: WebSocket }) => void; | ||
onmessage: (event: { data: WebSocket.Data; type: string; target: WebSocket }) => void; | ||
onopen: (event: WebSocket.OpenEvent) => void; | ||
onerror: (event: WebSocket.ErrorEvent) => void; | ||
onclose: (event: WebSocket.CloseEvent) => void; | ||
onmessage: (event: WebSocket.MessageEvent) => void; | ||
@@ -169,2 +170,26 @@ constructor(address: string, options?: WebSocket.ClientOptions); | ||
interface OpenEvent { | ||
target: WebSocket; | ||
} | ||
interface ErrorEvent { | ||
error: any; | ||
message: string; | ||
type: string; | ||
target: WebSocket; | ||
} | ||
interface CloseEvent { | ||
wasClean: boolean; | ||
code: number; | ||
reason: string; | ||
target: WebSocket; | ||
} | ||
interface MessageEvent { | ||
data: Data; | ||
type: string; | ||
target: WebSocket; | ||
} | ||
interface ServerOptions { | ||
@@ -171,0 +196,0 @@ host?: string; |
{ | ||
"name": "@types/ws", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "TypeScript definitions for ws", | ||
@@ -31,16 +31,22 @@ "license": "MIT", | ||
"githubUsername": "orblazer" | ||
}, | ||
{ | ||
"name": "reduckted", | ||
"url": "https://github.com/reduckted", | ||
"githubUsername": "reduckted" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/ws" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/events": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "4ecfceef5e69e2fe7cddd05fa2ab63b16c0e5f742ac0d97a6682417ecaa46675", | ||
"typesPublisherContentHash": "45dc4f6c8721640c2265b102200cf89ac49f19dc527b12f76e399ae07b053f34", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 06 Sep 2018 00:15:01 GMT | ||
* Dependencies: events, http, https, net, node | ||
* Last updated: Mon, 05 Aug 2019 17:58:51 GMT | ||
* Dependencies: @types/node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Paul Loyd <https://github.com/loyd>, Matt Silverlock <https://github.com/elithrar>, Margus Lamp <https://github.com/mlamp>, Philippe D'Alva <https://github.com/TitaneBoy>, Orblazer <https://github.com/orblazer>. | ||
These definitions were written by Paul Loyd <https://github.com/loyd>, Matt Silverlock <https://github.com/elithrar>, Margus Lamp <https://github.com/mlamp>, Philippe D'Alva <https://github.com/TitaneBoy>, Orblazer <https://github.com/orblazer>, and reduckted <https://github.com/reduckted>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13368
1
210
- Removed@types/events@*
- Removed@types/events@3.0.3(transitive)