1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { AngularCompilerOptions, ModuleMetadata } from '@angular/tsc-wrapped';
|
9 | import * as ts from 'typescript';
|
10 | import { ReflectorHost, ReflectorHostContext } from './reflector_host';
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class PathMappedReflectorHost extends ReflectorHost {
|
19 | constructor(program: ts.Program, compilerHost: ts.CompilerHost, options: AngularCompilerOptions, context?: ReflectorHostContext);
|
20 | getCanonicalFileName(fileName: string): string;
|
21 | protected resolve(m: string, containingFile: string): string;
|
22 | /**
|
23 | * We want a moduleId that will appear in import statements in the generated code.
|
24 | * These need to be in a form that system.js can load, so absolute file paths don't work.
|
25 | * Relativize the paths by checking candidate prefixes of the absolute path, to see if
|
26 | * they are resolvable by the moduleResolution strategy from the CompilerHost.
|
27 | */
|
28 | getImportPath(containingFile: string, importedFile: string): string;
|
29 | getMetadataFor(filePath: string): ModuleMetadata;
|
30 | }
|