UNPKG

1.14 kBTypeScriptView Raw
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.dev/license
7 */
8/**
9 * @fileoverview
10 * This file is used as a private API channel to shared Angular FW APIs with @angular/cli.
11 *
12 * Any changes to this file should be discussed with the Angular CLI team.
13 */
14import ts from 'typescript';
15/**
16 * Known values for global variables in `@angular/core` that Terser should set using
17 * https://github.com/terser-js/terser#conditional-compilation
18 */
19export declare const GLOBAL_DEFS_FOR_TERSER: {
20 ngDevMode: boolean;
21 ngI18nClosureMode: boolean;
22};
23export declare const GLOBAL_DEFS_FOR_TERSER_WITH_AOT: {
24 ngJitMode: boolean;
25 ngDevMode: boolean;
26 ngI18nClosureMode: boolean;
27};
28/**
29 * JIT transform used by the Angular CLI.
30 *
31 * NOTE: Signature is explicitly captured here to highlight the
32 * contract various Angular CLI versions are relying on.
33 */
34export declare const constructorParametersDownlevelTransform: (program: ts.Program, isCore?: boolean) => ts.TransformerFactory<ts.SourceFile>;