source: trip-planner-front/node_modules/@angular/cdk/schematics/ng-update/upgrade-data.d.ts@ 84d0fbb

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

initial commit

  • Property mode set to 100644
File size: 1.7 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 { Migration } from '../update-tool/migration';
9import { ValueOfChanges, VersionChanges } from '../update-tool/version-changes';
10import { AttributeSelectorUpgradeData, ClassNameUpgradeData, ConstructorChecksUpgradeData, CssSelectorUpgradeData, ElementSelectorUpgradeData, InputNameUpgradeData, MethodCallUpgradeData, OutputNameUpgradeData, PropertyNameUpgradeData } from './data';
11/** Upgrade data for the Angular CDK. */
12export declare const cdkUpgradeData: UpgradeData;
13/**
14 * Interface that describes the upgrade data that needs to be defined when using the CDK
15 * upgrade rules.
16 */
17export interface UpgradeData {
18 attributeSelectors: VersionChanges<AttributeSelectorUpgradeData>;
19 classNames: VersionChanges<ClassNameUpgradeData>;
20 constructorChecks: VersionChanges<ConstructorChecksUpgradeData>;
21 cssSelectors: VersionChanges<CssSelectorUpgradeData>;
22 elementSelectors: VersionChanges<ElementSelectorUpgradeData>;
23 inputNames: VersionChanges<InputNameUpgradeData>;
24 methodCallChecks: VersionChanges<MethodCallUpgradeData>;
25 outputNames: VersionChanges<OutputNameUpgradeData>;
26 propertyNames: VersionChanges<PropertyNameUpgradeData>;
27}
28/**
29 * Gets the reduced upgrade data for the specified data key. The function reads out the
30 * target version and upgrade data object from the migration and resolves the specified
31 * data portion that is specifically tied to the target version.
32 */
33export declare function getVersionUpgradeData<T extends keyof UpgradeData, U = ValueOfChanges<UpgradeData[T]>>(migration: Migration<UpgradeData>, dataName: T): U[];
Note: See TracBrowser for help on using the repository browser.