reports/frontend/node_modules/es-toolkit/dist/compat/object/update.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

15 lines
No EOL
578 B
TypeScript

import { PropertyPath } from "../_internal/PropertyPath.mjs";
//#region src/compat/object/update.d.ts
/**
* Updates the value at the specified path of the given object using an updater function.
* If any part of the path does not exist, it will be created.
*
* @param obj - The object to modify.
* @param path - The path of the property to update.
* @param updater - The function to produce the updated value.
* @returns The modified object.
*/
declare function update(obj: object, path: PropertyPath, updater: (value: any) => any): any;
//#endregion
export { update };