1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * @license
- * Copyright Google LLC All Rights Reserved.
- *
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://angular.dev/license
- */
- import { Migration } from '../update-tool/migration';
- import { ValueOfChanges, VersionChanges } from '../update-tool/version-changes';
- import { AttributeSelectorUpgradeData, ClassNameUpgradeData, ConstructorChecksUpgradeData, CssSelectorUpgradeData, ElementSelectorUpgradeData, InputNameUpgradeData, MethodCallUpgradeData, OutputNameUpgradeData, PropertyNameUpgradeData, SymbolRemovalUpgradeData, CssTokenUpgradeData } from './data';
- /** Upgrade data for the Angular CDK. */
- export declare const cdkUpgradeData: UpgradeData;
- /**
- * Interface that describes the upgrade data that needs to be defined when using the CDK
- * upgrade rules.
- */
- export interface UpgradeData {
- attributeSelectors: VersionChanges<AttributeSelectorUpgradeData>;
- classNames: VersionChanges<ClassNameUpgradeData>;
- constructorChecks: VersionChanges<ConstructorChecksUpgradeData>;
- cssSelectors: VersionChanges<CssSelectorUpgradeData>;
- cssTokens: VersionChanges<CssTokenUpgradeData>;
- elementSelectors: VersionChanges<ElementSelectorUpgradeData>;
- inputNames: VersionChanges<InputNameUpgradeData>;
- methodCallChecks: VersionChanges<MethodCallUpgradeData>;
- outputNames: VersionChanges<OutputNameUpgradeData>;
- propertyNames: VersionChanges<PropertyNameUpgradeData>;
- symbolRemoval: VersionChanges<SymbolRemovalUpgradeData>;
- }
- /**
- * Gets the reduced upgrade data for the specified data key. The function reads out the
- * target version and upgrade data object from the migration and resolves the specified
- * data portion that is specifically tied to the target version.
- */
- export declare function getVersionUpgradeData<T extends keyof UpgradeData, U = ValueOfChanges<UpgradeData[T]>>(migration: Migration<UpgradeData>, dataName: T): U[];
|