index.d.ts 1.0 KB

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 { Rule } from '@angular-devkit/schematics';
  9. import { Constructor } from '../../update-tool';
  10. import { MigrationRule } from '../../update-tool/migration-rule';
  11. import { TargetVersion } from '../../update-tool/target-version';
  12. import { RuleUpgradeData } from '../upgrade-data';
  13. /** List of migration rules which run for the CDK update. */
  14. export declare const cdkMigrationRules: Constructor<MigrationRule<RuleUpgradeData>>[];
  15. declare type NullableMigrationRule = Constructor<MigrationRule<RuleUpgradeData | null>>;
  16. /**
  17. * Creates a Angular schematic rule that runs the upgrade for the
  18. * specified target version.
  19. */
  20. export declare function createUpgradeRule(targetVersion: TargetVersion, extraRules: NullableMigrationRule[], upgradeData: RuleUpgradeData, onMigrationCompleteFn?: (targetVersion: TargetVersion, hasFailures: boolean) => void): Rule;
  21. export {};