Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
61
frontend/node_modules/es-toolkit/dist/compat/object/set.d.mts
generated
vendored
Normal file
61
frontend/node_modules/es-toolkit/dist/compat/object/set.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
import { PropertyPath } from "../_internal/PropertyPath.mjs";
|
||||
|
||||
//#region src/compat/object/set.d.ts
|
||||
/**
|
||||
* Sets the value at the specified path of the given object. If any part of the path does not exist, it will be created.
|
||||
*
|
||||
* @template T - The type of the object.
|
||||
* @param object - The object to modify.
|
||||
* @param path - The path of the property to set.
|
||||
* @param value - The value to set.
|
||||
* @returns The modified object.
|
||||
*
|
||||
* @example
|
||||
* // Set a value in a nested object
|
||||
* const obj = { a: { b: { c: 3 } } };
|
||||
* set(obj, 'a.b.c', 4);
|
||||
* console.log(obj.a.b.c); // 4
|
||||
*
|
||||
* @example
|
||||
* // Set a value in an array
|
||||
* const arr = [1, 2, 3];
|
||||
* set(arr, 1, 4);
|
||||
* console.log(arr[1]); // 4
|
||||
*
|
||||
* @example
|
||||
* // Create non-existent path and set value
|
||||
* const obj = {};
|
||||
* set(obj, 'a.b.c', 4);
|
||||
* console.log(obj); // { a: { b: { c: 4 } } }
|
||||
*/
|
||||
declare function set<T extends object>(object: T, path: PropertyPath, value: any): T;
|
||||
/**
|
||||
* Sets the value at the specified path of the given object. If any part of the path does not exist, it will be created.
|
||||
*
|
||||
* @template R - The return type.
|
||||
* @param object - The object to modify.
|
||||
* @param path - The path of the property to set.
|
||||
* @param value - The value to set.
|
||||
* @returns The modified object.
|
||||
*
|
||||
* @example
|
||||
* // Set a value in a nested object
|
||||
* const obj = { a: { b: { c: 3 } } };
|
||||
* set(obj, 'a.b.c', 4);
|
||||
* console.log(obj.a.b.c); // 4
|
||||
*
|
||||
* @example
|
||||
* // Set a value in an array
|
||||
* const arr = [1, 2, 3];
|
||||
* set(arr, 1, 4);
|
||||
* console.log(arr[1]); // 4
|
||||
*
|
||||
* @example
|
||||
* // Create non-existent path and set value
|
||||
* const obj = {};
|
||||
* set(obj, 'a.b.c', 4);
|
||||
* console.log(obj); // { a: { b: { c: 4 } } }
|
||||
*/
|
||||
declare function set<R>(object: object, path: PropertyPath, value: any): R;
|
||||
//#endregion
|
||||
export { set };
|
||||
Loading…
Add table
Add a link
Reference in a new issue