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
22
frontend/node_modules/es-toolkit/dist/object/findKey.d.ts
generated
vendored
Normal file
22
frontend/node_modules/es-toolkit/dist/object/findKey.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
//#region src/object/findKey.d.ts
|
||||
/**
|
||||
* Finds the key of the first element in the object that satisfies the provided testing function.
|
||||
*
|
||||
* @param obj - The object to search.
|
||||
* @param predicate - The function to execute on each value in the object. It takes three arguments:
|
||||
* - value: The current value being processed in the object.
|
||||
* - key: The key of the current value being processed in the object.
|
||||
* - obj: The object that findKey was called upon.
|
||||
* @returns The key of the first element in the object that passes the test, or undefined if no element passes.
|
||||
*
|
||||
* @example
|
||||
* const users = {
|
||||
* 'barney': { 'age': 36, 'active': true },
|
||||
* 'fred': { 'age': 40, 'active': false },
|
||||
* 'pebbles': { 'age': 1, 'active': true }
|
||||
* };
|
||||
* findKey(users, function(o) { return o.age < 40; }); => 'barney'
|
||||
*/
|
||||
declare function findKey<T extends Record<any, any>>(obj: T, predicate: (value: T[keyof T], key: keyof T, obj: T) => boolean): keyof T | undefined;
|
||||
//#endregion
|
||||
export { findKey };
|
||||
Loading…
Add table
Add a link
Reference in a new issue