Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
839 bytes
|
Line | |
---|
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 | import * as ts from 'typescript';
|
---|
9 | import { Import } from './imports';
|
---|
10 | export declare type CallExpressionDecorator = ts.Decorator & {
|
---|
11 | expression: ts.CallExpression;
|
---|
12 | };
|
---|
13 | export interface NgDecorator {
|
---|
14 | name: string;
|
---|
15 | node: CallExpressionDecorator;
|
---|
16 | }
|
---|
17 | /**
|
---|
18 | * Gets all decorators which are imported from an Angular package
|
---|
19 | * (e.g. "@angular/core") from a list of decorators.
|
---|
20 | */
|
---|
21 | export declare function getAngularDecorators(typeChecker: ts.TypeChecker, decorators: readonly ts.Decorator[]): readonly NgDecorator[];
|
---|
22 | export declare function getCallDecoratorImport(typeChecker: ts.TypeChecker, decorator: ts.Decorator): Import | null;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.