source: trip-planner-front/node_modules/@angular/compiler/src/aot/compiler_host.d.ts@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 1.2 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 { StaticSymbolResolverHost } from './static_symbol_resolver';
9import { AotSummaryResolverHost } from './summary_resolver';
10/**
11 * The host of the AotCompiler disconnects the implementation from TypeScript / other language
12 * services and from underlying file systems.
13 */
14export interface AotCompilerHost extends StaticSymbolResolverHost, AotSummaryResolverHost {
15 /**
16 * Converts a file path to a module name that can be used as an `import.
17 * I.e. `path/to/importedFile.ts` should be imported by `path/to/containingFile.ts`.
18 *
19 * See ImportResolver.
20 */
21 fileNameToModuleName(importedFilePath: string, containingFilePath: string): string;
22 /**
23 * Converts a path that refers to a resource into an absolute filePath
24 * that can be later on used for loading the resource via `loadResource.
25 */
26 resourceNameToFileName(resourceName: string, containingFileName: string): string | null;
27 /**
28 * Loads a resource (e.g. html / css)
29 */
30 loadResource(path: string): Promise<string> | string;
31}
Note: See TracBrowser for help on using the repository browser.