bruce-models 0.9.6 → 0.9.7

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.
@@ -25,19 +25,19 @@ export declare namespace MessageBroker {
25
25
  * @param callback
26
26
  * @param action
27
27
  */
28
- Subscribe: (topic: string, callback: (msg: IMessageBase) => void, type?: SubscribeType) => void;
28
+ Subscribe: (topic: string, callback: (msg: IMessage) => void, type?: SubscribeType) => void;
29
29
  /**
30
30
  * Remove a subscriber from a topic.
31
31
  * @param topic
32
32
  * @param callback
33
33
  */
34
- Unsubscribe: (topic: string, callback: (msg: IMessageBase) => void) => void;
34
+ Unsubscribe: (topic: string, callback: (msg: IMessage) => void) => void;
35
35
  /**
36
36
  * Send message to server.
37
37
  * @param base
38
38
  * @returns
39
39
  */
40
- SendMessage: (msg: IMessageBase) => void;
40
+ SendMessage: (base: IMessageBase | IMessage) => void;
41
41
  SetUserId: (userId: string) => void;
42
42
  IsConnected: boolean;
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",