schematic-options.d.ts 1007 B

1234567891011121314151617181920
  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.dev/license
  7. */
  8. import { workspaces } from '@angular-devkit/core';
  9. import { Schema } from '@schematics/angular/component/schema';
  10. import { Tree } from '@angular-devkit/schematics';
  11. /**
  12. * Returns the default options for the `@schematics/angular:component` schematic which would
  13. * have been specified at project initialization (ng new or ng init).
  14. *
  15. * This is necessary because the Angular CLI only exposes the default values for the "--style",
  16. * "--inlineStyle", "--skipTests" and "--inlineTemplate" options to the "component" schematic.
  17. */
  18. export declare function getDefaultComponentOptions(project: workspaces.ProjectDefinition): Partial<Schema>;
  19. /** Determines whether the schematic is configured to be standalone. */
  20. export declare function isStandaloneSchematic(host: Tree, options: Schema): Promise<boolean>;