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/compat/object/invertBy.d.mts
generated
vendored
Normal file
35
frontend/node_modules/es-toolkit/dist/compat/object/invertBy.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import { ValueIteratee } from "../_internal/ValueIteratee.mjs";
|
||||
|
||||
//#region src/compat/object/invertBy.d.ts
|
||||
/**
|
||||
* Creates a new object that reverses the keys and values of the given object, similar to the invert.
|
||||
* The values of the new object are arrays of keys that correspond to the value returned by the `iteratee` function.
|
||||
*
|
||||
* @param object - The object to iterate over
|
||||
* @param [iteratee] - Optional function to transform values into keys
|
||||
* @returns An object with transformed values as keys and arrays of original keys as values
|
||||
*
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2, c: 1 };
|
||||
* invertBy(obj); // => { '1': ['a', 'c'], '2': ['b'] }
|
||||
*
|
||||
* @example
|
||||
* const obj = { a: 1, b: 2, c: 1 };
|
||||
* invertBy(obj, value => `group${value}`); // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
||||
*/
|
||||
declare function invertBy<T>(object: Record<string, T> | Record<number, T> | null | undefined, interatee?: ValueIteratee<T>): Record<string, string[]>;
|
||||
/**
|
||||
* Creates a new object that reverses the keys and values of the given object, similar to the invert.
|
||||
* The values of the new object are arrays of keys that correspond to the value returned by the `iteratee` function.
|
||||
*
|
||||
* @param object - The object to iterate over
|
||||
* @param [iteratee] - Optional function to transform values into keys
|
||||
* @returns An object with transformed values as keys and arrays of original keys as values
|
||||
*
|
||||
* @example
|
||||
* const obj = { foo: { id: 1 }, bar: { id: 2 }, baz: { id: 1 } };
|
||||
* invertBy(obj, value => String(value.id)); // => { '1': ['foo', 'baz'], '2': ['bar'] }
|
||||
*/
|
||||
declare function invertBy<T extends object>(object: T | null | undefined, interatee?: ValueIteratee<T[keyof T]>): Record<string, string[]>;
|
||||
//#endregion
|
||||
export { invertBy };
|
||||
Loading…
Add table
Add a link
Reference in a new issue