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
111
frontend/node_modules/es-toolkit/dist/compat/array/map.d.mts
generated
vendored
Normal file
111
frontend/node_modules/es-toolkit/dist/compat/array/map.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
import { ArrayIterator } from "../_internal/ArrayIterator.mjs";
|
||||
import { ListIterator } from "../_internal/ListIterator.mjs";
|
||||
import { ObjectIterator } from "../_internal/ObjectIterator.mjs";
|
||||
import { TupleIterator } from "../_internal/TupleIterator.mjs";
|
||||
|
||||
//#region src/compat/array/map.d.ts
|
||||
/**
|
||||
* Maps each element in a tuple to a new tuple of values using an iteratee.
|
||||
*
|
||||
* @param collection - The tuple to iterate over
|
||||
* @param iteratee - The function invoked per iteration
|
||||
* @returns} - Returns the new mapped tuple
|
||||
*
|
||||
* @example
|
||||
* // Using a transformation function on a tuple
|
||||
* const tuple = [1, 'hello', true] as const;
|
||||
* map(tuple, value => String(value)); // => ['1', 'hello', 'true']
|
||||
*/
|
||||
declare function map<T extends readonly [unknown, ...unknown[]], U>(collection: T, iteratee: TupleIterator<T, U>): { [K in keyof T]: U };
|
||||
/**
|
||||
* Maps each element in an array to a new array using an iteratee.
|
||||
*
|
||||
* @param collection - The array to iterate over
|
||||
* @param iteratee - The function invoked per iteration
|
||||
* @returns Returns the new mapped array
|
||||
*
|
||||
* @example
|
||||
* // Using a transformation function on an array
|
||||
* const array = [1, 2, 3];
|
||||
* map(array, x => x * 2); // => [2, 4, 6]
|
||||
*/
|
||||
declare function map<T, U>(collection: T[] | null | undefined, iteratee: ArrayIterator<T, U>): U[];
|
||||
/**
|
||||
* Maps each element in an array-like object to a new array using an iteratee.
|
||||
*
|
||||
* @param collection - The array-like object to iterate over
|
||||
* @param iteratee - The function invoked per iteration
|
||||
* @returns Returns the new mapped array
|
||||
*
|
||||
* @example
|
||||
* // Using a transformation function on an array-like object
|
||||
* const arrayLike = { length: 2, 0: 'a', 1: 'b' };
|
||||
* map(arrayLike, x => x.toUpperCase()); // => ['A', 'B']
|
||||
*/
|
||||
declare function map<T, U>(collection: ArrayLike<T> | null | undefined, iteratee: ListIterator<T, U>): U[];
|
||||
/**
|
||||
* Maps each value in an object to a new array.
|
||||
*
|
||||
* @param collection - The object to iterate over
|
||||
* @returns Returns an array of the object's values
|
||||
*
|
||||
* @example
|
||||
* // Converting an object's values to an array
|
||||
* const obj = { a: 1, b: 2, c: 3 };
|
||||
* map(obj); // => [1, 2, 3]
|
||||
*/
|
||||
declare function map<T>(collection: Record<string, T> | Record<number, T> | null | undefined): T[];
|
||||
/**
|
||||
* Maps each element in an object to a new array using an iteratee.
|
||||
*
|
||||
* @param collection - The object to iterate over
|
||||
* @param iteratee - The function invoked per iteration
|
||||
* @returns Returns the new mapped array
|
||||
*
|
||||
* @example
|
||||
* // Using a transformation function on an object
|
||||
* const obj = { a: 1, b: 2 };
|
||||
* map(obj, (value, key) => `${key}:${value}`); // => ['a:1', 'b:2']
|
||||
*/
|
||||
declare function map<T extends object, U>(collection: T | null | undefined, iteratee: ObjectIterator<T, U>): U[];
|
||||
/**
|
||||
* Maps each element in an object to a new array by plucking the specified property.
|
||||
*
|
||||
* @param collection - The object to iterate over
|
||||
* @param iteratee - The property to pluck from each element
|
||||
* @returns Returns the new array of plucked values
|
||||
*
|
||||
* @example
|
||||
* // Plucking a property from each object
|
||||
* const users = [{ name: 'John', age: 30 }, { name: 'Jane', age: 25 }];
|
||||
* map(users, 'name'); // => ['John', 'Jane']
|
||||
*/
|
||||
declare function map<T, K extends keyof T>(collection: Record<string, T> | Record<number, T> | null | undefined, iteratee: K): Array<T[K]>;
|
||||
/**
|
||||
* Maps each element in an object to a new array by plucking the specified string property.
|
||||
*
|
||||
* @param collection - The object to iterate over
|
||||
* @param [iteratee] - The string property to pluck from each element
|
||||
* @returns Returns the new array of plucked values
|
||||
*
|
||||
* @example
|
||||
* // Plucking a nested property
|
||||
* const users = [{ info: { name: 'John' } }, { info: { name: 'Jane' } }];
|
||||
* map(users, 'info.name'); // => ['John', 'Jane']
|
||||
*/
|
||||
declare function map<T>(collection: Record<string, T> | Record<number, T> | null | undefined, iteratee?: string): any[];
|
||||
/**
|
||||
* Maps each element in an object to a new array by matching against a source object.
|
||||
*
|
||||
* @param collection - The object to iterate over
|
||||
* @param [iteratee] - The object to match against
|
||||
* @returns Returns an array of boolean values indicating matches
|
||||
*
|
||||
* @example
|
||||
* // Matching against a source object
|
||||
* const users = [{ name: 'John', age: 30 }, { name: 'Jane', age: 25 }];
|
||||
* map(users, { age: 30 }); // => [true, false]
|
||||
*/
|
||||
declare function map<T>(collection: Record<string, T> | Record<number, T> | null | undefined, iteratee?: object): boolean[];
|
||||
//#endregion
|
||||
export { map };
|
||||
Loading…
Add table
Add a link
Reference in a new issue