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
46
frontend/node_modules/es-toolkit/dist/compat/function/bindKey.d.ts
generated
vendored
Normal file
46
frontend/node_modules/es-toolkit/dist/compat/function/bindKey.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
//#region src/compat/function/bindKey.d.ts
|
||||
/**
|
||||
* Creates a function that invokes the method at `object[key]` with `partialArgs` prepended to the arguments it receives.
|
||||
*
|
||||
* This method differs from `bind` by allowing bound functions to reference methods that may be redefined or don't yet exist.
|
||||
*
|
||||
* The `bindKey.placeholder` value, which defaults to a `symbol`, may be used as a placeholder for partially applied arguments.
|
||||
*
|
||||
* @template T - The type of the object to bind.
|
||||
* @template K - The type of the key to bind.
|
||||
* @param object - The object to invoke the method on.
|
||||
* @param key - The key of the method.
|
||||
* @param partialArgs - The arguments to be partially applied.
|
||||
* @returns Returns the new bound function.
|
||||
*
|
||||
* @example
|
||||
* const object = {
|
||||
* user: 'fred',
|
||||
* greet: function (greeting, punctuation) {
|
||||
* return greeting + ' ' + this.user + punctuation;
|
||||
* },
|
||||
* };
|
||||
*
|
||||
* let bound = bindKey(object, 'greet', 'hi');
|
||||
* bound('!');
|
||||
* // => 'hi fred!'
|
||||
*
|
||||
* object.greet = function (greeting, punctuation) {
|
||||
* return greeting + 'ya ' + this.user + punctuation;
|
||||
* };
|
||||
*
|
||||
* bound('!');
|
||||
* // => 'hiya fred!'
|
||||
*
|
||||
* // Bound with placeholders.
|
||||
* bound = bindKey(object, 'greet', bindKey.placeholder, '!');
|
||||
* bound('hi');
|
||||
* // => 'hiya fred!'
|
||||
*/
|
||||
declare function bindKey(object: object, key: string, ...partialArgs: any[]): (...args: any[]) => any;
|
||||
declare namespace bindKey {
|
||||
var placeholder: typeof bindKeyPlaceholder;
|
||||
}
|
||||
declare const bindKeyPlaceholder: unique symbol;
|
||||
//#endregion
|
||||
export { bindKey };
|
||||
Loading…
Add table
Add a link
Reference in a new issue