@carbonorm/carbonreact 4.0.7 → 4.0.8

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.
@@ -1,6 +1,6 @@
1
1
  import CarbonReact, { iCarbonReactState } from "CarbonReact";
2
2
  import { tC6Tables, tC6RestApi } from "@carbonorm/carbonnode";
3
- export interface iCarbonWebSocketProps<P, S> {
3
+ export interface iCarbonWebSocketProps<P, S extends iCarbonReactState> {
4
4
  url?: string;
5
5
  timeoutSeconds?: number;
6
6
  heartbeatSeconds?: number;
@@ -12,5 +12,5 @@ export interface iCarbonWebSocketProps<P, S> {
12
12
  * @function connect
13
13
  * This function establishes a connection with the websocket and also ensures constant reconnection if connection closes
14
14
  **/
15
- export declare function initiateWebsocket<P, S extends Partial<iCarbonReactState>>(props: iCarbonWebSocketProps<P, S>): void;
16
- export default function <P, S extends Partial<iCarbonReactState>>(props: iCarbonWebSocketProps<P, S>): null;
15
+ export declare function initiateWebsocket<P, S extends iCarbonReactState>(props: iCarbonWebSocketProps<P, S>): void;
16
+ export default function <P, S extends iCarbonReactState>(props: iCarbonWebSocketProps<P, S>): null;