config.d.ts 1.1 KB

123456789101112131415161718
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { JsonAstObject, JsonObject, experimental } from '@angular-devkit/core';
  9. export declare const workspaceSchemaPath: string;
  10. export declare function getWorkspace(level?: 'local' | 'global'): experimental.workspace.Workspace | null;
  11. export declare function createGlobalSettings(): string;
  12. export declare function getWorkspaceRaw(level?: 'local' | 'global'): [JsonAstObject | null, string | null];
  13. export declare function validateWorkspace(json: JsonObject): boolean;
  14. export declare function getProjectByCwd(workspace: experimental.workspace.Workspace): string | null;
  15. export declare function getConfiguredPackageManager(): string | null;
  16. export declare function migrateLegacyGlobalConfig(): boolean;
  17. export declare function getSchematicDefaults(collection: string, schematic: string, project?: string | null): {};
  18. export declare function isWarningEnabled(warning: string): boolean;