@carbonorm/carbonreact 4.0.8 → 4.0.10

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,14 +25,14 @@ 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>);
32
- protected updateRestfulObjectArrays: <ObjectType extends {
32
+ updateRestfulObjectArrays: <ObjectType extends {
33
33
  [key: string]: any;
34
34
  } = {}>(rest: Omit<iUpdateRestfulObjectArrays<ObjectType, S, P>, "instance">) => void;
35
- protected deleteRestfulObjectArrays: <ObjectType extends {
35
+ deleteRestfulObjectArrays: <ObjectType extends {
36
36
  [key: string]: any;
37
37
  } = {}>(rest: Omit<iDeleteRestfulObjectArrays<ObjectType, S, P>, "instance">) => void;
38
38
  static lastLocation: string;
package/dist/index.cjs.js CHANGED
@@ -4364,6 +4364,7 @@ class CarbonReact extends react.Component {
4364
4364
  // Context is for functional components to access the state of this class efficiently
4365
4365
  context = react.createContext(this.state);
4366
4366
  target;
4367
+ // @link https://stackoverflow.com/questions/55029032/what-is-typescripts-thistype-used-for
4367
4368
  static _instance;
4368
4369
  static getInstance() {
4369
4370
  return this._instance;
@@ -4374,6 +4375,7 @@ class CarbonReact extends react.Component {
4374
4375
  static set instance(instance) {
4375
4376
  this._instance = instance;
4376
4377
  }
4378
+ // these are public but the class is abstract
4377
4379
  updateRestfulObjectArrays = (rest) => updateRestfulObjectArrays({
4378
4380
  instance: this,
4379
4381
  ...rest