@carbonorm/carbonreact 1.2.5 → 1.2.8
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 +2 -2
- 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/cjs/index.js
CHANGED
|
@@ -2326,7 +2326,7 @@ exports.eUpdateInsertMethod = void 0;
|
|
|
2326
2326
|
* @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
|
|
2327
2327
|
* parameter of setState.
|
|
2328
2328
|
*/
|
|
2329
|
-
function updateRestfulObjectArray(dataOrCallback,
|
|
2329
|
+
function updateRestfulObjectArray(dataOrCallback, stateKey, uniqueObjectId, insertUpdateOrder, callback) {
|
|
2330
2330
|
if (insertUpdateOrder === void 0) { insertUpdateOrder = exports.eUpdateInsertMethod.LAST; }
|
|
2331
2331
|
var bootstrap = CarbonReact.instance;
|
|
2332
2332
|
return bootstrap.setState(function (previousBootstrapState) {
|