UNPKG

1.76 kBTypeScriptView Raw
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/// <amd-module name="@angular/compiler-cli/src/ngtools_api" />
9/**
10 * This is a private API for the ngtools toolkit.
11 *
12 * This API should be stable for NG 2. It can be removed in NG 4..., but should be replaced by
13 * something else.
14 */
15/**
16 *********************************************************************
17 * Changes to this file need to be approved by the Angular CLI team. *
18 *********************************************************************
19 */
20import * as ts from 'typescript';
21import { CompilerOptions } from './transformers/api';
22export interface NgTools_InternalApi_NG2_CodeGen_Options {
23 basePath: string;
24 compilerOptions: ts.CompilerOptions;
25 program: ts.Program;
26 host: ts.CompilerHost;
27 angularCompilerOptions: CompilerOptions;
28 i18nFormat?: string;
29 i18nFile?: string;
30 locale?: string;
31 missingTranslation?: string;
32 readResource: (fileName: string) => Promise<string>;
33}
34export interface NgTools_InternalApi_NG2_ListLazyRoutes_Options {
35 program: ts.Program;
36 host: ts.CompilerHost;
37 angularCompilerOptions: CompilerOptions;
38 entryModule: string;
39}
40export interface NgTools_InternalApi_NG_2_LazyRouteMap {
41 [route: string]: string;
42}
43export interface NgTools_InternalApi_NG2_ExtractI18n_Options {
44 basePath: string;
45 compilerOptions: ts.CompilerOptions;
46 program: ts.Program;
47 host: ts.CompilerHost;
48 angularCompilerOptions: CompilerOptions;
49 i18nFormat?: string;
50 readResource: (fileName: string) => Promise<string>;
51 locale?: string;
52 outFile?: string;
53}