@statezero/core
Version:
The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate
11 lines (10 loc) • 463 B
TypeScript
/**
* Loads configuration from file using cosmiconfig and sets it into the global config singleton.
*
* The function searches for a configuration file (e.g. statezero.config.js, .modelsynrc, etc.)
* and checks if an environment variable (STATEZERO_CONFIG_PATH) overrides the default search path.
* If a configuration file is found, it is validated and set via configInstance.setConfig().
*
* @returns {void}
*/
export function loadConfigFromFile(): void;