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
50
frontend/node_modules/es-toolkit/dist/array/partition.d.ts
generated
vendored
Normal file
50
frontend/node_modules/es-toolkit/dist/array/partition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
//#region src/array/partition.d.ts
|
||||
/**
|
||||
* Splits an array into two groups based on a predicate function.
|
||||
*
|
||||
* This function takes an array and a predicate function. It returns a tuple of two arrays:
|
||||
* the first array contains elements for which the predicate function returns true, and
|
||||
* the second array contains elements for which the predicate function returns false.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @template {T} U - The type being filtered for.
|
||||
* @param arr - The array to partition.
|
||||
* @param isInTruthy - A type guard that determines whether an
|
||||
* element should be placed in the truthy array. The function is called with each element
|
||||
* of the array and its index.
|
||||
* @returns A tuple containing two arrays: the first array contains elements for
|
||||
* which the predicate returned true, and the second array contains elements for which the
|
||||
* predicate returned false.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 3, 4] as const;
|
||||
* const isEven = (x: number): x is 2 | 4 => x % 2 === 0;
|
||||
* const [even, odd]: [(2 | 4)[], (2 | 4)[]] = partition(array, isEven);
|
||||
* // even will be [2, 4], and odd will be [1, 3]
|
||||
*/
|
||||
declare function partition<T, U extends T>(arr: readonly T[], isInTruthy: (value: T, index: number, array: readonly T[]) => value is U): [truthy: U[], falsy: Array<Exclude<T, U>>];
|
||||
/**
|
||||
* Splits an array into two groups based on a predicate function.
|
||||
*
|
||||
* This function takes an array and a predicate function. It returns a tuple of two arrays:
|
||||
* the first array contains elements for which the predicate function returns true, and
|
||||
* the second array contains elements for which the predicate function returns false.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param arr - The array to partition.
|
||||
* @param isInTruthy - A predicate function that determines
|
||||
* whether an element should be placed in the truthy array. The function is called with each
|
||||
* element of the array and its index.
|
||||
* @returns A tuple containing two arrays: the first array contains elements for
|
||||
* which the predicate returned true, and the second array contains elements for which the
|
||||
* predicate returned false.
|
||||
*
|
||||
* @example
|
||||
* const array = [1, 2, 3, 4, 5];
|
||||
* const isEven = x => x % 2 === 0;
|
||||
* const [even, odd] = partition(array, isEven);
|
||||
* // even will be [2, 4], and odd will be [1, 3, 5]
|
||||
*/
|
||||
declare function partition<T>(arr: readonly T[], isInTruthy: (value: T, index: number, array: readonly T[]) => boolean): [truthy: T[], falsy: T[]];
|
||||
//#endregion
|
||||
export { partition };
|
||||
Loading…
Add table
Add a link
Reference in a new issue