source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/migrations/utils.d.ts@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
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 */
9import * as ts from 'typescript';
10import { ClassDeclaration, Decorator } from '../../../src/ngtsc/reflection';
11import { MigrationHost } from './migration';
12export 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 */
16export declare function hasDirectiveDecorator(host: MigrationHost, clazz: ClassDeclaration): boolean;
17/**
18 * Returns true if the `clazz` is decorated as a `Pipe`.
19 */
20export declare function hasPipeDecorator(host: MigrationHost, clazz: ClassDeclaration): boolean;
21/**
22 * Returns true if the `clazz` has its own constructor function.
23 */
24export declare function hasConstructor(host: MigrationHost, clazz: ClassDeclaration): boolean;
25/**
26 * Create an empty `Directive` decorator that will be associated with the `clazz`.
27 */
28export 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 */
35export 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 */
42export declare function createInjectableDecorator(clazz: ClassDeclaration): Decorator;
Note: See TracBrowser for help on using the repository browser.