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
35
frontend/node_modules/es-toolkit/dist/fp/array/last.d.ts
generated
vendored
Normal file
35
frontend/node_modules/es-toolkit/dist/fp/array/last.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
//#region src/fp/array/last.d.ts
|
||||
/**
|
||||
* Creates a function that returns the last element of a non-empty array.
|
||||
*
|
||||
* This overload preserves the non-empty tuple guarantee: the returned function
|
||||
* always returns T when the piped array has at least one element.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @returns A function that maps a non-empty readonly array to its last element.
|
||||
*
|
||||
* @example
|
||||
* import { last, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 3] as const, last());
|
||||
* // => 3
|
||||
*/
|
||||
declare function last<T>(): (array: readonly [...T[], T]) => T;
|
||||
/**
|
||||
* Creates a function that returns the last element of an array, or undefined.
|
||||
*
|
||||
* Empty arrays return undefined, matching the main {@link last} behavior. Use
|
||||
* the returned function with {@link pipe}.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @returns A function that maps a readonly array to its last element, or undefined.
|
||||
*
|
||||
* @example
|
||||
* import { last, pipe } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([] as number[], last());
|
||||
* // => undefined
|
||||
*/
|
||||
declare function last<T>(): (array: readonly T[]) => T | undefined;
|
||||
//#endregion
|
||||
export { last };
|
||||
Loading…
Add table
Add a link
Reference in a new issue