schematic-options.d.ts 833 B

123456789101112131415161718192021
  1. /**
  2. * @license
  3. * Copyright Google LLC 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 { WorkspaceProject } from '@angular-devkit/core/src/experimental/workspace';
  9. /**
  10. * Returns the default options for the `@schematics/angular:component` schematic which would
  11. * have been specified at project initialization (ng new or ng init).
  12. *
  13. * This is necessary because the Angular CLI only exposes the default values for the "--style",
  14. * "--inlineStyle", "--skipTests" and "--inlineTemplate" options to the "component" schematic.
  15. */
  16. export declare function getDefaultComponentOptions(project: WorkspaceProject): {
  17. style: string;
  18. inlineStyle: boolean;
  19. inlineTemplate: boolean;
  20. skipTests: boolean;
  21. };