@carbonorm/carbonreact 4.0.4 → 4.0.6

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
3
  "license": "MIT",
4
- "version": "4.0.4",
4
+ "version": "4.0.6",
5
5
  "browser": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "main": "dist/index.cjs.js",
@@ -3,7 +3,7 @@ import OutsideClickHandler from 'react-outside-click-handler';
3
3
  import CarbonReact, {iCarbonReactState} from "../../CarbonReact";
4
4
  import {ReactElement} from "react";
5
5
 
6
- export default <P,S extends Partial<iCarbonReactState>>(props: {
6
+ export default <P,S extends iCarbonReactState>(props: {
7
7
  instance: CarbonReact<P,S>,
8
8
  }): ReactElement => {
9
9
 
@@ -5,7 +5,7 @@ export interface iDeleteRestfulObjectArrays<
5
5
  ObjectType extends {
6
6
  [key: string]: any
7
7
  } = {},
8
- S = CarbonReact['state'],
8
+ S extends iCarbonReactState = CarbonReact['state'],
9
9
  P = CarbonReact['props']
10
10
  > {
11
11
  instance: CarbonReact<P, S>,
@@ -19,7 +19,7 @@ export default function deleteRestfulObjectArrays<
19
19
  ObjectType extends {
20
20
  [key: string]: any
21
21
  } = {},
22
- S = CarbonReact['state'],
22
+ S extends iCarbonReactState = CarbonReact['state'],
23
23
  P = CarbonReact['props']
24
24
  >({
25
25
  instance,