Files
pyrofetes-frontend/node_modules/@angular/cdk/schematics/ng-update/upgrade-data.d.ts
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

36 lines
1.9 KiB
TypeScript
Executable File

/**
* @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[];