UNPKG

738 BTypeScriptView 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/transformers/r3_transform" />
9import { PartialModule } from '@angular/compiler';
10import * as ts from 'typescript';
11export declare type Transformer = (sourceFile: ts.SourceFile) => ts.SourceFile;
12export declare type TransformerFactory = (context: ts.TransformationContext) => Transformer;
13/**
14 * Returns a transformer that adds the requested static methods specified by modules.
15 */
16export declare function getAngularClassTransformerFactory(modules: PartialModule[]): TransformerFactory;