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
52
frontend/node_modules/es-toolkit/dist/compat/object/setWith.d.ts
generated
vendored
Normal file
52
frontend/node_modules/es-toolkit/dist/compat/object/setWith.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
import { PropertyPath } from "../_internal/PropertyPath.js";
|
||||
|
||||
//#region src/compat/object/setWith.d.ts
|
||||
/**
|
||||
* Sets the value at the specified path of the given object using a customizer function.
|
||||
* If any part of the path does not exist, it will be created based on the customizer's result.
|
||||
*
|
||||
* The customizer is invoked to produce the objects of the path. If the customizer returns
|
||||
* a value, that value is used for the current path segment. If the customizer returns
|
||||
* `undefined`, the method will create an appropriate object based on the path - an array
|
||||
* if the next path segment is a valid array index, or an object otherwise.
|
||||
*
|
||||
* @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.
|
||||
* @param [customizer] - The function to customize assigned values.
|
||||
* @returns The modified object.
|
||||
*
|
||||
* @example
|
||||
* // Set a value with a customizer that creates arrays for numeric path segments
|
||||
* const object = {};
|
||||
* setWith(object, '[0][1]', 'a', (value) => Array.isArray(value) ? value : []);
|
||||
* // => { '0': [, 'a'] }
|
||||
*/
|
||||
declare function setWith<T extends object>(object: T, path: PropertyPath, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any): T;
|
||||
/**
|
||||
* Sets the value at the specified path of the given object using a customizer function.
|
||||
* If any part of the path does not exist, it will be created based on the customizer's result.
|
||||
*
|
||||
* The customizer is invoked to produce the objects of the path. If the customizer returns
|
||||
* a value, that value is used for the current path segment. If the customizer returns
|
||||
* `undefined`, the method will create an appropriate object based on the path - an array
|
||||
* if the next path segment is a valid array index, or an object otherwise.
|
||||
*
|
||||
* @template T - The type of the object.
|
||||
* @template R - The type of the return value.
|
||||
* @param object - The object to modify.
|
||||
* @param path - The path of the property to set.
|
||||
* @param value - The value to set.
|
||||
* @param [customizer] - The function to customize assigned values.
|
||||
* @returns The modified object.
|
||||
*
|
||||
* @example
|
||||
* // Set a value with a customizer that creates arrays for numeric path segments
|
||||
* const object = {};
|
||||
* setWith(object, '[0][1]', 'a', (value) => Array.isArray(value) ? value : []);
|
||||
* // => { '0': [, 'a'] }
|
||||
*/
|
||||
declare function setWith<T extends object, R>(object: T, path: PropertyPath, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any): R;
|
||||
//#endregion
|
||||
export { setWith };
|
||||
Loading…
Add table
Add a link
Reference in a new issue