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
25
frontend/node_modules/es-toolkit/dist/predicate/isBuffer.js
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/predicate/isBuffer.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const require_globalThis = require("../_internal/globalThis.js");
|
||||
//#region src/predicate/isBuffer.ts
|
||||
/**
|
||||
* Checks if the given value is a Buffer instance.
|
||||
*
|
||||
* This function tests whether the provided value is an instance of Buffer.
|
||||
* It returns `true` if the value is a Buffer, and `false` otherwise.
|
||||
*
|
||||
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
||||
*
|
||||
* @param x - The value to check if it is a Buffer.
|
||||
* @returns Returns `true` if `x` is a Buffer, else `false`.
|
||||
*
|
||||
* @example
|
||||
* const buffer = Buffer.from("test");
|
||||
* console.log(isBuffer(buffer)); // true
|
||||
*
|
||||
* const notBuffer = "not a buffer";
|
||||
* console.log(isBuffer(notBuffer)); // false
|
||||
*/
|
||||
function isBuffer(x) {
|
||||
return typeof require_globalThis.globalThis_.Buffer !== "undefined" && require_globalThis.globalThis_.Buffer.isBuffer(x);
|
||||
}
|
||||
//#endregion
|
||||
exports.isBuffer = isBuffer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue