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 | */
|
8 | /// <amd-module name="@angular/compiler-cli/src/tooling" />
|
9 | /**
|
10 | * @fileoverview
|
11 | * This file is used as a private API channel to shared Angular FW APIs with @angular/cli.
|
12 | *
|
13 | * Any changes to this file should be discussed with the Angular CLI team.
|
14 | */
|
15 | import * as ts from 'typescript';
|
16 | /**
|
17 | * Known values for global variables in `@angular/core` that Terser should set using
|
18 | * https://github.com/terser-js/terser#conditional-compilation
|
19 | */
|
20 | export declare const GLOBAL_DEFS_FOR_TERSER: {
|
21 | ngDevMode: boolean;
|
22 | ngI18nClosureMode: boolean;
|
23 | };
|
24 | export declare const GLOBAL_DEFS_FOR_TERSER_WITH_AOT: {
|
25 | ngJitMode: boolean;
|
26 | ngDevMode: boolean;
|
27 | ngI18nClosureMode: boolean;
|
28 | };
|
29 | /**
|
30 | * Transform for downleveling Angular decorators and Angular-decorated class constructor
|
31 | * parameters for dependency injection. This transform can be used by the CLI for JIT-mode
|
32 | * compilation where constructor parameters and associated Angular decorators should be
|
33 | * downleveled so that apps are not exposed to the ES2015 temporal dead zone limitation
|
34 | * in TypeScript. See https://github.com/angular/angular-cli/pull/14473 for more details.
|
35 | */
|
36 | export declare function constructorParametersDownlevelTransform(program: ts.Program): ts.TransformerFactory<ts.SourceFile>;
|