project.d.ts 900 B

1234567891011121314151617
  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 { Tree } from '@angular-devkit/schematics';
  9. import { ProjectType, WorkspaceProject, WorkspaceSchema } from '../utility/workspace-models';
  10. /**
  11. * Build a default project path for generating.
  12. * @param project The project to build the path for.
  13. */
  14. export declare function buildDefaultPath(project: WorkspaceProject): string;
  15. export declare function getProject<TProjectType extends ProjectType = ProjectType.Application>(workspaceOrHost: WorkspaceSchema | Tree, projectName: string): WorkspaceProject<TProjectType>;
  16. export declare function isWorkspaceSchema(workspace: any): workspace is WorkspaceSchema;
  17. export declare function isWorkspaceProject(project: any): project is WorkspaceProject;