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
55
frontend/node_modules/es-toolkit/dist/compat/object/cloneWith.d.mts
generated
vendored
Normal file
55
frontend/node_modules/es-toolkit/dist/compat/object/cloneWith.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
//#region src/compat/object/cloneWith.d.ts
|
||||
type CloneWithCustomizer<T, R> = (value: T, key: number | string | undefined, object: any, stack: any) => R;
|
||||
/**
|
||||
* Creates a shallow clone of a value with customizer that returns a specific result type.
|
||||
*
|
||||
* @template T - The type of the value to clone.
|
||||
* @template R - The result type extending primitive types or objects.
|
||||
* @param value - The value to clone.
|
||||
* @param customizer - The function to customize cloning.
|
||||
* @returns Returns the cloned value.
|
||||
*
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2 };
|
||||
* const cloned = cloneWith(obj, (value) => {
|
||||
* if (typeof value === 'object') {
|
||||
* return JSON.parse(JSON.stringify(value));
|
||||
* }
|
||||
* });
|
||||
* // => { a: 1, b: 2 }
|
||||
*/
|
||||
declare function cloneWith<T, R extends object | string | number | boolean | null>(value: T, customizer: CloneWithCustomizer<T, R>): R;
|
||||
/**
|
||||
* Creates a shallow clone of a value with optional customizer.
|
||||
*
|
||||
* @template T - The type of the value to clone.
|
||||
* @template R - The result type.
|
||||
* @param value - The value to clone.
|
||||
* @param customizer - The function to customize cloning.
|
||||
* @returns Returns the cloned value or the customized result.
|
||||
*
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2 };
|
||||
* const cloned = cloneWith(obj, (value) => {
|
||||
* if (typeof value === 'number') {
|
||||
* return value * 2;
|
||||
* }
|
||||
* });
|
||||
* // => { a: 2, b: 4 }
|
||||
*/
|
||||
declare function cloneWith<T, R>(value: T, customizer: CloneWithCustomizer<T, R | undefined>): R | T;
|
||||
/**
|
||||
* Creates a shallow clone of a value.
|
||||
*
|
||||
* @template T - The type of the value to clone.
|
||||
* @param value - The value to clone.
|
||||
* @returns Returns the cloned value.
|
||||
*
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2 };
|
||||
* const cloned = cloneWith(obj);
|
||||
* // => { a: 1, b: 2 }
|
||||
*/
|
||||
declare function cloneWith<T>(value: T): T;
|
||||
//#endregion
|
||||
export { cloneWith };
|
||||
Loading…
Add table
Add a link
Reference in a new issue