UNPKG

897 BTypeScriptView 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 { CompileReflector } from './compile_reflector';
9import { Directive, Type } from './core';
10export declare class DirectiveResolver {
11 private _reflector;
12 constructor(_reflector: CompileReflector);
13 isDirective(type: Type): boolean;
14 /**
15 * Return {@link Directive} for a given `Type`.
16 */
17 resolve(type: Type): Directive;
18 resolve(type: Type, throwIfNotFound: true): Directive;
19 resolve(type: Type, throwIfNotFound: boolean): Directive | null;
20 private _mergeWithPropertyMetadata;
21 private _extractPublicName;
22 private _dedupeBindings;
23 private _merge;
24}
25export declare function findLast<T>(arr: T[], condition: (value: T) => boolean): T | null;