UNPKG

809 BTypeScriptView 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/core/schematics/utils/ng_decorators" />
9import ts from 'typescript';
10export declare type CallExpressionDecorator = ts.Decorator & {
11 expression: ts.CallExpression;
12};
13export 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 */
23export declare function getAngularDecorators(typeChecker: ts.TypeChecker, decorators: ReadonlyArray<ts.Decorator>): NgDecorator[];