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
37
frontend/node_modules/es-toolkit/dist/fp/array/minBy.d.mts
generated
vendored
Normal file
37
frontend/node_modules/es-toolkit/dist/fp/array/minBy.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
//#region src/fp/array/minBy.d.ts
|
||||
/**
|
||||
* Creates a function that returns the element with the minimum selected number from a non-empty array.
|
||||
*
|
||||
* If the selector returns NaN, the element that produced NaN is returned, matching
|
||||
* the main {@link minBy} behavior.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param getValue - Selects a numeric value from each element, index, and array.
|
||||
* @returns A function that maps a non-empty readonly array to the minimum element.
|
||||
*
|
||||
* @example
|
||||
* import { minBy, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([{ score: 10 }, { score: 20 }] as const, minBy(item => item.score));
|
||||
* // => { score: 10 }
|
||||
*/
|
||||
declare function minBy<T>(getValue: (element: T, index: number, array: readonly T[]) => number): (array: readonly [T, ...T[]]) => T;
|
||||
/**
|
||||
* Creates a function that returns the element with the minimum selected number.
|
||||
*
|
||||
* Empty arrays return undefined. If the selector returns NaN, the element that
|
||||
* produced NaN is returned, matching the main {@link minBy} behavior.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @param getValue - Selects a numeric value from each element, index, and array.
|
||||
* @returns A function that maps a readonly array to the minimum element, or undefined.
|
||||
*
|
||||
* @example
|
||||
* import { minBy, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([] as Array<{ score: number }>, minBy(item => item.score));
|
||||
* // => undefined
|
||||
*/
|
||||
declare function minBy<T>(getValue: (element: T, index: number, array: readonly T[]) => number): (array: readonly T[]) => T | undefined;
|
||||
//#endregion
|
||||
export { minBy };
|
||||
Loading…
Add table
Add a link
Reference in a new issue