UNPKG

1.04 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.io/license
7 */
8/// <amd-module name="@angular/compiler-cli/src/transformers/node_emitter_transform" />
9import { GeneratedFile } from '@angular/compiler';
10import ts from 'typescript';
11/**
12 * Returns a transformer that does two things for generated files (ngfactory etc):
13 * - adds a fileoverview JSDoc comment containing Closure Compiler specific "suppress"ions in JSDoc.
14 * The new comment will contain any fileoverview comment text from the original source file this
15 * file was generated from.
16 * - updates generated files that are not in the given map of generatedFiles to have an empty
17 * list of statements as their body.
18 */
19export declare function getAngularEmitterTransformFactory(generatedFiles: Map<string, GeneratedFile>, program: ts.Program, annotateForClosureCompiler: boolean): () => (sourceFile: ts.SourceFile) => ts.SourceFile;