@carbonorm/carbonreact 3.0.4 → 3.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.
@@ -15,4 +15,4 @@ export declare enum eUpdateInsertMethod {
15
15
  * @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
16
16
  * parameter of setState.
17
17
  */
18
- export default function updateRestfulObjectArrays<ObjectType = tRestfulObjectArrayValues, S = {}, P = {}>(dataOrCallback: ObjectType[] | (<K extends keyof S>(state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null), callback?: () => void) => null | (ObjectType[])), stateKey: KeysMatching<S, tStatefulApiData<ObjectType>>, uniqueObjectId: keyof ObjectType, insertUpdateOrder?: eUpdateInsertMethod, callback?: () => void): void;
18
+ export default function updateRestfulObjectArrays<ObjectType = tRestfulObjectArrayValues, S = {}, P = {}>(dataOrCallback: ObjectType[] | (<K extends keyof S>(state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null), callback?: () => void) => null | (ObjectType[])), stateKey: KeysMatching<S, tStatefulApiData<ObjectType>>, uniqueObjectId: (keyof ObjectType) | (keyof ObjectType)[], insertUpdateOrder?: eUpdateInsertMethod, callback?: () => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@ export default function updateRestfulObjectArrays<ObjectType = tRestfulObjectArr
25
25
  callback?: () => void
26
26
  ) => null|(ObjectType[])),
27
27
  stateKey: KeysMatching<S, tStatefulApiData<ObjectType>>,
28
- uniqueObjectId: keyof ObjectType,
28
+ uniqueObjectId: (keyof ObjectType) | (keyof ObjectType)[],
29
29
  insertUpdateOrder: eUpdateInsertMethod = eUpdateInsertMethod.LAST,
30
30
  callback?: () => void): void {
31
31