UNPKG

@storm-software/config-tools

Version:

⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

19 lines (16 loc) 778 B
import { StormWorkspaceConfig } from '@storm-software/config'; import { DeepPartial } from '../types.js'; /** * Get the config for an extension module of Storm workspace from environment variables * * @param extensionName - The name of the extension module * @returns The config for the specified Storm extension module. If the module does not exist, `undefined` is returned. */ declare const getExtensionEnv: <TConfig extends Record<string, any> = Record<string, any>>(extensionName: string) => TConfig | undefined; /** * Get the config for the current Storm workspace * * @returns The config for the current Storm workspace from environment variables */ declare const getConfigEnv: () => DeepPartial<StormWorkspaceConfig>; export { getConfigEnv, getExtensionEnv };