UNPKG

1.09 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/transformers/r3_strip_decorators" />
9import { StaticReflector, StaticSymbol } from '@angular/compiler';
10import * as ts from 'typescript';
11import { MetadataTransformer, ValueTransform } from './metadata_cache';
12export declare type Transformer = (sourceFile: ts.SourceFile) => ts.SourceFile;
13export declare type TransformerFactory = (context: ts.TransformationContext) => Transformer;
14export declare function getDecoratorStripTransformerFactory(coreDecorators: Set<StaticSymbol>, reflector: StaticReflector, checker: ts.TypeChecker): TransformerFactory;
15export declare class StripDecoratorsMetadataTransformer implements MetadataTransformer {
16 private coreDecorators;
17 private reflector;
18 constructor(coreDecorators: Set<StaticSymbol>, reflector: StaticReflector);
19 start(sourceFile: ts.SourceFile): ValueTransform | undefined;
20}