UNPKG

1 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. 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 */
8import { Component } from './core';
9import * as o from './output/output_ast';
10/**
11 * Provides access to reflection data about symbols that the compiler needs.
12 */
13export declare abstract class CompileReflector {
14 abstract parameters(typeOrFunc: any): any[][];
15 abstract annotations(typeOrFunc: any): any[];
16 abstract shallowAnnotations(typeOrFunc: any): any[];
17 abstract tryAnnotations(typeOrFunc: any): any[];
18 abstract propMetadata(typeOrFunc: any): {
19 [key: string]: any[];
20 };
21 abstract hasLifecycleHook(type: any, lcProperty: string): boolean;
22 abstract guards(typeOrFunc: any): {
23 [key: string]: any;
24 };
25 abstract componentModuleUrl(type: any, cmpMetadata: Component): string;
26 abstract resolveExternalReference(ref: o.ExternalReference): any;
27}