@teambit/harmony
Version:
abstract extension system
18 lines (17 loc) • 495 B
TypeScript
export type ConfigOptions = {
cwd?: string;
global?: GlobalConfigOpts;
shouldThrow?: boolean;
};
export type GlobalConfigOpts = {
dir?: string;
name: string;
};
export declare class HarmonyConfig {
private raw;
constructor(raw: Record<string, any>);
toObject(): Record<string, any>;
toString(): string;
static load(fileName: string, opts?: ConfigOptions): HarmonyConfig;
static loadGlobal(globalOpts: GlobalConfigOpts, config?: any): HarmonyConfig;
}