@carbonorm/carbonreact 1.2.5 → 1.2.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/dist/cjs/hoc/updateRestfulObjectArrays.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/hoc/updateRestfulObjectArrays.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hoc/updateRestfulObjectArrays.tsx +1 -1
|
@@ -14,4 +14,4 @@ export declare enum eUpdateInsertMethod {
|
|
|
14
14
|
* @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
|
|
15
15
|
* parameter of setState.
|
|
16
16
|
*/
|
|
17
|
-
export default function updateRestfulObjectArray<ObjectType extends tRestfulObjectValues>(dataOrCallback: ((prev: Readonly<iCarbonORMState>) => ObjectType[]) | ObjectType[],
|
|
17
|
+
export default function updateRestfulObjectArray<ObjectType extends tRestfulObjectValues>(dataOrCallback: ((prev: Readonly<iCarbonORMState>) => ObjectType[]) | ObjectType[], stateKey: keyof iRestfulObjectArrayTypes, uniqueObjectId: keyof ObjectType, insertUpdateOrder?: eUpdateInsertMethod, callback?: () => void): void;
|
package/dist/esm/index.js
CHANGED
|
@@ -2324,7 +2324,7 @@ var eUpdateInsertMethod;
|
|
|
2324
2324
|
* @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
|
|
2325
2325
|
* parameter of setState.
|
|
2326
2326
|
*/
|
|
2327
|
-
function updateRestfulObjectArray(dataOrCallback,
|
|
2327
|
+
function updateRestfulObjectArray(dataOrCallback, stateKey, uniqueObjectId, insertUpdateOrder, callback) {
|
|
2328
2328
|
if (insertUpdateOrder === void 0) { insertUpdateOrder = eUpdateInsertMethod.LAST; }
|
|
2329
2329
|
var bootstrap = CarbonReact.instance;
|
|
2330
2330
|
return bootstrap.setState(function (previousBootstrapState) {
|