source: trip-planner-front/node_modules/@angular/material/schematics/ng-update/migrations/theming-api-v12/migration.d.ts

Last change on this file 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 */
8/** Addition mixin and function names that can be updated when invoking migration directly. */
9interface ExtraSymbols {
10 mixins?: Record<string, string>;
11 functions?: Record<string, string>;
12 variables?: Record<string, string>;
13}
14/**
15 * Migrates the content of a file to the new theming API. Note that this migration is using plain
16 * string manipulation, rather than the AST from PostCSS and the schematics string manipulation
17 * APIs, because it allows us to run it inside g3 and to avoid introducing new dependencies.
18 * @param fileContent Content of the file.
19 * @param oldMaterialPrefix Prefix with which the old Material imports should start.
20 * Has to end with a slash. E.g. if `@import '~@angular/material/theming'` should be
21 * matched, the prefix would be `~@angular/material/`.
22 * @param oldCdkPrefix Prefix with which the old CDK imports should start.
23 * Has to end with a slash. E.g. if `@import '~@angular/cdk/overlay'` should be
24 * matched, the prefix would be `~@angular/cdk/`.
25 * @param newMaterialImportPath New import to the Material theming API (e.g. `~@angular/material`).
26 * @param newCdkImportPath New import to the CDK Sass APIs (e.g. `~@angular/cdk`).
27 * @param excludedImports Pattern that can be used to exclude imports from being processed.
28 */
29export declare function migrateFileContent(fileContent: string, oldMaterialPrefix: string, oldCdkPrefix: string, newMaterialImportPath: string, newCdkImportPath: string, extraMaterialSymbols?: ExtraSymbols, excludedImports?: RegExp): string;
30export {};
Note: See TracBrowser for help on using the repository browser.