1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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
|
import { StaticSymbolResolverHost } from './static_symbol_resolver';
|
9
|
import { 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
|
*/
|
14
|
export interface AotCompilerHost extends StaticSymbolResolverHost, AotSummaryResolverHost {
|
15
|
/**
|
16
|
* Loads a resource (e.g. html / css)
|
17
|
*/
|
18
|
loadResource(path: string): Promise<string> | string;
|
19
|
}
|