source: trip-planner-front/node_modules/@angular/cdk/schematics/ng-update/devkit-migration-rule.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
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 */
8import { Rule, SchematicContext } from '@angular-devkit/schematics';
9import { MigrationCtor } from '../update-tool/migration';
10import { TargetVersion } from '../update-tool/target-version';
11import { DevkitContext, DevkitMigrationCtor } from './devkit-migration';
12import { UpgradeData } from './upgrade-data';
13/** List of migrations which run for the CDK update. */
14export declare const cdkMigrations: MigrationCtor<UpgradeData>[];
15export declare type NullableDevkitMigration = MigrationCtor<UpgradeData | null, DevkitContext>;
16declare type PostMigrationFn = (context: SchematicContext, targetVersion: TargetVersion, hasFailure: boolean) => void;
17/**
18 * Creates a Angular schematic rule that runs the upgrade for the
19 * specified target version.
20 */
21export declare function createMigrationSchematicRule(targetVersion: TargetVersion, extraMigrations: NullableDevkitMigration[], upgradeData: UpgradeData, onMigrationCompleteFn?: PostMigrationFn): Rule;
22/** Whether the given migration type refers to a devkit migration */
23export declare function isDevkitMigration(value: MigrationCtor<any, any>): value is DevkitMigrationCtor<any>;
24export {};
Note: See TracBrowser for help on using the repository browser.