@nxtedition/deepstream.io-client-js 31.2.2 → 31.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/deepstream.io-client-js",
3
- "version": "31.2.2",
3
+ "version": "31.2.3",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -3,11 +3,11 @@ import { Observable } from 'rxjs'
3
3
  export default class EventHandler {
4
4
  connected: boolean
5
5
  stats: EventStats
6
- subscribe: (name: string, callback: () => void) => void
7
- unsubscribe: (name: string, callback: () => void) => void
8
- on: (name: string, callback: () => void) => this
9
- once: (name: string, callback: () => void) => this
10
- off: (name: string, callback: () => void) => this
6
+ subscribe: (name: string, callback: (data: unknown) => void) => void
7
+ unsubscribe: (name: string, callback: (data: unknown) => void) => void
8
+ on: (name: string, callback: (data: unknown) => void) => this
9
+ once: (name: string, callback: (data: unknown) => void) => this
10
+ off: (name: string, callback: (data: unknown) => void) => this
11
11
  observe: <Data>(name: string) => Observable<Data>
12
12
  emit: <Data>(name: string, data?: Data) => void
13
13
  provide: (pattern: string, callback: (name: string) => void, options: unknown) => () => void