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/core/schematics/utils/ng_decorators" />
|
9 | import ts from 'typescript';
|
10 | export declare type CallExpressionDecorator = ts.Decorator & {
|
11 | expression: ts.CallExpression;
|
12 | };
|
13 | export interface NgDecorator {
|
14 | name: string;
|
15 | moduleName: string;
|
16 | node: CallExpressionDecorator;
|
17 | importNode: ts.ImportDeclaration;
|
18 | }
|
19 | /**
|
20 | * Gets all decorators which are imported from an Angular package (e.g. "@angular/core")
|
21 | * from a list of decorators.
|
22 | */
|
23 | export declare function getAngularDecorators(typeChecker: ts.TypeChecker, decorators: ReadonlyArray<ts.Decorator>): NgDecorator[];
|