[6a3a178] | 1 | /// <amd-module name="@angular/compiler-cli/ngcc/src/migrations/utils" />
|
---|
| 2 | /**
|
---|
| 3 | * @license
|
---|
| 4 | * Copyright Google LLC All Rights Reserved.
|
---|
| 5 | *
|
---|
| 6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 7 | * found in the LICENSE file at https://angular.io/license
|
---|
| 8 | */
|
---|
| 9 | import * as ts from 'typescript';
|
---|
| 10 | import { ClassDeclaration, Decorator } from '../../../src/ngtsc/reflection';
|
---|
| 11 | import { MigrationHost } from './migration';
|
---|
| 12 | export declare function isClassDeclaration(clazz: ts.Node): clazz is ClassDeclaration<ts.Declaration>;
|
---|
| 13 | /**
|
---|
| 14 | * Returns true if the `clazz` is decorated as a `Directive` or `Component`.
|
---|
| 15 | */
|
---|
| 16 | export declare function hasDirectiveDecorator(host: MigrationHost, clazz: ClassDeclaration): boolean;
|
---|
| 17 | /**
|
---|
| 18 | * Returns true if the `clazz` is decorated as a `Pipe`.
|
---|
| 19 | */
|
---|
| 20 | export declare function hasPipeDecorator(host: MigrationHost, clazz: ClassDeclaration): boolean;
|
---|
| 21 | /**
|
---|
| 22 | * Returns true if the `clazz` has its own constructor function.
|
---|
| 23 | */
|
---|
| 24 | export declare function hasConstructor(host: MigrationHost, clazz: ClassDeclaration): boolean;
|
---|
| 25 | /**
|
---|
| 26 | * Create an empty `Directive` decorator that will be associated with the `clazz`.
|
---|
| 27 | */
|
---|
| 28 | export declare function createDirectiveDecorator(clazz: ClassDeclaration, metadata?: {
|
---|
| 29 | selector: string | null;
|
---|
| 30 | exportAs: string[] | null;
|
---|
| 31 | }): Decorator;
|
---|
| 32 | /**
|
---|
| 33 | * Create an empty `Component` decorator that will be associated with the `clazz`.
|
---|
| 34 | */
|
---|
| 35 | export declare function createComponentDecorator(clazz: ClassDeclaration, metadata: {
|
---|
| 36 | selector: string | null;
|
---|
| 37 | exportAs: string[] | null;
|
---|
| 38 | }): Decorator;
|
---|
| 39 | /**
|
---|
| 40 | * Create an empty `Injectable` decorator that will be associated with the `clazz`.
|
---|
| 41 | */
|
---|
| 42 | export declare function createInjectableDecorator(clazz: ClassDeclaration): Decorator;
|
---|