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:
jtricerolph 2026-07-20 14:37:36 +00:00
parent cae411eae7
commit 1c411e402e
19809 changed files with 1962608 additions and 97 deletions

View file

@ -0,0 +1,39 @@
//#region src/compat/array/sample.d.ts
/**
* Gets a random element from collection.
*
* @template T
* @param collection - The collection to sample.
* @returns Returns the random element.
*
* @example
* sample([1, 2, 3, 4]);
* // => 2
*/
declare function sample<T>(collection: readonly [T, ...T[]]): T;
/**
* Gets a random element from collection.
*
* @template T
* @param collection - The collection to sample.
* @returns Returns the random element.
*
* @example
* sample({ 'a': 1, 'b': 2, 'c': 3 });
* // => 2
*/
declare function sample<T>(collection: Record<string, T> | Record<number, T> | null | undefined): T | undefined;
/**
* Gets a random element from collection.
*
* @template T
* @param collection - The collection to sample.
* @returns Returns the random element.
*
* @example
* sample({ 'a': 1, 'b': 2, 'c': 3 });
* // => 2
*/
declare function sample<T extends object>(collection: T | null | undefined): T[keyof T] | undefined;
//#endregion
export { sample };