source: trip-planner-front/node_modules/@angular/core/schematics/utils/typescript/compiler_host.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/// <amd-module name="@angular/core/schematics/utils/typescript/compiler_host" />
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9import { Tree } from '@angular-devkit/schematics';
10import * as ts from 'typescript';
11export declare type FakeReadFileFn = (fileName: string) => string | undefined;
12/**
13 * Creates a TypeScript program instance for a TypeScript project within
14 * the virtual file system tree.
15 * @param tree Virtual file system tree that contains the source files.
16 * @param tsconfigPath Virtual file system path that resolves to the TypeScript project.
17 * @param basePath Base path for the virtual file system tree.
18 * @param fakeFileRead Optional file reader function. Can be used to overwrite files in
19 * the TypeScript program, or to add in-memory files (e.g. to add global types).
20 * @param additionalFiles Additional file paths that should be added to the program.
21 */
22export declare function createMigrationProgram(tree: Tree, tsconfigPath: string, basePath: string, fakeFileRead?: FakeReadFileFn, additionalFiles?: string[]): {
23 parsed: ts.ParsedCommandLine;
24 host: ts.CompilerHost;
25 program: ts.Program;
26};
27export declare function createMigrationCompilerHost(tree: Tree, options: ts.CompilerOptions, basePath: string, fakeRead?: FakeReadFileFn): ts.CompilerHost;
28/**
29 * Checks whether a file can be migrate by our automated migrations.
30 * @param basePath Absolute path to the project.
31 * @param sourceFile File being checked.
32 * @param program Program that includes the source file.
33 */
34export declare function canMigrateFile(basePath: string, sourceFile: ts.SourceFile, program: ts.Program): boolean;
Note: See TracBrowser for help on using the repository browser.