@carbonorm/carbonreact 4.0.4 → 4.0.5

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,8 +1,8 @@
1
- import CarbonReact, { tStatefulApiData } from "CarbonReact";
1
+ import CarbonReact, { iCarbonReactState, tStatefulApiData } from "CarbonReact";
2
2
  import { KeysMatching } from "./KeysMatching";
3
3
  export interface iDeleteRestfulObjectArrays<ObjectType extends {
4
4
  [key: string]: any;
5
- } = {}, S = CarbonReact['state'], P = CarbonReact['props']> {
5
+ } = {}, S extends iCarbonReactState = CarbonReact['state'], P = CarbonReact['props']> {
6
6
  instance: CarbonReact<P, S>;
7
7
  dataOrCallback: ObjectType[] | ((state: Readonly<S>, props: Readonly<P>) => ObjectType[] | null);
8
8
  stateKey: KeysMatching<S, tStatefulApiData<ObjectType>>;
@@ -11,4 +11,4 @@ export interface iDeleteRestfulObjectArrays<ObjectType extends {
11
11
  }
12
12
  export default function deleteRestfulObjectArrays<ObjectType extends {
13
13
  [key: string]: any;
14
- } = {}, S = CarbonReact['state'], P = CarbonReact['props']>({ instance, dataOrCallback, stateKey, uniqueObjectId, callback }: iDeleteRestfulObjectArrays<ObjectType, S, P>): void;
14
+ } = {}, S extends iCarbonReactState = CarbonReact['state'], P = CarbonReact['props']>({ instance, dataOrCallback, stateKey, uniqueObjectId, callback }: iDeleteRestfulObjectArrays<ObjectType, S, P>): void;
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.5",
5
5
  "browser": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "main": "dist/index.cjs.js",
@@ -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,