@carbonorm/carbonreact 4.0.7 → 4.0.9

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,7 +25,7 @@ declare abstract class CarbonReact<P = {}, S extends iCarbonReactState = iCarbon
25
25
  private static persistentStateMap;
26
26
  context: Context<S & iCarbonReactState>;
27
27
  protected target: typeof CarbonReact;
28
- protected static _instance: CarbonReact<any, any>;
28
+ protected static _instance: ThisType<CarbonReact<any, any>>;
29
29
  static getInstance<T extends CarbonReact<any, any>>(): T;
30
30
  static get instance(): CarbonReact<any, any>;
31
31
  static set instance(instance: CarbonReact<any, any>);
@@ -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;