config.d.ts 766 B

12345678910111213
  1. import { DebugLogger } from "builder-util";
  2. import { Lazy } from "lazy-val";
  3. import { Configuration } from "../configuration";
  4. export declare function getConfig(projectDir: string, configPath: string | null, configFromOptions: Configuration | null | undefined, packageMetadata?: Lazy<{
  5. [key: string]: any;
  6. } | null>): Promise<Configuration>;
  7. /**
  8. * `doMergeConfigs` takes configs in the order you would pass them to
  9. * Object.assign as sources.
  10. */
  11. export declare function doMergeConfigs(configs: Configuration[]): Configuration;
  12. export declare function validateConfig(config: Configuration, debugLogger: DebugLogger): Promise<void>;
  13. export declare function computeDefaultAppDirectory(projectDir: string, userAppDir: string | null | undefined): Promise<string>;